You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rustc-1.88.0 does not build using external LLVM due to missing rust-lld #143076
changed the title [-]rustc-1.88.0 does not build on Darwin due missing rust-lld[/-][+]rustc-1.88.0 does not build using external LLVM due to missing rust-lld[/+]on Jun 27, 2025
@Kobzol I'm not sure if i follow linked PR but I suppose rust.lld = false will be required in later releases too, is that correct? If yes would it be possible to change rust.lld default to !system_llvm?
Activity
debohman commentedon Jun 27, 2025
I was able to successfully complete the build by doing the following:
Copy
lddtobuild/x86_64-apple-darwin/stage2/lib/rustlib/x86_64-apple-darwin/bin/rust-lldCreate a directory
build/x86_64-apple-darwin/stage2/lib/rustlib/x86_64-apple-darwin/bin/gcc-ldInside that directory, hardlink
ld.lld,ld64.lld,lld-link,wasm-ldtorust-lldThe question is: If the build requires it, then why isn't the stage2 directory correctly populated?
debohman commentedon Jun 27, 2025
Note that I also worked around the issue in #139400.
jpalus commentedon Jun 27, 2025
Note: issue is not Darwin specific, I see the same on Linux using system installed llvm.
jpalus commentedon Jun 27, 2025
In case it's useful here's full backtrace:
backtrace
[-]rustc-1.88.0 does not build on Darwin due missing rust-lld[/-][+]rustc-1.88.0 does not build using external LLVM due to missing rust-lld[/+]jpalus commentedon Jun 28, 2025
#139853 might possibly be related (cc @Kobzol)
Auto merge of #143175 - Kobzol:bootstrap-lld-external-llvm-config, r=…
Kobzol commentedon Jun 29, 2025
Thanks for the report, this is indeed a bootstrap bug. I'll try fixing it in #143175.
Kobzol commentedon Jun 30, 2025
#143175 will solve this for the future. For 1.88.0, please set
rust.lld = falseinbootstrap.toml.jpalus commentedon Jun 30, 2025
@Kobzol I'm not sure if i follow linked PR but I suppose
rust.lld = falsewill be required in later releases too, is that correct? If yes would it be possible to changerust.llddefault to!system_llvm?Rollup merge of rust-lang#143175 - Kobzol:bootstrap-lld-external-llvm…
Kobzol commentedon Jun 30, 2025
Oh, good point, I didn't realize it's in fact enabled by default in dist. I'll change the default as you said.
Kobzol commentedon Jun 30, 2025
#143255 should resolve the default.
Auto merge of #143255 - Kobzol:disable-lld-by-default, r=<try>
Auto merge of #143255 - Kobzol:disable-lld-by-default, r=<try>
Unrolled build for #143175
Rollup merge of #143175 - Kobzol:bootstrap-lld-external-llvm-config, …
Rollup merge of rust-lang#143255 - Kobzol:disable-lld-by-default, r=j…
Unrolled build for #143255
rust-1.88: set rust.lld to false to fix FTBFS
rust-1.88: set rust.lld to false to fix FTBFS
up to 1.88.0
Rollup merge of #143175 - Kobzol:bootstrap-lld-external-llvm-config, …