[Openmp-commits] [openmp] [OpenMP][OMPT] Remove Threads dependency from omptest (PR #185930)

LLVM Continuous Integration via Openmp-commits openmp-commits at lists.llvm.org
Thu Mar 12 05:46:48 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `openmp-offload-sles-build-only` running on `rocm-worker-hw-04-sles` while building `openmp` at step 5 "compile-openmp".

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

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 5 (compile-openmp) failure: build (failure)
...
11.656 [27/34/944] Generating OffloadFuncs.inc
11.668 [26/34/945] Generating OffloadImplFuncDecls.inc
11.675 [25/34/946] Generating OffloadAPI.h
11.683 [24/34/947] Generating OffloadEntryPoints.inc
12.083 [23/34/948] Building CXX object third-party/runtimes_gtest/CMakeFiles/runtimes_gtest.dir/googletest/src/gtest-all.cc.o
12.146 [22/34/949] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-api-server.cpp.o
12.162 [21/34/950] Linking CXX static library /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libruntimes_gtest.a
12.180 [20/34/951] Generating OffloadPrint.hpp
12.237 [19/34/952] Linking CXX static library /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libruntimes_gtest_main.a
12.241 [18/34/953] Linking CXX shared library openmp/tools/omptest/libomptest.so
FAILED: openmp/tools/omptest/libomptest.so 
: && /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/./bin/clang++ --target=x86_64-unknown-linux-gnu -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -Wall -fcolor-diagnostics -Wcast-qual -Wformat-pedantic -Wimplicit-fallthrough -Wsign-compare -Wno-extra -Wno-pedantic -fno-semantic-interposition -fdata-sections -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete -Wl,--color-diagnostics -shared -Wl,-soname,libomptest.so -o openmp/tools/omptest/libomptest.so third-party/runtimes_gtest/CMakeFiles/runtimes_gtest.dir/googletest/src/gtest-all.cc.o third-party/runtimes_gtest/CMakeFiles/runtimes_gtest.dir/googlemock/src/gmock-all.cc.o openmp/tools/omptest/CMakeFiles/omptest.dir/src/InternalEvent.cpp.o openmp/tools/omptest/CMakeFiles/omptest.dir/src/InternalEventOperators.cpp.o openmp/tools/omptest/CMakeFiles/omptest.dir/src/Logging.cpp.o openmp/tools/omptest/CMakeFiles/omptest.dir/src/OmptAsserter.cpp.o openmp/tools/omptest/CMakeFiles/omptest.dir/src/OmptAssertEvent.cpp.o openmp/tools/omptest/CMakeFiles/omptest.dir/src/OmptCallbackHandler.cpp.o openmp/tools/omptest/CMakeFiles/omptest.dir/src/OmptTester.cpp.o  /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/libruntimes_gtest.a && :
ld.lld: error: undefined symbol: pthread_getspecific
>>> referenced by gmock-all.cc
>>>               third-party/runtimes_gtest/CMakeFiles/runtimes_gtest.dir/googlemock/src/gmock-all.cc.o:(testing::internal::ThreadLocal<testing::Sequence*>::~ThreadLocal())
>>> referenced by gmock-all.cc
>>>               third-party/runtimes_gtest/CMakeFiles/runtimes_gtest.dir/googlemock/src/gmock-all.cc.o:(testing::internal::ThreadLocal<testing::Sequence*>::GetOrCreateValue() const)
>>> referenced by gtest-all.cc
>>>               third-party/runtimes_gtest/CMakeFiles/runtimes_gtest.dir/googletest/src/gtest-all.cc.o:(testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::~ThreadLocal())
>>> referenced 3 more times

ld.lld: error: undefined symbol: pthread_key_delete
>>> referenced by gmock-all.cc
>>>               third-party/runtimes_gtest/CMakeFiles/runtimes_gtest.dir/googlemock/src/gmock-all.cc.o:(testing::internal::ThreadLocal<testing::Sequence*>::~ThreadLocal())
>>> referenced by gtest-all.cc
>>>               third-party/runtimes_gtest/CMakeFiles/runtimes_gtest.dir/googletest/src/gtest-all.cc.o:(testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::~ThreadLocal())
>>> referenced by gtest-all.cc
>>>               third-party/runtimes_gtest/CMakeFiles/runtimes_gtest.dir/googletest/src/gtest-all.cc.o:(testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::~ThreadLocal())

ld.lld: error: undefined symbol: pthread_key_create
>>> referenced by gmock-all.cc
>>>               third-party/runtimes_gtest/CMakeFiles/runtimes_gtest.dir/googlemock/src/gmock-all.cc.o:(testing::internal::ThreadLocal<testing::Sequence*>::CreateKey())
>>> referenced by gtest-all.cc
>>>               third-party/runtimes_gtest/CMakeFiles/runtimes_gtest.dir/googletest/src/gtest-all.cc.o:(testing::internal::UnitTestImpl::UnitTestImpl(testing::UnitTest*))
>>> referenced by gtest-all.cc
>>>               third-party/runtimes_gtest/CMakeFiles/runtimes_gtest.dir/googletest/src/gtest-all.cc.o:(testing::internal::UnitTestImpl::UnitTestImpl(testing::UnitTest*))

ld.lld: error: undefined symbol: pthread_setspecific
>>> referenced by gmock-all.cc
>>>               third-party/runtimes_gtest/CMakeFiles/runtimes_gtest.dir/googlemock/src/gmock-all.cc.o:(testing::internal::ThreadLocal<testing::Sequence*>::GetOrCreateValue() const)
>>> referenced by gtest-all.cc
>>>               third-party/runtimes_gtest/CMakeFiles/runtimes_gtest.dir/googletest/src/gtest-all.cc.o:(testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::GetOrCreateValue() const)
>>> referenced by gtest-all.cc
>>>               third-party/runtimes_gtest/CMakeFiles/runtimes_gtest.dir/googletest/src/gtest-all.cc.o:(testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::GetOrCreateValue() const)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
12.515 [18/33/954] Building CXX object offload/plugins-nextgen/amdgpu/CMakeFiles/omptarget.rtl.amdgpu.dir/dynamic_hsa/hsa.cpp.o
12.581 [18/32/955] Building CXX object offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/OffloadError.cpp.o
12.699 [18/31/956] Building CXX object offload/tools/deviceinfo/CMakeFiles/llvm-offload-device-info.dir/llvm-offload-device-info.cpp.o
12.716 [18/30/957] Building CXX object offload/plugins-nextgen/cuda/CMakeFiles/omptarget.rtl.cuda.dir/dynamic_cuda/cuda.cpp.o

```

</details>

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


More information about the Openmp-commits mailing list