Closed
Description
In the libc-0.2 branch, making any change (such as modifying a README) results in CI failure due to a linking error in aarch64-unknown-linux-musl
. It appears that one of the tests is attempting to include the Thread::get_name
method (which internally uses pthread_getname_np
), but the current musl CI does not have the pthread_getname_np
function as its libc is too old.
= note: /usr/lib/gcc-cross/aarch64-linux-gnu/13/../../../../aarch64-linux-gnu/bin/ld: /rust/lib/rustlib/aarch64-unknown-linux-musl/lib/libstd-5be27651eb2c54c7.rlib(std-5be27651eb2c54c7.std.10df3d0a1be3812f-cgu.0.rcgu.o): in function `std::sys::pal::unix::thread::Thread::get_name':
/rustc/b6d2d841bcf4b77343b159f134c7d39c2dd4ceaa/library/std/src/sys/pal/unix/thread.rs:233:(.text._ZN3std3sys3pal4unix6thread6Thread8get_name17hfd35a9649b47184eE+0x28): undefined reference to `pthread_getname_np'
collect2: error: ld returned 1 exit status