-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
unsupported linker arg: --no-undefined-version #16855
Comments
If ignoring |
Hey @DavidZbarsky-at, I've also run into this using https://github.com/uber/hermetic_cc_toolchain with zig I found that rolling back to rust version |
I've also run into this issue, but the solution proposed by @dbanetto isn't going to work for me, as some dependent libraries require Couple additional notes:
As a result, I've opened up a PR #17326 adding this, but would really welcome a second set of eyes (it feels wrong/incomplete to me) to make sure that i'm parsing / passing the flag around correctly from the |
@DhashS thank you for mentioning cargo zigbuild. That also works for me. |
I am not sure if this is the right place, but I had a Rust/Python project that was broken by this. I build python wheels using maturin: maturin build --release --interpreter python3.9 --target x86_64-unknown-linux-gnu --zig Using a rustc 1.74 this failed with the mentioned error. rustup default 1.69 Is this issue still looked into? I'd love to be able to use a newer rustc version. |
Zig Version
0.11.0-dev.3886+0c1bfe271
Steps to Reproduce and Observed Behavior
I am using zig as a hermetic toolchain when building C and Rust code (https://github.com/uber/hermetic_cc_toolchain)
It looks as of rust-lang/rust#108017, upstream llvm defaults to passing
-undefined-version
when it detect lld, which Rustc overrides with--no-undefined-version
, which Zig doesn't know about yet. (See https://reviews.llvm.org/D135402 for more details)Could these two flag be implemented (or at least turn --no-undefined-version into a no-op for now)?
It's a bit complicated to get a reduced repro case so hopefully this is clear enough, but let me know if you really need one.
Expected Behavior
Link my object
The text was updated successfully, but these errors were encountered: