Closed
Description
I tried this code on a fresh git clone of rust-lang/rust:
x.py setup library
I expected to see this happen: setup works without errors.
Instead, this happened: x.py gives an error:
Welcome to the Rust project! What do you want to do with x.py?
a) library: Contribute to the standard library
b) compiler: Contribute to the compiler itself
c) codegen: Contribute to the compiler, and also modify LLVM or codegen
d) tools: Contribute to tools which depend on the compiler, but do not modify it directly (e.g. rustdoc, clippy, miri)
e) user: Install Rust from source
Please choose one (a/b/c/d/e): b
`x.py` will now use the configuration at .../rust/src/bootstrap/defaults/config.compiler.toml
`rustup` failed to link stage 1 build to `stage1` toolchain
To manually link stage 1 build to `stage1` toolchain, run:
`rustup toolchain link stage1 build/x86_64-unknown-linux-gnu/stage1`
Meta
This feature was introduced in #89212 and worked at that time. @Sl1mb0 do you have time to look into this? The original bug report was from Nazar Mokrynskyi on Zulip, not sure their github username.
Activity
Sl1mb0 commentedon Dec 27, 2021
Yes, I'll take a look over the next few days.
yerke commentedon Jan 26, 2022
Hello. Is there a workaround for this issue for now?
I got
But when I ran
rustup toolchain link stage1 build/aarch64-apple-darwin/stage1
, I goterror: not a directory: 'build/aarch64-apple-darwin/stage1/lib'
.yerke commentedon Jan 26, 2022
OK. After reading the zulip thread, I figured out how to work around it. After running
./x.py build
,rustup toolchain link stage1 build/aarch64-apple-darwin/stage1
succeeded.yerke commentedon Jan 26, 2022
@rustbot claim
./x.py setup
#93487Rollup merge of rust-lang#93487 - yerke:yerke/fix-link-toolchain-in-s…
Rollup merge of rust-lang#93487 - yerke:yerke/fix-link-toolchain-in-s…
Rollup merge of rust-lang#93487 - yerke:yerke/fix-link-toolchain-in-s…
Rollup merge of rust-lang#93487 - yerke:yerke/fix-link-toolchain-in-s…
Rollup merge of rust-lang#93487 - yerke:yerke/fix-link-toolchain-in-s…