-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
lld-wrapper fails again #101370
Comments
@tschuett |
I found in the clang invocation: "-B/Users/XXXX/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin/gcc-ld" "-fuse-ld=lld" > ls /Users/XXX/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin/gcc-ld
ld.lld ld64.lld lld-link wasm-ld |
It looks like maybe clang replaces |
I can't confirm whether that's the case right now, but if that's true then the fix would be as simple as adding the |
Apple ships its linker as |
I believe the issue is with the usage of Wait. One solution is to normalise the string or |
This is not happening only on osx. I can reproduce this.
The path is correct and unchanged by clang, but it's indeed the I'll fix it. |
The |
I tried this code:
RUSTFLAGS='-Z gcc-ld=lld -C target-cpu=native' cargo +nightly build --release
and this happened:
I expected to see this happen: it would compile my crate.
Instead, this happened: lld failed.
Meta
rustc --version --verbose
:#100200 fixed the problem that I reported in #97755. There seems to be a new problem with an unknown linker name.
Backtrace
@petrochenkov
The text was updated successfully, but these errors were encountered: