[clang] [llvm] [Offload][libsycl][clang-sycl-linker] Simplify SYCL Offload wrapping (PR #193876)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 27 14:47:44 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `clang,libsycl,llvm` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/23854
<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 --cmake-file=AMDGPULibcBot.cmake' (failure)
...
[4932/4994] Linking CXX shared library lib/liblldMinGW.so.23.0git
[4933/4994] Creating library symlink lib/libclang.so.23.0git lib/libclang.so
[4934/4994] Creating library symlink lib/liblldMinGW.so
[4935/4994] Linking CXX shared library lib/liblldELF.so.23.0git
[4936/4994] Creating library symlink lib/liblldELF.so
[4937/4994] Linking CXX executable bin/opt
[4938/4994] Linking CXX executable bin/lld
[4939/4994] Linking CXX executable bin/c-index-test
[4940/4994] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
[4941/4994] Linking CXX executable bin/clang-sycl-linker
FAILED: bin/clang-sycl-linker
: && /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-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 -fno-common -Woverloaded-virtual -O3 -DNDEBUG -Wl,-rpath-link,/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/./lib -Wl,--gc-sections tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -o bin/clang-sycl-linker -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/lib:" lib/libLLVMAMDGPUCodeGen.so.23.0git lib/libLLVMAMDGPUAsmParser.so.23.0git lib/libLLVMAMDGPUDisassembler.so.23.0git lib/libLLVMSPIRVCodeGen.so.23.0git lib/libLLVMSPIRVDesc.so.23.0git lib/libLLVMSPIRVInfo.so.23.0git lib/libLLVMX86CodeGen.so.23.0git lib/libLLVMX86AsmParser.so.23.0git lib/libLLVMX86Desc.so.23.0git lib/libLLVMX86Disassembler.so.23.0git lib/libLLVMX86Info.so.23.0git lib/libLLVMOption.so.23.0git lib/libclangBasic.so.23.0git lib/libLLVMAMDGPUDesc.so.23.0git lib/libLLVMAMDGPUInfo.so.23.0git lib/libLLVMAMDGPUUtils.so.23.0git lib/libLLVMLinker.so.23.0git lib/libLLVMTarget.so.23.0git lib/libLLVMBitWriter.so.23.0git lib/libLLVMAnalysis.so.23.0git lib/libLLVMObject.so.23.0git lib/libLLVMIRReader.so.23.0git lib/libLLVMMC.so.23.0git lib/libLLVMCore.so.23.0git lib/libLLVMBinaryFormat.so.23.0git lib/libLLVMTargetParser.so.23.0git lib/libLLVMSupport.so.23.0git -Wl,-rpath-link,/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/lib && :
/usr/bin/ld: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o: undefined reference to symbol '_ZN4llvm10offloading4sycl16writeSymbolTableENS_8ArrayRefINS_9StringRefEEERNS_11SmallStringILj0EEE'
/usr/bin/ld: /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/./lib/libLLVMFrontendOffloading.so.23.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[4942/4994] Building CXX object tools/clang/tools/clang-linker-wrapper/CMakeFiles/clang-linker-wrapper.dir/ClangLinkerWrapper.cpp.o
[4943/4994] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CodeGenModule.cpp.o
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/openmp-offload-libc-amdgpu-runtime/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 62, in step
yield
File "/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 53, in main
run_command(["ninja"])
File "/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 75, in run_command
util.report_run_cmd(cmd, cwd=directory)
File "/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
subprocess.check_call(cmd, shell=shell, *args, **kwargs)
File "/usr/lib/python3.10/subprocess.py", line 369, 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)
...
[4932/4994] Linking CXX shared library lib/liblldMinGW.so.23.0git
[4933/4994] Creating library symlink lib/libclang.so.23.0git lib/libclang.so
[4934/4994] Creating library symlink lib/liblldMinGW.so
[4935/4994] Linking CXX shared library lib/liblldELF.so.23.0git
[4936/4994] Creating library symlink lib/liblldELF.so
[4937/4994] Linking CXX executable bin/opt
[4938/4994] Linking CXX executable bin/lld
[4939/4994] Linking CXX executable bin/c-index-test
[4940/4994] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
[4941/4994] Linking CXX executable bin/clang-sycl-linker
FAILED: bin/clang-sycl-linker
: && /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-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 -fno-common -Woverloaded-virtual -O3 -DNDEBUG -Wl,-rpath-link,/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/./lib -Wl,--gc-sections tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -o bin/clang-sycl-linker -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/lib:" lib/libLLVMAMDGPUCodeGen.so.23.0git lib/libLLVMAMDGPUAsmParser.so.23.0git lib/libLLVMAMDGPUDisassembler.so.23.0git lib/libLLVMSPIRVCodeGen.so.23.0git lib/libLLVMSPIRVDesc.so.23.0git lib/libLLVMSPIRVInfo.so.23.0git lib/libLLVMX86CodeGen.so.23.0git lib/libLLVMX86AsmParser.so.23.0git lib/libLLVMX86Desc.so.23.0git lib/libLLVMX86Disassembler.so.23.0git lib/libLLVMX86Info.so.23.0git lib/libLLVMOption.so.23.0git lib/libclangBasic.so.23.0git lib/libLLVMAMDGPUDesc.so.23.0git lib/libLLVMAMDGPUInfo.so.23.0git lib/libLLVMAMDGPUUtils.so.23.0git lib/libLLVMLinker.so.23.0git lib/libLLVMTarget.so.23.0git lib/libLLVMBitWriter.so.23.0git lib/libLLVMAnalysis.so.23.0git lib/libLLVMObject.so.23.0git lib/libLLVMIRReader.so.23.0git lib/libLLVMMC.so.23.0git lib/libLLVMCore.so.23.0git lib/libLLVMBinaryFormat.so.23.0git lib/libLLVMTargetParser.so.23.0git lib/libLLVMSupport.so.23.0git -Wl,-rpath-link,/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/lib && :
/usr/bin/ld: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o: undefined reference to symbol '_ZN4llvm10offloading4sycl16writeSymbolTableENS_8ArrayRefINS_9StringRefEEERNS_11SmallStringILj0EEE'
/usr/bin/ld: /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/./lib/libLLVMFrontendOffloading.so.23.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[4942/4994] Building CXX object tools/clang/tools/clang-linker-wrapper/CMakeFiles/clang-linker-wrapper.dir/ClangLinkerWrapper.cpp.o
[4943/4994] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CodeGenModule.cpp.o
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/openmp-offload-libc-amdgpu-runtime/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 62, in step
yield
File "/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 53, in main
run_command(["ninja"])
File "/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 75, in run_command
util.report_run_cmd(cmd, cwd=directory)
File "/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
subprocess.check_call(cmd, shell=shell, *args, **kwargs)
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
program finished with exit code 0
elapsedTime=59.839851
```
</details>
https://github.com/llvm/llvm-project/pull/193876
More information about the cfe-commits
mailing list