Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap tries to use stage0 Cargo with local Rust/Cargo in config.toml #49741

Closed
abonander opened this issue Apr 6, 2018 · 2 comments
Closed
Labels
C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@abonander
Copy link
Contributor

abonander commented Apr 6, 2018

In config.toml (I'm on Windows):

[build]
cargo = "C:/Users/my_user/.cargo/bin/cargo"
rustc = "C:/Users/my_user/.cargo/bin/rustc"

Then python x.py build yields:

Updating only changed submodules
Submodules updated in 0.42 seconds
   Compiling unicode-xid v0.1.0
   Compiling winapi v0.3.4
   Compiling cfg-if v0.1.2
   Compiling serde v1.0.37
   Compiling libc v0.2.40
   Compiling fixedbitset v0.1.9
   Compiling cc v1.0.9
   Compiling num-traits v0.2.2
   Compiling dtoa v0.4.2
   Compiling ordermap v0.3.5
   Compiling itoa v0.4.1
   Compiling getopts v0.2.17
   Compiling lazy_static v0.2.11
   Compiling build_helper v0.1.0 (file:///C:/Users/cyber/Rust/rust/src/build_helper)
   Compiling proc-macro2 v0.3.1
   Compiling filetime v0.1.15
   Compiling num_cpus v1.8.0
   Compiling petgraph v0.4.12
   Compiling cmake v0.1.29
   Compiling quote v0.5.1
   Compiling serde_json v1.0.13
   Compiling toml v0.4.5
   Compiling syn v0.13.1
   Compiling time v0.1.39
   Compiling serde_derive_internals v0.23.0
   Compiling serde_derive v1.0.37
   Compiling bootstrap v0.0.0 (file:///C:/Users/cyber/Rust/rust/src/bootstrap)
    Finished dev [unoptimized] target(s) in 55.32 secs


failed to execute command: "C:\\Users\\my_user\\Rust\\rust\\build\\x86_64-pc-windows-msvc\\stage0/bin\\cargo.exe" "metadata" "--format-version" "1" "--manifest-path" "C:\\Users\\my_user\\Rust\\rust\\src/libstd\\Cargo.toml"
error: The system cannot find the file specified. (os error 2)


failed to run: C:\Users\my_user\Rust\rust\build\bootstrap\debug\bootstrap build
Build completed unsuccessfully in 0:00:58
@ishitatsuyuki ishitatsuyuki added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) C-bug Category: This is a bug. labels Apr 7, 2018
@ishitatsuyuki
Copy link
Contributor

@Mark-Simulacrum You seem to recently modified the bootstrap. Can this be #48913?

@ollie27
Copy link
Member

ollie27 commented Apr 7, 2018

#49759 should fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

No branches or pull requests

3 participants