[libc] [llvm] [LLVM] Make the GPU loader utilities an LLVM tool (PR #132096)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 20 12:26:16 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `amdgpu-offload-rhel-9-cmake-build-only` running on `rocm-docker-rhel-9` while building `libc,llvm` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/205/builds/4095
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/tools/llvm-gpu-loader/llvm-gpu-loader.h:16,
from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/tools/llvm-gpu-loader/llvm-gpu-loader.cpp:15:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/writer.h:55:30: warning: ‘maybe_unused’ attribute ignored [-Wattributes]
55 | [[maybe_unused]] WriteMode write_mode_;
| ^~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/tools/llvm-gpu-loader/llvm-gpu-loader.cpp: In function ‘int main(int, const char**, const char**)’:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/tools/llvm-gpu-loader/llvm-gpu-loader.cpp:132:20: warning: unused variable ‘params’ [-Wunused-variable]
132 | LaunchParameters params{threads_x, threads_y, threads_z,
| ^~~~~~
[6787/7690] Linking CXX executable bin/llvm-gpu-loader
FAILED: bin/llvm-gpu-loader
: && /usr/bin/c++ -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-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,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/./lib -Wl,--gc-sections tools/llvm-gpu-loader/CMakeFiles/llvm-gpu-loader.dir/llvm-gpu-loader.cpp.o -o bin/llvm-gpu-loader -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib:" lib/libLLVMOption.so.21.0git lib/libLLVMFrontendOffloading.so.21.0git lib/libLLVMObject.so.21.0git lib/libLLVMBinaryFormat.so.21.0git lib/libLLVMSupport.so.21.0git -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib && :
/usr/bin/ld: tools/llvm-gpu-loader/CMakeFiles/llvm-gpu-loader.dir/llvm-gpu-loader.cpp.o: undefined reference to symbol '_ZN4llvm6Triple15getArchTypeNameENS0_8ArchTypeE'
/usr/bin/ld: /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/./lib/libLLVMTargetParser.so.21.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[6788/7690] Linking CXX shared library lib/libFortranSemantics.so.21.0git
[6789/7690] Building InstCombineTables.inc...
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
File "/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 50, in step
yield
File "/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 41, in main
run_command(["ninja"])
File "/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 63, in run_command
util.report_run_cmd(cmd, cwd=directory)
File "/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
subprocess.check_call(cmd, shell=shell, *args, **kwargs)
File "/usr/lib64/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
@@@STEP_FAILURE@@@
Step 7 (build cmake config) failure: build cmake config (failure)
...
from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/tools/llvm-gpu-loader/llvm-gpu-loader.h:16,
from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/tools/llvm-gpu-loader/llvm-gpu-loader.cpp:15:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/cmake/Modules/../../libc/src/stdio/printf_core/writer.h:55:30: warning: ‘maybe_unused’ attribute ignored [-Wattributes]
55 | [[maybe_unused]] WriteMode write_mode_;
| ^~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/tools/llvm-gpu-loader/llvm-gpu-loader.cpp: In function ‘int main(int, const char**, const char**)’:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/tools/llvm-gpu-loader/llvm-gpu-loader.cpp:132:20: warning: unused variable ‘params’ [-Wunused-variable]
132 | LaunchParameters params{threads_x, threads_y, threads_z,
| ^~~~~~
[6787/7690] Linking CXX executable bin/llvm-gpu-loader
FAILED: bin/llvm-gpu-loader
: && /usr/bin/c++ -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-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,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/./lib -Wl,--gc-sections tools/llvm-gpu-loader/CMakeFiles/llvm-gpu-loader.dir/llvm-gpu-loader.cpp.o -o bin/llvm-gpu-loader -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib:" lib/libLLVMOption.so.21.0git lib/libLLVMFrontendOffloading.so.21.0git lib/libLLVMObject.so.21.0git lib/libLLVMBinaryFormat.so.21.0git lib/libLLVMSupport.so.21.0git -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib && :
/usr/bin/ld: tools/llvm-gpu-loader/CMakeFiles/llvm-gpu-loader.dir/llvm-gpu-loader.cpp.o: undefined reference to symbol '_ZN4llvm6Triple15getArchTypeNameENS0_8ArchTypeE'
/usr/bin/ld: /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/./lib/libLLVMTargetParser.so.21.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[6788/7690] Linking CXX shared library lib/libFortranSemantics.so.21.0git
[6789/7690] Building InstCombineTables.inc...
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
File "/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 50, in step
yield
File "/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 41, in main
run_command(["ninja"])
File "/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 63, in run_command
util.report_run_cmd(cmd, cwd=directory)
File "/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
subprocess.check_call(cmd, shell=shell, *args, **kwargs)
File "/usr/lib64/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
program finished with exit code 0
elapsedTime=60.808497
```
</details>
https://github.com/llvm/llvm-project/pull/132096
More information about the llvm-commits
mailing list