-
-
Notifications
You must be signed in to change notification settings - Fork 16
Fails to build when linking with lld
#21
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
The build script relies on pkg-config for its linker configuration. You should file this issue on the libunwind project (or the packager that created your libunwind binaries): https://github.com/sfackler/rstack/blob/master/unwind-sys/build.rs#L11 |
The solution is to replace |
But you're not statically linking to libunwind - the linker error references |
Looks like this is the problem: libunwind/libunwind#586 However, libunwind is still on 1.6.2 on Ubuntu 22.04. Would you not be up for manually adding an extra linker flag via a cargo directive, until 1.8.0 propagates through the distros? |
The
unwind-sys
crate fails to build when usinglld
as the linker:RUSTFLAGS='-Clink-args=-fuse-ld=lld' cargo t --all-features
produces a linker error:Your crate seems to rely on some GNU
ld
behaviour that thelld
team are unwilling to replicate (llvm/llvm-project#54700).I suggest this can be fixed by adding a
cargo:rustc-link-lib=lzma
directive to yourbuild.rs
build script.The text was updated successfully, but these errors were encountered: