Skip to content

[SandboxIR] Update visibility of IR constructors. #98107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 9, 2024
Merged

Conversation

vporpo
Copy link
Contributor

@vporpo vporpo commented Jul 9, 2024

All SandboxIR objects are owned by sandboxir::Context and should be created using sandboxir::Context's builder functions.
This patch protects the constructors to prohibit their use by the user.

All SandboxIR objects are owned by sandboxir::Context and should be created
using sandboxir::Context's builder functions.
This patch protects the constructors to prohibit their use by the user.
@vporpo vporpo merged commit 2d8b282 into llvm:main Jul 9, 2024
5 of 6 checks passed
@vporpo vporpo deleted the SBVec branch July 9, 2024 23:56
@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 10, 2024

LLVM Buildbot has detected a new failure on builder arc-builder running on arc-worker while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference:

Step 6 (test-build-unified-tree-check-all) failure: 1200 seconds without output running [b'ninja', b'check-all'], attempting to kill
1.263 [60/18/1] Linking CXX executable tools/clang/unittests/Format/FormatTests
1.472 [59/18/2] Linking CXX executable tools/clang/unittests/Basic/BasicTests
command timed out: 1200 seconds without output running [b'ninja', b'check-all'], attempting to kill
process killed by signal 9
program finished with exit code -1
elapsedTime=1202.153862

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 10, 2024

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@@@

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 10, 2024

LLVM Buildbot has detected a new failure on builder clang-ppc64le-linux-test-suite running on ppc64le-clang-test-suite while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference:

Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
0.020 [1/2/2] Building CXX object compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic_version_script_dummy.powerpc64le.dir/dummy.cpp.o
0.112 [0/2/3] Linking CXX shared library /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/lib/clang/19/lib/powerpc64le-unknown-linux-gnu/libclang_rt.ubsan_standalone.so
0.184 [0/1/4] Linking CXX shared library /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/lib/clang/19/lib/powerpc64le-unknown-linux-gnu/libclang_rt.asan.so
3.144 [3/81/28] cd /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins && /home/buildbots/llvm-external-buildbots/cmake-3.28.2/bin/cmake --build /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins/ --target runtimes-test-depends --config Release
0.024 [1/5/1] Generating RtsanNoInstTestObjects.rtsan_preinit.cpp.powerpc64le.o
1.725 [1/4/2] Generating RtsanNoInstTestObjects.rtsan_test_main.cpp.powerpc64le.o
2.796 [1/3/3] Generating RtsanNoInstTestObjects.rtsan_test_context.cpp.powerpc64le.o
5.345 [1/2/4] Generating RtsanNoInstTestObjects.gmock-all.cc.powerpc64le.o
20.079 [1/1/5] Generating RtsanNoInstTestObjects.gtest-all.cc.powerpc64le.o
20.122 [0/1/6] Generating Rtsan-powerpc64le-NoInstTest
FAILED: compiler-rt/lib/rtsan/tests/Rtsan-powerpc64le-NoInstTest /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/Rtsan-powerpc64le-NoInstTest 
cd /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests && /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/./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-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/libRTRtsanTest.powerpc64le.a -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/./Rtsan-powerpc64le-NoInstTest -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/./lib/../lib/clang/19 -Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/./lib/../lib/clang/19/lib/powerpc64le-unknown-linux-gnu -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)
ninja: build stopped: subcommand failed.
23.193 [3/17/93] Linking CXX executable tools/clang/tools/extra/unittests/clang-doc/ClangDocTests
FAILED: runtimes/CMakeFiles/runtimes-test-depends /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/CMakeFiles/runtimes-test-depends 
cd /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins && /home/buildbots/llvm-external-buildbots/cmake-3.28.2/bin/cmake --build /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins/ --target runtimes-test-depends --config Release
23.545 [3/15/95] Linking CXX executable tools/clang/unittests/Analysis/FlowSensitive/ClangAnalysisFlowSensitiveTests
26.087 [3/14/96] Linking CXX executable unittests/MIR/MIRTests
26.392 [3/13/97] Linking CXX executable tools/clang/tools/extra/unittests/clang-tidy/ClangTidyTests
26.865 [3/12/98] Linking CXX executable unittests/CodeGen/GlobalISel/GlobalISelTests
27.194 [3/11/99] Linking CXX executable unittests/MI/MITests
27.317 [3/10/100] Linking CXX executable unittests/Target/TargetMachineCTests
28.428 [3/9/101] Linking CXX executable unittests/DebugInfo/DWARF/DebugInfoDWARFTests
28.567 [3/8/102] Linking CXX executable tools/clang/unittests/Tooling/ToolingTests
29.228 [3/7/103] Linking CXX executable unittests/CodeGen/CodeGenTests
29.498 [3/6/104] Linking CXX executable tools/clang/unittests/CodeGen/ClangCodeGenTests
30.294 [3/5/105] Linking CXX executable tools/clang/unittests/Driver/ClangDriverTests
32.719 [3/4/106] Linking CXX executable tools/clang/unittests/Frontend/FrontendTests
33.348 [3/3/107] Linking CXX executable tools/clang/unittests/Interpreter/ExceptionTests/ClangReplInterpreterExceptionTests
44.593 [3/2/108] Linking CXX executable tools/clang/unittests/Interpreter/ClangReplInterpreterTests
45.829 [3/1/109] Linking CXX executable tools/clang/tools/extra/clangd/unittests/ClangdTests
ninja: build stopped: subcommand failed.
Step 7 (test-build-unified-tree-check-runtimes) failure: test (failure)
...
-- Generated Sanitizer SUPPORTED_TOOLS list on "Linux" is "asan;lsan;msan;tsan;ubsan"
-- sanitizer_common tests on "Linux" will run against "asan;lsan;msan;tsan;ubsan"
-- check-shadowcallstack does nothing.
-- Configuring done (2.5s)
-- Generating done (0.2s)
-- Build files have been written to: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins
3.198 [0/1/4] cd /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins && /home/buildbots/llvm-external-buildbots/cmake-3.28.2/bin/cmake --build /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins/ --target check-runtimes --config Release
0.021 [3/3/1] Building CXX object compiler-rt/lib/ubsan/CMakeFiles/RTUbsan_dynamic_version_script_dummy.powerpc64le.dir/dummy.cpp.o
0.021 [2/3/2] Building CXX object compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic_version_script_dummy.powerpc64le.dir/dummy.cpp.o
0.047 [1/3/3] Generating Rtsan-powerpc64le-NoInstTest
FAILED: compiler-rt/lib/rtsan/tests/Rtsan-powerpc64le-NoInstTest /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/Rtsan-powerpc64le-NoInstTest 
cd /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests && /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/./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-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/libRTRtsanTest.powerpc64le.a -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/./Rtsan-powerpc64le-NoInstTest -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/./lib/../lib/clang/19 -Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/./lib/../lib/clang/19/lib/powerpc64le-unknown-linux-gnu -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)
0.115 [1/2/4] Linking CXX shared library /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/lib/clang/19/lib/powerpc64le-unknown-linux-gnu/libclang_rt.ubsan_standalone.so
0.194 [1/1/5] Linking CXX shared library /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/lib/clang/19/lib/powerpc64le-unknown-linux-gnu/libclang_rt.asan.so
ninja: build stopped: subcommand failed.
FAILED: runtimes/CMakeFiles/check-runtimes /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/CMakeFiles/check-runtimes 
cd /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins && /home/buildbots/llvm-external-buildbots/cmake-3.28.2/bin/cmake --build /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/runtimes/runtimes-bins/ --target check-runtimes --config Release
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 10, 2024

LLVM Buildbot has detected a new failure on builder clang-ppc64be-linux-test-suite running on ppc64be-clang-test-suite while building llvm at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference:

Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
0.357 [0/2/3] Linking CXX shared library /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/lib/clang/19/lib/powerpc64-unknown-linux-gnu/libclang_rt.ubsan_standalone.so
0.600 [0/1/4] Linking CXX shared library /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/lib/clang/19/lib/powerpc64-unknown-linux-gnu/libclang_rt.asan.so
7.293 [49/40/24] Linking CXX executable unittests/Bitcode/BitcodeTests
7.333 [47/40/25] cd /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/runtimes/runtimes-bins && /home/buildbots/llvm-external-buildbots/cmake-3.26.3/bin/cmake --build /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/runtimes/runtimes-bins/ --target runtimes-test-depends --config Release
0.139 [1/5/1] Generating RtsanNoInstTestObjects.rtsan_preinit.cpp.powerpc64.o
4.583 [1/4/2] Generating RtsanNoInstTestObjects.rtsan_test_main.cpp.powerpc64.o
7.622 [1/3/3] Generating RtsanNoInstTestObjects.rtsan_test_context.cpp.powerpc64.o
13.049 [1/2/4] Generating RtsanNoInstTestObjects.gmock-all.cc.powerpc64.o
52.727 [1/1/5] Generating RtsanNoInstTestObjects.gtest-all.cc.powerpc64.o
52.875 [0/1/6] Generating Rtsan-powerpc64-NoInstTest
FAILED: compiler-rt/lib/rtsan/tests/Rtsan-powerpc64-NoInstTest /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/Rtsan-powerpc64-NoInstTest 
cd /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests && /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/./bin/clang++ RtsanNoInstTestObjects.rtsan_preinit.cpp.powerpc64.o RtsanNoInstTestObjects.rtsan_test_context.cpp.powerpc64.o RtsanNoInstTestObjects.rtsan_test_main.cpp.powerpc64.o RtsanNoInstTestObjects.gtest-all.cc.powerpc64.o RtsanNoInstTestObjects.gmock-all.cc.powerpc64.o /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/libRTRtsanTest.powerpc64.a -o /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/./Rtsan-powerpc64-NoInstTest -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/./lib/../lib/clang/19 -Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/./lib/../lib/clang/19/lib/powerpc64-unknown-linux-gnu -lstdc++ -no-pie -latomic -m64
/opt/rh/devtoolset-11/root/usr/lib/gcc/ppc64-redhat-linux/11/../../../../bin/ld: cannot find /usr/lib64/libatomic.so.1
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
54.764 [3/8/102] Linking CXX executable tools/clang/unittests/Frontend/FrontendTests
FAILED: runtimes/CMakeFiles/runtimes-test-depends /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/runtimes/CMakeFiles/runtimes-test-depends 
cd /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/runtimes/runtimes-bins && /home/buildbots/llvm-external-buildbots/cmake-3.26.3/bin/cmake --build /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/runtimes/runtimes-bins/ --target runtimes-test-depends --config Release
60.637 [3/6/104] Linking CXX executable unittests/MIR/MIRTests
64.133 [3/5/105] Linking CXX executable unittests/MI/MITests
66.683 [3/4/106] Linking CXX executable unittests/Target/TargetMachineCTests
71.343 [3/3/107] Linking CXX executable tools/clang/unittests/Interpreter/ClangReplInterpreterTests
71.473 [3/2/108] Linking CXX executable tools/clang/unittests/Tooling/ToolingTests
86.561 [3/1/109] Linking CXX executable tools/clang/tools/extra/clangd/unittests/ClangdTests
ninja: build stopped: subcommand failed.
Step 7 (test-build-unified-tree-check-runtimes) failure: test (failure)
...
-- Generated Sanitizer SUPPORTED_TOOLS list on "Linux" is "asan;lsan;msan;tsan;ubsan"
-- sanitizer_common tests on "Linux" will run against "asan;lsan;msan;tsan;ubsan"
-- check-shadowcallstack does nothing.
-- Configuring done (2.2s)
-- Generating done (0.9s)
-- Build files have been written to: /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/runtimes/runtimes-bins
8.663 [0/1/4] cd /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/runtimes/runtimes-bins && /home/buildbots/llvm-external-buildbots/cmake-3.26.3/bin/cmake --build /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/runtimes/runtimes-bins/ --target check-runtimes --config Release
0.181 [3/3/1] Building CXX object compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic_version_script_dummy.powerpc64.dir/dummy.cpp.o
0.182 [2/3/2] Building CXX object compiler-rt/lib/ubsan/CMakeFiles/RTUbsan_dynamic_version_script_dummy.powerpc64.dir/dummy.cpp.o
0.263 [1/3/3] Generating Rtsan-powerpc64-NoInstTest
FAILED: compiler-rt/lib/rtsan/tests/Rtsan-powerpc64-NoInstTest /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/Rtsan-powerpc64-NoInstTest 
cd /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests && /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/./bin/clang++ RtsanNoInstTestObjects.rtsan_preinit.cpp.powerpc64.o RtsanNoInstTestObjects.rtsan_test_context.cpp.powerpc64.o RtsanNoInstTestObjects.rtsan_test_main.cpp.powerpc64.o RtsanNoInstTestObjects.gtest-all.cc.powerpc64.o RtsanNoInstTestObjects.gmock-all.cc.powerpc64.o /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/libRTRtsanTest.powerpc64.a -o /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/runtimes/runtimes-bins/compiler-rt/lib/rtsan/tests/./Rtsan-powerpc64-NoInstTest -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/./lib/../lib/clang/19 -Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/./lib/../lib/clang/19/lib/powerpc64-unknown-linux-gnu -lstdc++ -no-pie -latomic -m64
/opt/rh/devtoolset-11/root/usr/lib/gcc/ppc64-redhat-linux/11/../../../../bin/ld: cannot find /usr/lib64/libatomic.so.1
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
0.555 [1/2/4] Linking CXX shared library /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/lib/clang/19/lib/powerpc64-unknown-linux-gnu/libclang_rt.ubsan_standalone.so
0.952 [1/1/5] Linking CXX shared library /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/lib/clang/19/lib/powerpc64-unknown-linux-gnu/libclang_rt.asan.so
ninja: build stopped: subcommand failed.
FAILED: runtimes/CMakeFiles/check-runtimes /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/runtimes/CMakeFiles/check-runtimes 
cd /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/runtimes/runtimes-bins && /home/buildbots/llvm-external-buildbots/cmake-3.26.3/bin/cmake --build /home/buildbots/llvm-external-buildbots/workers/ppc64be-clang-test-suite/clang-ppc64be-test-suite/build/runtimes/runtimes-bins/ --target check-runtimes --config Release
ninja: build stopped: subcommand failed.

aaryanshukla pushed a commit to aaryanshukla/llvm-project that referenced this pull request Jul 14, 2024
All SandboxIR objects are owned by sandboxir::Context and should be
created using sandboxir::Context's builder functions.
This patch protects the constructors to prohibit their use by the user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants