FS#53714 - [llvm] Upgrading to 4.0 breaks Rust toolchains

Attached to Project: Arch Linux
Opened by Tatsuyuki Ishi (ishitatsuyuki) - Wednesday, 19 April 2017, 11:49 GMT
Last edited by Evangelos Foutras (foutrelis) - Wednesday, 19 April 2017, 14:10 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To No-one
Architecture All
Severity Critical
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The Rust toolchain dynamically links to llvm-libs. Upgrading to 4.0 breaks them.

Possible solutions:

* Hold LLVM 4.0 until Rust supports LLVM 4.0 in stable. This takes at least 3 months and probably more.
(https://github.com/rust-lang/rust/pull/40123)

* Build Rust toolchain with statically linked LLVM (which is independent from the system package).
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Wednesday, 19 April 2017, 14:10 GMT
Reason for closing:  Not a bug
Comment by Tatsuyuki Ishi (ishitatsuyuki) - Wednesday, 19 April 2017, 11:53 GMT
Apparently the LLVM 4.0 support is quite complete and it worths rebuilding Rust with it. I have no idea if how much of it has landed on stable though.

Use this for a more detailed reference: https://github.com/rust-lang/rust/issues/37609
Comment by Evangelos Foutras (foutrelis) - Wednesday, 19 April 2017, 13:54 GMT
Our rust package isn't built with --enable-llvm-link-shared and it appears to link statically to LLVM.

Please provide a compilation command that shows the breakage.
Comment by Tatsuyuki Ishi (ishitatsuyuki) - Wednesday, 19 April 2017, 13:55 GMT
Oh, that's my mistake then. I assumed there's​ a breakage because it depends on llvm-libs.
Comment by Evangelos Foutras (foutrelis) - Wednesday, 19 April 2017, 14:10 GMT
Someone else asked about this yesterday too. The person who maintains our rust package has been notified about the unused llvm-libs dep and he might build rust with "--enable-llvm-link-shared" once it supports LLVM 4.0.

Loading...