[clang] [SYCL][SPIR-V Backend][clang-sycl-linker] Add SPIR-V backend support inside clang-sycl-linker (PR #133967)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 2 09:52:45 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime-2` running on `rocm-worker-hw-02` while building `clang` at step 7 "Add check check-clang".

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

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

```
Step 7 (Add check check-clang) failure: test (failure)
******************** TEST 'Clang :: Driver/clang-sycl-linker-test.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/clang --driver-mode=g++ -emit-llvm -c -target spirv64 /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/Driver/clang-sycl-linker-test.cpp -o /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/tools/clang/test/Driver/Output/clang-sycl-linker-test.cpp.tmp_1.bc # RUN: at line 4
+ /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/clang --driver-mode=g++ -emit-llvm -c -target spirv64 /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/Driver/clang-sycl-linker-test.cpp -o /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/tools/clang/test/Driver/Output/clang-sycl-linker-test.cpp.tmp_1.bc
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/clang --driver-mode=g++ -emit-llvm -c -target spirv64 /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/Driver/clang-sycl-linker-test.cpp -o /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/tools/clang/test/Driver/Output/clang-sycl-linker-test.cpp.tmp_2.bc # RUN: at line 5
+ /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/clang --driver-mode=g++ -emit-llvm -c -target spirv64 /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/Driver/clang-sycl-linker-test.cpp -o /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/tools/clang/test/Driver/Output/clang-sycl-linker-test.cpp.tmp_2.bc
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/clang-sycl-linker --dry-run -v -triple=spirv64 /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/tools/clang/test/Driver/Output/clang-sycl-linker-test.cpp.tmp_1.bc /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/tools/clang/test/Driver/Output/clang-sycl-linker-test.cpp.tmp_2.bc -o a.spv 2>&1    | /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/FileCheck /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/Driver/clang-sycl-linker-test.cpp --check-prefix=SIMPLE-FO # RUN: at line 6
+ /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/clang-sycl-linker --dry-run -v -triple=spirv64 /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/tools/clang/test/Driver/Output/clang-sycl-linker-test.cpp.tmp_1.bc /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/tools/clang/test/Driver/Output/clang-sycl-linker-test.cpp.tmp_2.bc -o a.spv
+ /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/FileCheck /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/Driver/clang-sycl-linker-test.cpp --check-prefix=SIMPLE-FO
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/Driver/clang-sycl-linker-test.cpp:9:20: error: SIMPLE-FO-NEXT: expected string not found in input
// SIMPLE-FO-NEXT: SPIR-V Backend: input: [[LLVMLINKOUT]].bc, output: a.spv
                   ^
<stdin>:1:349: note: scanning from here
sycl-device-link: inputs: /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/tools/clang/test/Driver/Output/clang-sycl-linker-test.cpp.tmp_1.bc, /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/tools/clang/test/Driver/Output/clang-sycl-linker-test.cpp.tmp_2.bc libfiles: output: /tmp/lit-tmp-faew3ndu/a.spv-b34085.bc
                                                                                                                                                                                                                                                                                                                                                            ^
<stdin>:1:349: note: with "LLVMLINKOUT" equal to "/tmp/lit-tmp-faew3ndu/a\\.spv-b34085"
sycl-device-link: inputs: /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/tools/clang/test/Driver/Output/clang-sycl-linker-test.cpp.tmp_1.bc, /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/tools/clang/test/Driver/Output/clang-sycl-linker-test.cpp.tmp_2.bc libfiles: output: /tmp/lit-tmp-faew3ndu/a.spv-b34085.bc
                                                                                                                                                                                                                                                                                                                                                            ^
<stdin>:2:81: note: possible intended match here
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/clang-sycl-linker: error: No available targets are compatible with triple "spirv64": spirv64
                                                                                ^

Input file: <stdin>
Check file: /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/Driver/clang-sycl-linker-test.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
          1: sycl-device-link: inputs: /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/tools/clang/test/Driver/Output/clang-sycl-linker-test.cpp.tmp_1.bc, /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/tools/clang/test/Driver/Output/clang-sycl-linker-test.cpp.tmp_2.bc libfiles: output: /tmp/lit-tmp-faew3ndu/a.spv-b34085.bc 
next:9'0                                                                                                                                                                                                                                                                                                                                                                 X error: no match found
next:9'1                                                                                                                                                                                                                                                                                                                                                                   with "LLVMLINKOUT" equal to "/tmp/lit-tmp-faew3ndu/a\\.spv-b34085"
          2: /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/clang-sycl-linker: error: No available targets are compatible with triple "spirv64": spirv64 
next:9'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:9'2                                                                                     ?                                                                                   possible intended match
>>>>>>

--

********************


```

</details>

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


More information about the cfe-commits mailing list