-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.D-confusingDiagnostics: Confusing error or lint that should be reworked.Diagnostics: Confusing error or lint that should be reworked.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Description
the offending config:
# .cargo/config.toml
unstable.codegen-backend = true
# commenting out the following line will allow rustc to bootstrap successfully
profile.dev.codegen-backend = "cranelift"
the errror:
error: failed to find a `codegen-backends` folder in the sysroot candidates:
* /home/binarycat/src/rs/rust/build/x86_64-unknown-linux-gnu/stage0
* /home/binarycat/src/rs/rust/build/x86_64-unknown-linux-gnu/stage0
reproduction steps:
- enable download-rustc
- remove all of
build/
./x doc library/core
(probably any build command works)
there's a lot of workarounds for this, but i was only able to diagnose it on a hunch, so at the very least the error message should be more clear.
Metadata
Metadata
Assignees
Labels
C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.D-confusingDiagnostics: Confusing error or lint that should be reworked.Diagnostics: Confusing error or lint that should be reworked.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)