test-rwlock1 can fail when system linker defaults to --as-needed
test-rwlock1 was failing on ubuntu builders, for example:
Digging revealed that the test-rwlock1 binary did not have a DT_NEEDED entry for libpthread, because Ubuntu defaults to --as-needed for the linker and there was no non-weak reference to any symbol in libpthread. I added a spurious reference to errno (__errno_location is defined in libpthread.so) and the build succeeds again, but it's a bit of a silly fix. I'm not sure what would be better. (From a distro perspective, trying to be careful about whether libpthread is linked in or not is just unhelpful...)
#2 Updated by Antoine LUONG 10 months ago
This is a problem in GnuLib, fixed in https://github.com/coreutils/gnulib/commit/426320901d46b1f3b63ba1ec8e9e60cb0e28cb77.
We need to update the code in our repositories.