FS#78698 - [rust-musl] rust 1.70.0 breaks compiling with musl
Attached to Project:
Arch Linux
Opened by Adam Fontenot (amfontenot) - Saturday, 03 June 2023, 23:41 GMT
Last edited by kpcyrd (kpcyrd) - Thursday, 31 August 2023, 12:21 GMT
Opened by Adam Fontenot (amfontenot) - Saturday, 03 June 2023, 23:41 GMT
Last edited by kpcyrd (kpcyrd) - Thursday, 31 August 2023, 12:21 GMT
|
Details
Description:
Trying to compile any package with `--target x86_64-unknown-linux-musl` fails after upgrading to 1.70.0; the same packages succeed with 1.69.0. The failure is in the linking stage: I see linking errors like /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/sys/unix/fs.rs:1056: undefined reference to `fstat64' Steps to reproduce: cargo new musltest cd musltest cargo build --target x86_64-unknown-linux-musl |
This task depends upon
Closed by kpcyrd (kpcyrd)
Thursday, 31 August 2023, 12:21 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in 1:1.72.0-1
Thursday, 31 August 2023, 12:21 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in 1:1.72.0-1
Maybe this is a backport candidate for Arch?
Following Gentoo ( https://github.com/gentoo/gentoo/pull/31205 ) we would need at least https://github.com/rust-random/getrandom/pull/326 and https://github.com/rust-lang/rust/pull/106246 as well. However, the latter is unmerged and the author "needs to find time to rework this".
FS#79002Since 1.71.0 Rust upstream now ships with musl 1.2.3 but not 1.2.4 yet.