-
Notifications
You must be signed in to change notification settings - Fork 13.3k
using rustbuild breaks compiling against system llvm when linked against libffi #39880
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
That’s most likely because your system
That’s a bug in your system LLVM. Workaround is to put something like #!/usr/bin/bash
/usr/bin/llvm-config "$@" | sed 's/-lm/-lm -lffi/' in your path (so the script would execute instead of the actual llvm-config, when llvm-config is invoked) |
I will try that now. Than you. |
Yeah, I'm currently trying to build rust 1.15.1 for Arch, and I've tried both the old setting |
I noticed Fedora is using --disable-rustbuild http://pkgs.fedoraproject.org/cgit/rpms/rust.git/tree/rust.spec#n260 which retains the old behavior. |
Just discovered that it's a regression in llvm(-config). On e.g. debian it is included in llvm-config, and if I download the Arch package for the same llvm version it also outputs |
For 1.15, yes, as I haven't transitioned yet. I hope to use rustbuild for 1.16. Fedora doesn't normally use static linking, but it's an option, and you can see my ffi workaround here: I still think |
I take it this isn't a problem on Rust's side, so closing. If I'm wrong please let us know! |
This shouldn't need to be in tree, but I'm committing it anyway because it's a headache when compiling with a separate LLVM root.
This shouldn't need to be in tree, but I'm committing it anyway because it's a headache when compiling with a separate LLVM root.
is there an llvm issue open for this? |
I get the following error:
rust undefined reference to `ffi_type_double'
There was a workaround that helped in the past but it doesn't anymore.
The text was updated successfully, but these errors were encountered: