-
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
rust-lld doesn't work on Linux unless executed with rustup wrapper #80703
Comments
This is an attempt to work around rust-lang/rust#80703 to get CI green again.
This is an attempt to work around rust-lang/rust#80703 to get CI green again.
Assigning |
This issue was probably introduced between 9310e3b and 215f2d3. Unfortunately, I lack the experience to bisect Rust's source further, or rather I encounter unrelated issues. Hopefully, that range can help someone else. For completeness (and to make sure that I actually did the correct thing), here's how I found the range: with #!/bin/bash
echo 'fn main() {}' > rust.rs
rustc foo.rs --target wasm32-unknown-unknown
`rustup ${TC} which rustc` foo.rs --target wasm32-unknown-unknown and cargo-bisect-rustc -v --preserve --target wasm32-unknown-unknown --start 2020-04-08 --end 2020-12-31 --script `pwd`/issue-80703.sh yielded
The Hope that helps! |
visited for P-high review. assigned to @lqd as the rust-lld expert/stakeholder that I'm familiar with. :) |
In case anyone is blocked by this issue until it's fixed, there's also this workaround: |
Until the PR lands on nightly, I've verified this issue as fixed on master commit |
I noticed that some CI builds started breaking over winter break with the 1.49.0 release of rustc. It looks like this is the behavior I'm running into:
This appears to work with 1.48.0. It looks like in Rust 1.48.0 the
rust-lld
executable had libLLVM statically linked and now it has it dynamically linked. Unless the rustup wrapper is executed though (which mungesLD_LIBRARY_PATH
I believe) the executable no longer works (e.g. if you execute the rustc binary directly).I think this is a case where the
-rpath
business may need to get involved? Ideallyrust-lld
would know that its libraries, when installed, are a few layers up.The text was updated successfully, but these errors were encountered: