[clang] [compiler-rt] [llvm] [PGO][AMDGPU] Add basic HIP offload PGO support (PR #177665)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Thu May 28 01:07:15 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu-no-asserts` running on `doug-worker-6` while building `clang,compiler-rt,llvm` at step 6 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/202/builds/6899
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Profile-x86_64 :: ContinuousSyncMode/basic.c' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 3
/home/buildbot/buildbot-root/gcc-no-asserts/build/./bin/clang -m64 -ldl -fprofile-instr-generate=/home/buildbot/buildbot-root/gcc-no-asserts/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-x86_64/ContinuousSyncMode/Output/basic.c.tmp.profraw -fprofile-continuous -fcoverage-mapping -o /home/buildbot/buildbot-root/gcc-no-asserts/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-x86_64/ContinuousSyncMode/Output/basic.c.tmp.exe /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/compiler-rt/test/profile/ContinuousSyncMode/basic.c
# executed command: /home/buildbot/buildbot-root/gcc-no-asserts/build/./bin/clang -m64 -ldl -fprofile-instr-generate=/home/buildbot/buildbot-root/gcc-no-asserts/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-x86_64/ContinuousSyncMode/Output/basic.c.tmp.profraw -fprofile-continuous -fcoverage-mapping -o /home/buildbot/buildbot-root/gcc-no-asserts/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-x86_64/ContinuousSyncMode/Output/basic.c.tmp.exe /home/buildbot/buildbot-root/gcc-no-asserts/llvm-project/compiler-rt/test/profile/ContinuousSyncMode/basic.c
# .---command stderr------------
# | /usr/bin/ld: /home/buildbot/buildbot-root/gcc-no-asserts/build/lib/clang/23/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingPlatformROCm.cpp.o): in function `__llvm_profile_offload_register_dynamic_module':
# | InstrProfilingPlatformROCm.cpp:(.text.__llvm_profile_offload_register_dynamic_module+0x2be): undefined reference to `pthread_once'
# | /usr/bin/ld: /home/buildbot/buildbot-root/gcc-no-asserts/build/lib/clang/23/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingPlatformROCm.cpp.o): in function `__llvm_profile_offload_unregister_dynamic_module':
# | InstrProfilingPlatformROCm.cpp:(.text.__llvm_profile_offload_unregister_dynamic_module+0x12d): undefined reference to `pthread_once'
# | /usr/bin/ld: /home/buildbot/buildbot-root/gcc-no-asserts/build/lib/clang/23/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingPlatformROCm.cpp.o): in function `processDeviceOffloadPrf(void*, int, char const*)':
# | InstrProfilingPlatformROCm.cpp:(.text._ZL23processDeviceOffloadPrfPviPKc+0x26): undefined reference to `pthread_once'
# | /usr/bin/ld: InstrProfilingPlatformROCm.cpp:(.text._ZL23processDeviceOffloadPrfPviPKc+0x354): undefined reference to `pthread_once'
# | /usr/bin/ld: InstrProfilingPlatformROCm.cpp:(.text._ZL23processDeviceOffloadPrfPviPKc+0x39a): undefined reference to `pthread_once'
# | /usr/bin/ld: /home/buildbot/buildbot-root/gcc-no-asserts/build/lib/clang/23/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(InstrProfilingPlatformROCm.cpp.o):InstrProfilingPlatformROCm.cpp:(.text._ZL23processDeviceOffloadPrfPviPKc+0x3eb): more undefined references to `pthread_once' follow
# | /usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x25
# | /home/buildbot/buildbot-root/gcc-no-asserts/build/lib/clang/23/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(sanitizer_posix_libcdep.cpp.o): in function `__sanitizer::internal_pthread_attr_getstack(void*, void**, unsigned long*)':
# | sanitizer_posix_libcdep.cpp:(.text._ZN11__sanitizer30internal_pthread_attr_getstackEPvPS0_Pm+0xa): undefined reference to `pthread_attr_getstack'
# | /usr/bin/ld: /home/buildbot/buildbot-root/gcc-no-asserts/build/lib/clang/23/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(sanitizer_posix_libcdep.cpp.o): in function `__sanitizer::AdjustStackSize(void*)':
# | sanitizer_posix_libcdep.cpp:(.text._ZN11__sanitizer15AdjustStackSizeEPv+0x37): undefined reference to `pthread_attr_getstack'
# | /usr/bin/ld: sanitizer_posix_libcdep.cpp:(.text._ZN11__sanitizer15AdjustStackSizeEPv+0x9f): undefined reference to `pthread_attr_setstacksize'
# | /usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x25
# | /home/buildbot/buildbot-root/gcc-no-asserts/build/lib/clang/23/lib/x86_64-unknown-linux-gnu/libclang_rt.profile.a(sanitizer_linux_libcdep.cpp.o): in function `__sanitizer::GetThreadStackTopAndBottom(bool, unsigned long*, unsigned long*)':
# | sanitizer_linux_libcdep.cpp:(.text._ZN11__sanitizer26GetThreadStackTopAndBottomEbPmS0_+0xfa): undefined reference to `pthread_getattr_np'
# | clang: error: linker command failed with exit code 1 (use -v to see invocation)
# `-----------------------------
# error: command failed with exit status: 1
--
********************
```
</details>
https://github.com/llvm/llvm-project/pull/177665
More information about the cfe-commits
mailing list