-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Bootstrap without creating a config.toml fails with missing rust-objcopy #133195
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
Comments
Only copy, rename and link llvm-objcopy if llvm tools are enabled #132720 fixes Shipping llvm-strip w/ a symlink breaks when bootstrap compiler doesn't contain any LLVM tools #132719 because cg_clif doesn't have llvm bin tools in the bootstrap compiler. That was because bootstrap/codegen_ssa: ship llvm-strip and use it for -Cstrip #131405 was introduced to fix Hard-coded strip path breaks Linux -> Darwin builds #131206. And
Footnotes
|
I'm not very sure what's the proper fix here... Default |
Right... because we hard code this to rust/compiler/rustc_codegen_ssa/src/back/link.rs Lines 1106 to 1107 in e6c1e14
|
Apparently without a config.toml |
Rollup merge of rust-lang#133207 - jieyouxu:macos-objcopy, r=Kobzol,bjorn3 Default-enable `llvm_tools_enabled` when no `config.toml` is present Fixes rust-lang#133195. cc `@wesleywiser` could you double check if with this patch and no `config.toml` that you can run `./x test tests/ui --stage 1`? `llvm-objcopy` is usually required by cg_ssa on macOS to workaround bad `strip`s. cc `@bjorn3` I hope this doesn't break cg_clif... r? bootstrap
After cloning, I expected
python3 x.py test --stage 1 tests/ui
to succeed but instead I got many test failures like this one:However, if I create a
config.toml
bycp config.example.toml config.toml
, then the problem goes away.I instrumented the code here with a
println!()
and I can see that whenconfig.toml
exists, this block runs but whenconfig.toml
does not exist, it does not run:rust/src/bootstrap/src/core/build_steps/compile.rs
Lines 1980 to 1988 in b71fb5e
Possibly related to #132720 cc @jieyouxu
Meta
Cloned rust-lang/rust at b71fb5e
Host is
aarch64-apple-darwin
The text was updated successfully, but these errors were encountered: