[llvm] [SandboxIR] Update visibility of IR constructors. (PR #98107)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 17:34:07 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `sanitizer-ppc64le-linux` running on `ppc64le-sanitizer` while building `llvm` at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference:
```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
-- Configuring done (1.2s)
-- Generating done (0.3s)
-- Build files have been written to: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_gcc/runtimes/runtimes-bins
[6/7] cd /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_gcc/runtimes/runtimes-bins && /home/buildbots/llvm-external-buildbots/cmake-3.28.2/bin/cmake --build /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_gcc/runtimes/runtimes-bins/ --target check-compiler-rt --config Release
[0/10] Performing build step for 'libcxx_msan_powerpc64le'
ninja: no work to do.
[2/10] Building CXX object compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic_version_script_dummy.powerpc64le.dir/dummy.cpp.o
[3/8] Performing build step for 'libcxx_tsan_powerpc64le'
ninja: no work to do.
[6/8] Generating Rtsan-powerpc64le-NoInstTest
FAILED: compiler-rt/lib/rtsan/tests/Rtsan-powerpc64le-NoInstTest /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_gcc/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/Rtsan-powerpc64le-NoInstTest 
cd /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_gcc/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests && /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_gcc/./bin/clang++ RtsanNoInstTestObjects.rtsan_preinit.cpp.powerpc64le.o RtsanNoInstTestObjects.rtsan_test_context.cpp.powerpc64le.o RtsanNoInstTestObjects.rtsan_test_main.cpp.powerpc64le.o RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o RtsanNoInstTestObjects.gmock-all.cc.powerpc64le.o /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_gcc/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/libRTRtsanTest.powerpc64le.a -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_gcc/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/./Rtsan-powerpc64le-NoInstTest -fuse-ld=lld -Wl,--color-diagnostics -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_gcc/./lib/../lib/clang/19 -Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_gcc/./lib/../lib/clang/19/lib/linux -lstdc++ -no-pie -latomic -m64 -fno-function-sections
ld.lld: error: undefined symbol: pthread_getspecific
>>> referenced by gtest-port.h:1766 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1766)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::~ThreadLocal())
>>> referenced by gtest-port.h:1766 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1766)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::~ThreadLocal())
>>> referenced by gtest-port.h:1804 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1804)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::GetOrCreateValue() const)
>>> referenced 4 more times

ld.lld: error: undefined symbol: pthread_key_delete
>>> referenced by gtest-port.h:1770 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1770)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::~ThreadLocal())
>>> referenced by gtest-port.h:1770 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1770)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::~ThreadLocal())
>>> referenced by gtest-port.h:1770 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1770)
>>>               RtsanNoInstTestObjects.gmock-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::Sequence*>::~ThreadLocal())

ld.lld: error: undefined symbol: pthread_setspecific
>>> referenced by gtest-port.h:1811 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1811)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::GetOrCreateValue() const)
>>> referenced by gtest-port.h:1811 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1811)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::GetOrCreateValue() const)
>>> referenced by gtest-port.h:1811 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1811)
>>>               RtsanNoInstTestObjects.gmock-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::Sequence*>::GetOrCreateValue() const)
>>> referenced 1 more times

ld.lld: error: undefined symbol: pthread_key_create
>>> referenced by gtest-port.h:1797 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1797)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::CreateKey())
>>> referenced by gtest-port.h:1797 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1797)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::CreateKey())
>>> referenced by gtest-port.h:1797 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1797)
>>>               RtsanNoInstTestObjects.gmock-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::Sequence*>::CreateKey())
>>> referenced 1 more times

ld.lld: error: undefined symbol: pthread_once
>>> referenced by rtsan_context.cpp:35 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/lib/rtsan/rtsan_context.cpp:35)
Step 9 (test compiler-rt gcc) failure: test compiler-rt gcc (failure)
...
-- Configuring done (1.2s)
-- Generating done (0.3s)
-- Build files have been written to: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_gcc/runtimes/runtimes-bins
[6/7] cd /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_gcc/runtimes/runtimes-bins && /home/buildbots/llvm-external-buildbots/cmake-3.28.2/bin/cmake --build /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_gcc/runtimes/runtimes-bins/ --target check-compiler-rt --config Release
[0/10] Performing build step for 'libcxx_msan_powerpc64le'
ninja: no work to do.
[2/10] Building CXX object compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic_version_script_dummy.powerpc64le.dir/dummy.cpp.o
[3/8] Performing build step for 'libcxx_tsan_powerpc64le'
ninja: no work to do.
[6/8] Generating Rtsan-powerpc64le-NoInstTest
FAILED: compiler-rt/lib/rtsan/tests/Rtsan-powerpc64le-NoInstTest /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_gcc/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/Rtsan-powerpc64le-NoInstTest 
cd /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_gcc/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests && /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_gcc/./bin/clang++ RtsanNoInstTestObjects.rtsan_preinit.cpp.powerpc64le.o RtsanNoInstTestObjects.rtsan_test_context.cpp.powerpc64le.o RtsanNoInstTestObjects.rtsan_test_main.cpp.powerpc64le.o RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o RtsanNoInstTestObjects.gmock-all.cc.powerpc64le.o /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_gcc/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/libRTRtsanTest.powerpc64le.a -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_gcc/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/./Rtsan-powerpc64le-NoInstTest -fuse-ld=lld -Wl,--color-diagnostics -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_gcc/./lib/../lib/clang/19 -Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_gcc/./lib/../lib/clang/19/lib/linux -lstdc++ -no-pie -latomic -m64 -fno-function-sections
ld.lld: error: undefined symbol: pthread_getspecific
>>> referenced by gtest-port.h:1766 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1766)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::~ThreadLocal())
>>> referenced by gtest-port.h:1766 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1766)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::~ThreadLocal())
>>> referenced by gtest-port.h:1804 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1804)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::GetOrCreateValue() const)
>>> referenced 4 more times

ld.lld: error: undefined symbol: pthread_key_delete
>>> referenced by gtest-port.h:1770 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1770)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::~ThreadLocal())
>>> referenced by gtest-port.h:1770 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1770)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::~ThreadLocal())
>>> referenced by gtest-port.h:1770 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1770)
>>>               RtsanNoInstTestObjects.gmock-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::Sequence*>::~ThreadLocal())

ld.lld: error: undefined symbol: pthread_setspecific
>>> referenced by gtest-port.h:1811 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1811)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::GetOrCreateValue() const)
>>> referenced by gtest-port.h:1811 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1811)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::GetOrCreateValue() const)
>>> referenced by gtest-port.h:1811 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1811)
>>>               RtsanNoInstTestObjects.gmock-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::Sequence*>::GetOrCreateValue() const)
>>> referenced 1 more times

ld.lld: error: undefined symbol: pthread_key_create
>>> referenced by gtest-port.h:1797 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1797)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::CreateKey())
>>> referenced by gtest-port.h:1797 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1797)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::CreateKey())
>>> referenced by gtest-port.h:1797 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1797)
>>>               RtsanNoInstTestObjects.gmock-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::Sequence*>::CreateKey())
>>> referenced 1 more times

ld.lld: error: undefined symbol: pthread_once
>>> referenced by rtsan_context.cpp:35 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/lib/rtsan/rtsan_context.cpp:35)
Step 11 (test compiler-rt debug) failure: test compiler-rt debug (failure)
...
-- Build files have been written to: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_debug/runtimes/runtimes-bins
[6/7] cd /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_debug/runtimes/runtimes-bins && /home/buildbots/llvm-external-buildbots/cmake-3.28.2/bin/cmake --build /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_debug/runtimes/runtimes-bins/ --target check-compiler-rt --config Release
[0/10] Performing build step for 'libcxx_msan_powerpc64le'
ninja: no work to do.
[1/10] Building CXX object compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic_version_script_dummy.powerpc64le.dir/dummy.cpp.o
[2/8] Performing build step for 'libcxx_tsan_powerpc64le'
ninja: no work to do.
[3/8] Building CXX object compiler-rt/lib/ubsan/CMakeFiles/RTUbsan_dynamic_version_script_dummy.powerpc64le.dir/dummy.cpp.o
[5/8] Linking CXX shared library /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_debug/lib/clang/19/lib/linux/libclang_rt.asan-powerpc64le.so
[6/8] Generating Rtsan-powerpc64le-NoInstTest
FAILED: compiler-rt/lib/rtsan/tests/Rtsan-powerpc64le-NoInstTest /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_debug/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/Rtsan-powerpc64le-NoInstTest 
cd /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_debug/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests && /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_debug/./bin/clang++ RtsanNoInstTestObjects.rtsan_preinit.cpp.powerpc64le.o RtsanNoInstTestObjects.rtsan_test_context.cpp.powerpc64le.o RtsanNoInstTestObjects.rtsan_test_main.cpp.powerpc64le.o RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o RtsanNoInstTestObjects.gmock-all.cc.powerpc64le.o /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_debug/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/libRTRtsanTest.powerpc64le.a -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_debug/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/./Rtsan-powerpc64le-NoInstTest -fuse-ld=lld -Wl,--color-diagnostics -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_debug/./lib/../lib/clang/19 -Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_debug/./lib/../lib/clang/19/lib/linux -lstdc++ -no-pie -latomic -m64 -fno-function-sections
ld.lld: error: undefined symbol: pthread_getspecific
>>> referenced by gtest-port.h:1766 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1766)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::~ThreadLocal())
>>> referenced by gtest-port.h:1766 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1766)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::~ThreadLocal())
>>> referenced by gtest-port.h:1804 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1804)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::GetOrCreateValue() const)
>>> referenced 4 more times

ld.lld: error: undefined symbol: pthread_key_delete
>>> referenced by gtest-port.h:1770 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1770)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::~ThreadLocal())
>>> referenced by gtest-port.h:1770 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1770)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::~ThreadLocal())
>>> referenced by gtest-port.h:1770 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1770)
>>>               RtsanNoInstTestObjects.gmock-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::Sequence*>::~ThreadLocal())

ld.lld: error: undefined symbol: pthread_setspecific
>>> referenced by gtest-port.h:1811 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1811)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::GetOrCreateValue() const)
>>> referenced by gtest-port.h:1811 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1811)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::GetOrCreateValue() const)
>>> referenced by gtest-port.h:1811 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1811)
>>>               RtsanNoInstTestObjects.gmock-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::Sequence*>::GetOrCreateValue() const)
>>> referenced 1 more times

ld.lld: error: undefined symbol: pthread_key_create
>>> referenced by gtest-port.h:1797 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1797)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::CreateKey())
>>> referenced by gtest-port.h:1797 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1797)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::CreateKey())
>>> referenced by gtest-port.h:1797 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1797)
>>>               RtsanNoInstTestObjects.gmock-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::Sequence*>::CreateKey())
>>> referenced 1 more times

ld.lld: error: undefined symbol: pthread_once
>>> referenced by rtsan_context.cpp:35 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/lib/rtsan/rtsan_context.cpp:35)
Step 14 (test compiler-rt default) failure: test compiler-rt default (failure)
...
-- Build files have been written to: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/runtimes/runtimes-bins
[6/7] cd /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/runtimes/runtimes-bins && /home/buildbots/llvm-external-buildbots/cmake-3.28.2/bin/cmake --build /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/runtimes/runtimes-bins/ --target check-compiler-rt --config Release
[0/10] Performing build step for 'libcxx_msan_powerpc64le'
ninja: no work to do.
[2/10] Building CXX object compiler-rt/lib/ubsan/CMakeFiles/RTUbsan_dynamic_version_script_dummy.powerpc64le.dir/dummy.cpp.o
[3/8] Performing build step for 'libcxx_tsan_powerpc64le'
ninja: no work to do.
[5/8] Linking CXX shared library /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/clang/19/lib/linux/libclang_rt.asan-powerpc64le.so
[6/8] Linking CXX shared library /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/clang/19/lib/linux/libclang_rt.ubsan_standalone-powerpc64le.so
[7/8] Generating Rtsan-powerpc64le-NoInstTest
FAILED: compiler-rt/lib/rtsan/tests/Rtsan-powerpc64le-NoInstTest /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/Rtsan-powerpc64le-NoInstTest 
cd /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests && /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/./bin/clang++ RtsanNoInstTestObjects.rtsan_preinit.cpp.powerpc64le.o RtsanNoInstTestObjects.rtsan_test_context.cpp.powerpc64le.o RtsanNoInstTestObjects.rtsan_test_main.cpp.powerpc64le.o RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o RtsanNoInstTestObjects.gmock-all.cc.powerpc64le.o /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/libRTRtsanTest.powerpc64le.a -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/./Rtsan-powerpc64le-NoInstTest -fuse-ld=lld -Wl,--color-diagnostics -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/./lib/../lib/clang/19 -Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/./lib/../lib/clang/19/lib/linux -lstdc++ -no-pie -latomic -m64 -fno-function-sections
ld.lld: error: undefined symbol: pthread_getspecific
>>> referenced by gtest-port.h:1766 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1766)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::~ThreadLocal())
>>> referenced by gtest-port.h:1766 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1766)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::~ThreadLocal())
>>> referenced by gtest-port.h:1804 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1804)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::GetOrCreateValue() const)
>>> referenced 4 more times

ld.lld: error: undefined symbol: pthread_key_delete
>>> referenced by gtest-port.h:1770 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1770)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::~ThreadLocal())
>>> referenced by gtest-port.h:1770 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1770)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::~ThreadLocal())
>>> referenced by gtest-port.h:1770 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1770)
>>>               RtsanNoInstTestObjects.gmock-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::Sequence*>::~ThreadLocal())

ld.lld: error: undefined symbol: pthread_setspecific
>>> referenced by gtest-port.h:1811 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1811)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::GetOrCreateValue() const)
>>> referenced by gtest-port.h:1811 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1811)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::GetOrCreateValue() const)
>>> referenced by gtest-port.h:1811 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1811)
>>>               RtsanNoInstTestObjects.gmock-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::Sequence*>::GetOrCreateValue() const)
>>> referenced 1 more times

ld.lld: error: undefined symbol: pthread_key_create
>>> referenced by gtest-port.h:1797 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1797)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::CreateKey())
>>> referenced by gtest-port.h:1797 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1797)
>>>               RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::CreateKey())
>>> referenced by gtest-port.h:1797 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/internal/gtest-port.h:1797)
>>>               RtsanNoInstTestObjects.gmock-all.cc.powerpc64le.o:(testing::internal::ThreadLocal<testing::Sequence*>::CreateKey())
>>> referenced 1 more times

ld.lld: error: undefined symbol: pthread_once
>>> referenced by rtsan_context.cpp:35 (/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/lib/rtsan/rtsan_context.cpp:35)
Step 16 (test standalone compiler-rt) failure: test standalone compiler-rt (failure)
...
[1222/1230] Building CXX object libcxx/src/CMakeFiles/cxx_static.dir/ios.instantiations.cpp.o
[1223/1230] Building CXX object libcxx/src/CMakeFiles/cxx_static.dir/algorithm.cpp.o
[1224/1230] Building CXX object libcxx/src/CMakeFiles/cxx_experimental.dir/experimental/tzdb.cpp.o
[1225/1230] Building CXX object libcxx/src/CMakeFiles/cxx_experimental.dir/experimental/time_zone.cpp.o
[1226/1230] Building CXX object libcxxabi/src/CMakeFiles/cxxabi_static_objects.dir/cxa_demangle.cpp.o
[1227/1230] Linking CXX static library lib/libc++abi.a
[1228/1230] Building CXX object libcxx/src/CMakeFiles/cxx_static.dir/locale.cpp.o
[1229/1230] Linking CXX static library lib/libc++.a
[1230/1230] Linking CXX static library lib/libc++experimental.a
[101/118] Generating Rtsan-powerpc64le-NoInstTest
FAILED: lib/rtsan/tests/Rtsan-powerpc64le-NoInstTest /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/rtsan/tests/Rtsan-powerpc64le-NoInstTest 
cd /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/rtsan/tests && /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang++ RtsanNoInstTestObjects.rtsan_preinit.cpp.powerpc64le.o RtsanNoInstTestObjects.rtsan_test_context.cpp.powerpc64le.o RtsanNoInstTestObjects.rtsan_test_main.cpp.powerpc64le.o RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o RtsanNoInstTestObjects.gmock-all.cc.powerpc64le.o /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/rtsan/tests/libRTRtsanTest.powerpc64le.a -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/rtsan/tests/./Rtsan-powerpc64le-NoInstTest -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build -Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux -lstdc++ -no-pie -latomic -m64 -fno-function-sections
/usr/bin/ld: RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o: undefined reference to symbol 'pthread_getspecific@@GLIBC_2.17'
//usr/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[103/118] Generating POWERPC64LELinuxConfig/Asan-powerpc64le-inline-Test
ninja: build stopped: subcommand failed.
+ build_failure
+ echo

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
+ echo 'How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild'
+ echo
+ sleep 5
+ echo @@@STEP_FAILURE@@@
+ [[ '' == \1 ]]
+ [[ ! -v BUILDBOT_BUILDERNAME ]]
+ '[' 0 == 1 ']'
+ cleanup
+ [[ -v BUILDBOT_BUILDERNAME ]]
+ echo @@@BUILD_STEP cleanup@@@

```

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


More information about the llvm-commits mailing list