Linking error on Rust 1.75.0 x86_64-unknown-linux-musl toolchain (and in aarch64) #119883
Labels
A-linkage
Area: linking into static, shared libraries and binaries
O-musl
Target: The musl libc
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I have a project that currently compiles and links with Rust 1.74.0 and earlier but gives a linking error in version 1.75.0 with x86_64-unknown-linux-musl and aarch64-unknown-linux-musl toolchains.
The failure occurs both when creating the debug version and the release version, in both versions it gives an undefined reference error.
Backtrace
Backtrace generated with
RUST_BACKTRACE=1 RUSTFLAGS="-Ctarget-feature=-crt-static" cargo build --release
.Backtrace
You can see here a pipeline execution to compile it with x86_64-unknown-linux-musl and here one to compile it with aarch64-unknown-linux-musl.
Note: I have tried to reproduce it with a simpler project using only
getrandom
but in that case the error does not occur.The text was updated successfully, but these errors were encountered: