[libc-commits] [libc] [libc] fix pthread build issue for full-build mode (PR #100912)

LLVM Continuous Integration via libc-commits libc-commits at lists.llvm.org
Sat Jul 27 20:56:22 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `libc-aarch64-ubuntu-fullbuild-dbg` running on `libc-aarch64-ubuntu` while building `libc` at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/71/builds/3229

Here is the relevant piece of the build log for the reference:
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[748/752] Running unit test libc.test.src.__support.threads.linux.raw_mutex_test.__unit__
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcSupportThreadsRawMutexTest.SmokeTest
[       OK ] LlvmLibcSupportThreadsRawMutexTest.SmokeTest (3 us)
[ RUN      ] LlvmLibcSupportThreadsRawMutexTest.Timeout
[       OK ] LlvmLibcSupportThreadsRawMutexTest.Timeout (32 us)
[ RUN      ] LlvmLibcSupportThreadsRawMutexTest.PSharedLock
[       OK ] LlvmLibcSupportThreadsRawMutexTest.PSharedLock (2 ms)
Ran 3 tests.  PASS: 3  FAIL: 0
[749/752] Linking CXX executable projects/libc/test/src/unistd/libc.test.src.unistd.gettid_test.__build__
FAILED: projects/libc/test/src/unistd/libc.test.src.unistd.gettid_test.__build__ 
: && /usr/bin/clang++ -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g  projects/libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.gettid_test.__build__.dir/gettid_test.cpp.o -o projects/libc/test/src/unistd/libc.test.src.unistd.gettid_test.__build__  projects/libc/src/errno/CMakeFiles/libc.src.errno.errno.__internal__.dir/./libc_errno.cpp.o  projects/libc/src/__support/OSUtil/linux/CMakeFiles/libc.src.__support.OSUtil.linux.linux_util.dir/./exit.cpp.o  projects/libc/src/__support/OSUtil/linux/CMakeFiles/libc.src.__support.OSUtil.linux.linux_util.dir/./fcntl.cpp.o  projects/libc/src/__support/threads/linux/CMakeFiles/libc.src.__support.threads.linux.thread.dir/./thread.cpp.o  projects/libc/src/__support/threads/CMakeFiles/libc.src.__support.threads.thread.dir/./thread.cpp.o  projects/libc/src/unistd/CMakeFiles/libc.src.unistd.gettid.__internal__.dir/./gettid.cpp.o  projects/libc/src/__support/StringUtil/CMakeFiles/libc.src.__support.StringUtil.error_to_string.dir/./error_to_string.cpp.o  lib/libLibcDeathTestExecutors.unit.a  lib/libLibcTest.unit.a && :
/usr/bin/ld: projects/libc/src/__support/threads/linux/CMakeFiles/libc.src.__support.threads.linux.thread.dir/./thread.cpp.o: in function `__llvm_libc_19_0_0_git::cleanup_thread_resources(__llvm_libc_19_0_0_git::ThreadAttributes*)':
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/threads/linux/thread.cpp:151: undefined reference to `__llvm_libc_19_0_0_git::cleanup_tls(unsigned long, unsigned long)'
/usr/bin/ld: projects/libc/src/__support/threads/linux/CMakeFiles/libc.src.__support.threads.linux.thread.dir/./thread.cpp.o: in function `__llvm_libc_19_0_0_git::Thread::run(__llvm_libc_19_0_0_git::ThreadStyle, __llvm_libc_19_0_0_git::ThreadRunner, void*, void*, unsigned long, unsigned long, bool)':
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/threads/linux/thread.cpp:237: undefined reference to `__llvm_libc_19_0_0_git::init_tls(__llvm_libc_19_0_0_git::TLSDescriptor&)'
/usr/bin/ld: /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/threads/linux/thread.cpp:262: undefined reference to `__llvm_libc_19_0_0_git::cleanup_tls(unsigned long, unsigned long)'
/usr/bin/ld: projects/libc/src/__support/threads/linux/CMakeFiles/libc.src.__support.threads.linux.thread.dir/./thread.cpp.o: in function `__llvm_libc_19_0_0_git::cleanup_thread_resources(__llvm_libc_19_0_0_git::ThreadAttributes*)':
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/threads/linux/thread.cpp:151: undefined reference to `__llvm_libc_19_0_0_git::cleanup_tls(unsigned long, unsigned long)'
/usr/bin/ld: /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/threads/linux/thread.cpp:151: undefined reference to `__llvm_libc_19_0_0_git::cleanup_tls(unsigned long, unsigned long)'
/usr/bin/ld: /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/threads/linux/thread.cpp:151: undefined reference to `__llvm_libc_19_0_0_git::cleanup_tls(unsigned long, unsigned long)'
/usr/bin/ld: projects/libc/test/src/unistd/libc.test.src.unistd.gettid_test.__build__: hidden symbol `_ZN22__llvm_libc_19_0_0_git11cleanup_tlsEmm' isn't defined
/usr/bin/ld: final link failed: bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[750/752] Running unit test libc.test.src.stdlib.strtoint64_test.__unit__
[==========] Running 14 tests from 1 test suite.
[ RUN      ] LlvmLibcStrtoint64Test.InvalidBase
[       OK ] LlvmLibcStrtoint64Test.InvalidBase (3 us)
[ RUN      ] LlvmLibcStrtoint64Test.CleanBaseTenDecode
[       OK ] LlvmLibcStrtoint64Test.CleanBaseTenDecode (7 us)
[ RUN      ] LlvmLibcStrtoint64Test.MessyBaseTenDecode
[       OK ] LlvmLibcStrtoint64Test.MessyBaseTenDecode (6 us)
[ RUN      ] LlvmLibcStrtoint64Test.DecodeInOtherBases
[       OK ] LlvmLibcStrtoint64Test.DecodeInOtherBases (306 ms)
[ RUN      ] LlvmLibcStrtoint64Test.CleanBaseSixteenDecode
[       OK ] LlvmLibcStrtoint64Test.CleanBaseSixteenDecode (7 us)
[ RUN      ] LlvmLibcStrtoint64Test.MessyBaseSixteenDecode
[       OK ] LlvmLibcStrtoint64Test.MessyBaseSixteenDecode (2 us)
[ RUN      ] LlvmLibcStrtoint64Test.AutomaticBaseSelection
[       OK ] LlvmLibcStrtoint64Test.AutomaticBaseSelection (3 us)
[ RUN      ] LlvmLibcStrtouint64Test.InvalidBase
[       OK ] LlvmLibcStrtouint64Test.InvalidBase (1 us)
[ RUN      ] LlvmLibcStrtouint64Test.CleanBaseTenDecode
[       OK ] LlvmLibcStrtouint64Test.CleanBaseTenDecode (6 us)
[ RUN      ] LlvmLibcStrtouint64Test.MessyBaseTenDecode
[       OK ] LlvmLibcStrtouint64Test.MessyBaseTenDecode (5 us)
[ RUN      ] LlvmLibcStrtouint64Test.DecodeInOtherBases
[       OK ] LlvmLibcStrtouint64Test.DecodeInOtherBases (309 ms)
[ RUN      ] LlvmLibcStrtouint64Test.CleanBaseSixteenDecode
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[748/752] Running unit test libc.test.src.__support.threads.linux.raw_mutex_test.__unit__
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcSupportThreadsRawMutexTest.SmokeTest
[       OK ] LlvmLibcSupportThreadsRawMutexTest.SmokeTest (3 us)
[ RUN      ] LlvmLibcSupportThreadsRawMutexTest.Timeout
[       OK ] LlvmLibcSupportThreadsRawMutexTest.Timeout (32 us)
[ RUN      ] LlvmLibcSupportThreadsRawMutexTest.PSharedLock
[       OK ] LlvmLibcSupportThreadsRawMutexTest.PSharedLock (2 ms)
Ran 3 tests.  PASS: 3  FAIL: 0
[749/752] Linking CXX executable projects/libc/test/src/unistd/libc.test.src.unistd.gettid_test.__build__
FAILED: projects/libc/test/src/unistd/libc.test.src.unistd.gettid_test.__build__ 
: && /usr/bin/clang++ -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g  projects/libc/test/src/unistd/CMakeFiles/libc.test.src.unistd.gettid_test.__build__.dir/gettid_test.cpp.o -o projects/libc/test/src/unistd/libc.test.src.unistd.gettid_test.__build__  projects/libc/src/errno/CMakeFiles/libc.src.errno.errno.__internal__.dir/./libc_errno.cpp.o  projects/libc/src/__support/OSUtil/linux/CMakeFiles/libc.src.__support.OSUtil.linux.linux_util.dir/./exit.cpp.o  projects/libc/src/__support/OSUtil/linux/CMakeFiles/libc.src.__support.OSUtil.linux.linux_util.dir/./fcntl.cpp.o  projects/libc/src/__support/threads/linux/CMakeFiles/libc.src.__support.threads.linux.thread.dir/./thread.cpp.o  projects/libc/src/__support/threads/CMakeFiles/libc.src.__support.threads.thread.dir/./thread.cpp.o  projects/libc/src/unistd/CMakeFiles/libc.src.unistd.gettid.__internal__.dir/./gettid.cpp.o  projects/libc/src/__support/StringUtil/CMakeFiles/libc.src.__support.StringUtil.error_to_string.dir/./error_to_string.cpp.o  lib/libLibcDeathTestExecutors.unit.a  lib/libLibcTest.unit.a && :
/usr/bin/ld: projects/libc/src/__support/threads/linux/CMakeFiles/libc.src.__support.threads.linux.thread.dir/./thread.cpp.o: in function `__llvm_libc_19_0_0_git::cleanup_thread_resources(__llvm_libc_19_0_0_git::ThreadAttributes*)':
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/threads/linux/thread.cpp:151: undefined reference to `__llvm_libc_19_0_0_git::cleanup_tls(unsigned long, unsigned long)'
/usr/bin/ld: projects/libc/src/__support/threads/linux/CMakeFiles/libc.src.__support.threads.linux.thread.dir/./thread.cpp.o: in function `__llvm_libc_19_0_0_git::Thread::run(__llvm_libc_19_0_0_git::ThreadStyle, __llvm_libc_19_0_0_git::ThreadRunner, void*, void*, unsigned long, unsigned long, bool)':
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/threads/linux/thread.cpp:237: undefined reference to `__llvm_libc_19_0_0_git::init_tls(__llvm_libc_19_0_0_git::TLSDescriptor&)'
/usr/bin/ld: /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/threads/linux/thread.cpp:262: undefined reference to `__llvm_libc_19_0_0_git::cleanup_tls(unsigned long, unsigned long)'
/usr/bin/ld: projects/libc/src/__support/threads/linux/CMakeFiles/libc.src.__support.threads.linux.thread.dir/./thread.cpp.o: in function `__llvm_libc_19_0_0_git::cleanup_thread_resources(__llvm_libc_19_0_0_git::ThreadAttributes*)':
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/threads/linux/thread.cpp:151: undefined reference to `__llvm_libc_19_0_0_git::cleanup_tls(unsigned long, unsigned long)'
/usr/bin/ld: /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/threads/linux/thread.cpp:151: undefined reference to `__llvm_libc_19_0_0_git::cleanup_tls(unsigned long, unsigned long)'
/usr/bin/ld: /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/threads/linux/thread.cpp:151: undefined reference to `__llvm_libc_19_0_0_git::cleanup_tls(unsigned long, unsigned long)'
/usr/bin/ld: projects/libc/test/src/unistd/libc.test.src.unistd.gettid_test.__build__: hidden symbol `_ZN22__llvm_libc_19_0_0_git11cleanup_tlsEmm' isn't defined
/usr/bin/ld: final link failed: bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[750/752] Running unit test libc.test.src.stdlib.strtoint64_test.__unit__
[==========] Running 14 tests from 1 test suite.
[ RUN      ] LlvmLibcStrtoint64Test.InvalidBase
[       OK ] LlvmLibcStrtoint64Test.InvalidBase (3 us)
[ RUN      ] LlvmLibcStrtoint64Test.CleanBaseTenDecode
[       OK ] LlvmLibcStrtoint64Test.CleanBaseTenDecode (7 us)
[ RUN      ] LlvmLibcStrtoint64Test.MessyBaseTenDecode
[       OK ] LlvmLibcStrtoint64Test.MessyBaseTenDecode (6 us)
[ RUN      ] LlvmLibcStrtoint64Test.DecodeInOtherBases
[       OK ] LlvmLibcStrtoint64Test.DecodeInOtherBases (306 ms)
[ RUN      ] LlvmLibcStrtoint64Test.CleanBaseSixteenDecode
[       OK ] LlvmLibcStrtoint64Test.CleanBaseSixteenDecode (7 us)
[ RUN      ] LlvmLibcStrtoint64Test.MessyBaseSixteenDecode
[       OK ] LlvmLibcStrtoint64Test.MessyBaseSixteenDecode (2 us)
[ RUN      ] LlvmLibcStrtoint64Test.AutomaticBaseSelection
[       OK ] LlvmLibcStrtoint64Test.AutomaticBaseSelection (3 us)
[ RUN      ] LlvmLibcStrtouint64Test.InvalidBase
[       OK ] LlvmLibcStrtouint64Test.InvalidBase (1 us)
[ RUN      ] LlvmLibcStrtouint64Test.CleanBaseTenDecode
[       OK ] LlvmLibcStrtouint64Test.CleanBaseTenDecode (6 us)
[ RUN      ] LlvmLibcStrtouint64Test.MessyBaseTenDecode
[       OK ] LlvmLibcStrtouint64Test.MessyBaseTenDecode (5 us)
[ RUN      ] LlvmLibcStrtouint64Test.DecodeInOtherBases
[       OK ] LlvmLibcStrtouint64Test.DecodeInOtherBases (309 ms)
[ RUN      ] LlvmLibcStrtouint64Test.CleanBaseSixteenDecode

```

https://github.com/llvm/llvm-project/pull/100912


More information about the libc-commits mailing list