[llvm] AMDGPU: Move AMDGPUTargetID to AMDGPUTargetParser (PR #205268)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 23 02:52:06 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-clang-flang` running on `rocm-worker-hw-01` while building `llvm` at step 3 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/67/builds/7169
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 3 (annotate) failure: 'python ../llvm.src/offload/ci/openmp-offload-amdgpu-clang-flang.py ...' (failure)
...
[ 97%/62.902s :: 241->6->8427 (of 8673)] Building CXX object lib/Target/AMDGPU/MCTargetDesc/CMakeFiles/LLVMAMDGPUDesc.dir/AMDGPUMCTargetDesc.cpp.o
[ 97%/64.334s :: 241->5->8428 (of 8673)] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUTargetMachine.cpp.o
[ 97%/69.077s :: 241->4->8429 (of 8673)] Building CXX object lib/Target/AMDGPU/AsmParser/CMakeFiles/LLVMAMDGPUAsmParser.dir/AMDGPUAsmParser.cpp.o
[ 97%/70.085s :: 241->3->8430 (of 8673)] Building CXX object lib/Target/AMDGPU/Disassembler/CMakeFiles/LLVMAMDGPUDisassembler.dir/AMDGPUDisassembler.cpp.o
[ 97%/75.954s :: 241->2->8431 (of 8673)] Building CXX object tools/flang/lib/Frontend/CMakeFiles/flangFrontend.dir/CompilerInstance.cpp.o
[ 97%/75.985s :: 241->1->8432 (of 8673)] Building CXX object lib/Target/AMDGPU/MCTargetDesc/CMakeFiles/LLVMAMDGPUDesc.dir/AMDGPUMCCodeEmitter.cpp.o
[ 97%/76.111s :: 240->1->8433 (of 8673)] Linking CXX shared library lib/libLLVMAMDGPUDesc.so.23.0git
[ 97%/76.121s :: 239->1->8434 (of 8673)] Creating library symlink lib/libLLVMAMDGPUDesc.so
[ 97%/76.177s :: 234->5->8435 (of 8673)] Linking CXX shared library lib/libLLVMAMDGPUTargetMCA.so.23.0git
[ 97%/76.185s :: 233->5->8436 (of 8673)] Linking CXX shared library lib/libLLVMAMDGPUDisassembler.so.23.0git
FAILED: lib/libLLVMAMDGPUDisassembler.so.23.0git
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -Wl,-z,defs -Wl,-z,nodelete -Wl,-rpath-link,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -Wl,--gc-sections -shared -Wl,-soname,libLLVMAMDGPUDisassembler.so.23.0git -o lib/libLLVMAMDGPUDisassembler.so.23.0git lib/Target/AMDGPU/Disassembler/CMakeFiles/LLVMAMDGPUDisassembler.dir/AMDGPUDisassembler.cpp.o -Wl,-rpath,"\$ORIGIN/../lib:\$ORIGIN/../lib/x86_64-unknown-linux-gnu:/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/lib:" lib/libLLVMAMDGPUDesc.so.23.0git lib/libLLVMAMDGPUInfo.so.23.0git lib/libLLVMAMDGPUUtils.so.23.0git lib/libLLVMCodeGenTypes.so.23.0git lib/libLLVMMCDisassembler.so.23.0git lib/libLLVMMC.so.23.0git lib/libLLVMSupport.so.23.0git -Wl,-rpath-link,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/lib && :
/usr/bin/ld: lib/Target/AMDGPU/Disassembler/CMakeFiles/LLVMAMDGPUDisassembler.dir/AMDGPUDisassembler.cpp.o: in function `llvm::AMDGPUDisassembler::emitTargetIDIfSupported(llvm::raw_ostream&, unsigned int) const [clone .localalias]':
AMDGPUDisassembler.cpp:(.text._ZNK4llvm18AMDGPUDisassembler23emitTargetIDIfSupportedERNS_11raw_ostreamEj+0x68): undefined reference to `llvm::Triple::normalize[abi:cxx11](llvm::StringRef, llvm::Triple::CanonicalForm)'
collect2: error: ld returned 1 exit status
[ 97%/76.187s :: 233->4->8437 (of 8673)] Creating library symlink lib/libLLVMAMDGPUTargetMCA.so
[ 97%/76.209s :: 233->3->8438 (of 8673)] Linking CXX shared library lib/libLLVMAMDGPUAsmParser.so.23.0git
[ 97%/76.214s :: 233->2->8439 (of 8673)] Linking CXX executable bin/llvm-dwarfdump
[ 97%/76.724s :: 233->1->8440 (of 8673)] Linking CXX shared library lib/libLLVMAMDGPUCodeGen.so.23.0git
ninja: build stopped: subcommand failed.
Running: ccache -sv
Summary:
Cache directory: /home/botworker/.cache/ccache
Primary config: /home/botworker/.config/ccache/ccache.conf
Secondary config: /etc/ccache.conf
Stats updated: Tue Jun 23 09:51:33 2026
Hits: 5405 / 5570 (97.04 %)
Direct: 4838 / 5572 (86.83 %)
Preprocessed: 567 / 732 (77.46 %)
Misses: 165
Direct: 734
Preprocessed: 165
Uncacheable: 2
Primary storage:
Hits: 10522 / 11139 (94.46 %)
Misses: 617
Cache size (GB): 4.41 / 5.00 (88.27 %)
Files: 66164
Cleanups: 3
Uncacheable:
Unsupported code directive: 2
ninja -C llvm.build -j64 exited with return code 1.
@@@STEP_FAILURE@@@
Traceback (most recent call last):
File "/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/../llvm.src/offload/ci/openmp-offload-amdgpu-clang-flang.py", line 43, in <module>
w.run_ninja(builddir=llvmbuilddir, ccache_stats=True)
File "/home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/.ci/buildbot/worker.py", line 269, in run_ninja
run_command(cmd, **kwargs)
File "/home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/.ci/buildbot/worker.py", line 132, in run_command
Step 7 (compile-openmp) failure: compile-openmp (failure)
...
[ 97%/62.902s :: 241->6->8427 (of 8673)] Building CXX object lib/Target/AMDGPU/MCTargetDesc/CMakeFiles/LLVMAMDGPUDesc.dir/AMDGPUMCTargetDesc.cpp.o
[ 97%/64.334s :: 241->5->8428 (of 8673)] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUTargetMachine.cpp.o
[ 97%/69.077s :: 241->4->8429 (of 8673)] Building CXX object lib/Target/AMDGPU/AsmParser/CMakeFiles/LLVMAMDGPUAsmParser.dir/AMDGPUAsmParser.cpp.o
[ 97%/70.085s :: 241->3->8430 (of 8673)] Building CXX object lib/Target/AMDGPU/Disassembler/CMakeFiles/LLVMAMDGPUDisassembler.dir/AMDGPUDisassembler.cpp.o
[ 97%/75.954s :: 241->2->8431 (of 8673)] Building CXX object tools/flang/lib/Frontend/CMakeFiles/flangFrontend.dir/CompilerInstance.cpp.o
[ 97%/75.985s :: 241->1->8432 (of 8673)] Building CXX object lib/Target/AMDGPU/MCTargetDesc/CMakeFiles/LLVMAMDGPUDesc.dir/AMDGPUMCCodeEmitter.cpp.o
[ 97%/76.111s :: 240->1->8433 (of 8673)] Linking CXX shared library lib/libLLVMAMDGPUDesc.so.23.0git
[ 97%/76.121s :: 239->1->8434 (of 8673)] Creating library symlink lib/libLLVMAMDGPUDesc.so
[ 97%/76.177s :: 234->5->8435 (of 8673)] Linking CXX shared library lib/libLLVMAMDGPUTargetMCA.so.23.0git
[ 97%/76.185s :: 233->5->8436 (of 8673)] Linking CXX shared library lib/libLLVMAMDGPUDisassembler.so.23.0git
FAILED: lib/libLLVMAMDGPUDisassembler.so.23.0git
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -Wl,-z,defs -Wl,-z,nodelete -Wl,-rpath-link,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -Wl,--gc-sections -shared -Wl,-soname,libLLVMAMDGPUDisassembler.so.23.0git -o lib/libLLVMAMDGPUDisassembler.so.23.0git lib/Target/AMDGPU/Disassembler/CMakeFiles/LLVMAMDGPUDisassembler.dir/AMDGPUDisassembler.cpp.o -Wl,-rpath,"\$ORIGIN/../lib:\$ORIGIN/../lib/x86_64-unknown-linux-gnu:/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/lib:" lib/libLLVMAMDGPUDesc.so.23.0git lib/libLLVMAMDGPUInfo.so.23.0git lib/libLLVMAMDGPUUtils.so.23.0git lib/libLLVMCodeGenTypes.so.23.0git lib/libLLVMMCDisassembler.so.23.0git lib/libLLVMMC.so.23.0git lib/libLLVMSupport.so.23.0git -Wl,-rpath-link,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/lib && :
/usr/bin/ld: lib/Target/AMDGPU/Disassembler/CMakeFiles/LLVMAMDGPUDisassembler.dir/AMDGPUDisassembler.cpp.o: in function `llvm::AMDGPUDisassembler::emitTargetIDIfSupported(llvm::raw_ostream&, unsigned int) const [clone .localalias]':
AMDGPUDisassembler.cpp:(.text._ZNK4llvm18AMDGPUDisassembler23emitTargetIDIfSupportedERNS_11raw_ostreamEj+0x68): undefined reference to `llvm::Triple::normalize[abi:cxx11](llvm::StringRef, llvm::Triple::CanonicalForm)'
collect2: error: ld returned 1 exit status
[ 97%/76.187s :: 233->4->8437 (of 8673)] Creating library symlink lib/libLLVMAMDGPUTargetMCA.so
[ 97%/76.209s :: 233->3->8438 (of 8673)] Linking CXX shared library lib/libLLVMAMDGPUAsmParser.so.23.0git
[ 97%/76.214s :: 233->2->8439 (of 8673)] Linking CXX executable bin/llvm-dwarfdump
[ 97%/76.724s :: 233->1->8440 (of 8673)] Linking CXX shared library lib/libLLVMAMDGPUCodeGen.so.23.0git
ninja: build stopped: subcommand failed.
Running: ccache -sv
Summary:
Cache directory: /home/botworker/.cache/ccache
Primary config: /home/botworker/.config/ccache/ccache.conf
Secondary config: /etc/ccache.conf
Stats updated: Tue Jun 23 09:51:33 2026
Hits: 5405 / 5570 (97.04 %)
Direct: 4838 / 5572 (86.83 %)
Preprocessed: 567 / 732 (77.46 %)
Misses: 165
Direct: 734
Preprocessed: 165
Uncacheable: 2
Primary storage:
Hits: 10522 / 11139 (94.46 %)
Misses: 617
Cache size (GB): 4.41 / 5.00 (88.27 %)
Files: 66164
Cleanups: 3
Uncacheable:
Unsupported code directive: 2
ninja -C llvm.build -j64 exited with return code 1.
Traceback (most recent call last):
File "/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/../llvm.src/offload/ci/openmp-offload-amdgpu-clang-flang.py", line 43, in <module>
w.run_ninja(builddir=llvmbuilddir, ccache_stats=True)
File "/home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/.ci/buildbot/worker.py", line 269, in run_ninja
run_command(cmd, **kwargs)
File "/home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/.ci/buildbot/worker.py", line 132, in run_command
subprocess.check_call(cmd, shell=shell, env=env, **kwargs)
```
</details>
https://github.com/llvm/llvm-project/pull/205268
More information about the llvm-commits
mailing list