Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upusing rustbuild breaks compiling against system llvm when linked against libffi #39880
Comments
This comment has been minimized.
This comment has been minimized.
|
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) |
This comment has been minimized.
This comment has been minimized.
|
I will try that now. Than you. |
This comment has been minimized.
This comment has been minimized.
|
Yeah, I'm currently trying to build rust 1.15.1 for Arch, and I've tried both the old setting |
This comment has been minimized.
This comment has been minimized.
|
I noticed Fedora is using --disable-rustbuild http://pkgs.fedoraproject.org/cgit/rpms/rust.git/tree/rust.spec#n260 which retains the old behavior. |
This comment has been minimized.
This comment has been minimized.
|
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 |
This comment has been minimized.
This comment has been minimized.
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 |
japaric
added a commit
to japaric/rust
that referenced
this issue
Apr 7, 2017
japaric
added a commit
to japaric/rust
that referenced
this issue
Apr 7, 2017
Mark-Simulacrum
added
the
A-rustbuild
label
May 24, 2017
Mark-Simulacrum
added
the
C-bug
label
Jul 27, 2017
This comment has been minimized.
This comment has been minimized.
|
I take it this isn't a problem on Rust's side, so closing. If I'm wrong please let us know! |
Mark-Simulacrum
closed this
Sep 15, 2017
dylanmckay
added a commit
to avr-rust/rust
that referenced
this issue
Sep 24, 2017
dylanmckay
added a commit
to avr-rust/rust
that referenced
this issue
Sep 24, 2017
dylanmckay
added a commit
to avr-rust/rust
that referenced
this issue
Sep 25, 2017
dylanmckay
added a commit
to avr-rust/rust
that referenced
this issue
Sep 25, 2017
shepmaster
added a commit
to avr-rust/rust
that referenced
this issue
Sep 28, 2017
This comment has been minimized.
This comment has been minimized.
|
is there an llvm issue open for this? |
hussamT commentedFeb 16, 2017
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.