[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
Thu Apr 10 02:58:29 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-win-x-armv7l` running on `as-builder-1` while building `clang` at step 10 "test-check-clang".

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

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

```
Step 10 (test-check-clang) failure: Test just built components: check-clang completed (failure)
******************** TEST 'Clang :: Driver/clang-sycl-linker-test.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 4
c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe --driver-mode=g++ -emit-llvm -c -target spirv64 C:\buildbot\as-builder-1\x-armv7l\llvm-project\clang\test\Driver\clang-sycl-linker-test.cpp -o C:\buildbot\as-builder-1\x-armv7l\build\tools\clang\test\Driver\Output\clang-sycl-linker-test.cpp.tmp_1.bc
# executed command: 'c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe' --driver-mode=g++ -emit-llvm -c -target spirv64 'C:\buildbot\as-builder-1\x-armv7l\llvm-project\clang\test\Driver\clang-sycl-linker-test.cpp' -o 'C:\buildbot\as-builder-1\x-armv7l\build\tools\clang\test\Driver\Output\clang-sycl-linker-test.cpp.tmp_1.bc'
# RUN: at line 5
c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe --driver-mode=g++ -emit-llvm -c -target spirv64 C:\buildbot\as-builder-1\x-armv7l\llvm-project\clang\test\Driver\clang-sycl-linker-test.cpp -o C:\buildbot\as-builder-1\x-armv7l\build\tools\clang\test\Driver\Output\clang-sycl-linker-test.cpp.tmp_2.bc
# executed command: 'c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe' --driver-mode=g++ -emit-llvm -c -target spirv64 'C:\buildbot\as-builder-1\x-armv7l\llvm-project\clang\test\Driver\clang-sycl-linker-test.cpp' -o 'C:\buildbot\as-builder-1\x-armv7l\build\tools\clang\test\Driver\Output\clang-sycl-linker-test.cpp.tmp_2.bc'
# RUN: at line 6
c:\buildbot\as-builder-1\x-armv7l\build\bin\clang-sycl-linker.exe --dry-run -v -triple=spirv64 C:\buildbot\as-builder-1\x-armv7l\build\tools\clang\test\Driver\Output\clang-sycl-linker-test.cpp.tmp_1.bc C:\buildbot\as-builder-1\x-armv7l\build\tools\clang\test\Driver\Output\clang-sycl-linker-test.cpp.tmp_2.bc -o a.spv 2>&1    | c:\buildbot\as-builder-1\x-armv7l\build\bin\filecheck.exe C:\buildbot\as-builder-1\x-armv7l\llvm-project\clang\test\Driver\clang-sycl-linker-test.cpp --check-prefix=SIMPLE-FO
# executed command: 'c:\buildbot\as-builder-1\x-armv7l\build\bin\clang-sycl-linker.exe' --dry-run -v -triple=spirv64 'C:\buildbot\as-builder-1\x-armv7l\build\tools\clang\test\Driver\Output\clang-sycl-linker-test.cpp.tmp_1.bc' 'C:\buildbot\as-builder-1\x-armv7l\build\tools\clang\test\Driver\Output\clang-sycl-linker-test.cpp.tmp_2.bc' -o a.spv
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: 'c:\buildbot\as-builder-1\x-armv7l\build\bin\filecheck.exe' 'C:\buildbot\as-builder-1\x-armv7l\llvm-project\clang\test\Driver\clang-sycl-linker-test.cpp' --check-prefix=SIMPLE-FO
# .---command stderr------------
# | C:\buildbot\as-builder-1\x-armv7l\llvm-project\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:332: note: scanning from here
# | sycl-device-link: inputs: C:\buildbot\as-builder-1\x-armv7l\build\tools\clang\test\Driver\Output\clang-sycl-linker-test.cpp.tmp_1.bc, C:\buildbot\as-builder-1\x-armv7l\build\tools\clang\test\Driver\Output\clang-sycl-linker-test.cpp.tmp_2.bc libfiles: output: C:\buildbot\as-builder-1\x-armv7l\build\lit-tmp-0tz8wfm_\a.spv-bb59d3.bc
# |                                                                                                                                                                                                                                                                                                                                            ^
# | <stdin>:1:332: note: with "LLVMLINKOUT" equal to "C:\\\\buildbot\\\\as-builder-1\\\\x-armv7l\\\\build\\\\lit-tmp-0tz8wfm_\\\\a\\.spv-bb59d3"
# | sycl-device-link: inputs: C:\buildbot\as-builder-1\x-armv7l\build\tools\clang\test\Driver\Output\clang-sycl-linker-test.cpp.tmp_1.bc, C:\buildbot\as-builder-1\x-armv7l\build\tools\clang\test\Driver\Output\clang-sycl-linker-test.cpp.tmp_2.bc libfiles: output: C:\buildbot\as-builder-1\x-armv7l\build\lit-tmp-0tz8wfm_\a.spv-bb59d3.bc
# |                                                                                                                                                                                                                                                                                                                                            ^
# | <stdin>:2:59: note: possible intended match here
# | c:\buildbot\as-builder-1\x-armv7l\build\bin\clang-sycl-linker.exe: error: No available targets are compatible with triple "spirv64": spirv64
# |                                                           ^
# | 
# | Input file: <stdin>
# | Check file: C:\buildbot\as-builder-1\x-armv7l\llvm-project\clang\test\Driver\clang-sycl-linker-test.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           1: sycl-device-link: inputs: C:\buildbot\as-builder-1\x-armv7l\build\tools\clang\test\Driver\Output\clang-sycl-linker-test.cpp.tmp_1.bc, C:\buildbot\as-builder-1\x-armv7l\build\tools\clang\test\Driver\Output\clang-sycl-linker-test.cpp.tmp_2.bc libfiles: output: C:\buildbot\as-builder-1\x-armv7l\build\lit-tmp-0tz8wfm_\a.spv-bb59d3.bc 
# | next:9'0                                                                                                                                                                                                                                                                                                                                                X error: no match found
# | next:9'1                                                                                                                                                                                                                                                                                                                                                  with "LLVMLINKOUT" equal to "C:\\\\buildbot\\\\as-builder-1\\\\x-armv7l\\\\build\\\\lit-tmp-0tz8wfm_\\\\a\\.spv-bb59d3"
# |           2: c:\buildbot\as-builder-1\x-armv7l\build\bin\clang-sycl-linker.exe: error: No available targets are compatible with triple "spirv64": spirv64 
# | next:9'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:9'2                                                               ?                                                                                   possible intended match
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

...

```

</details>

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


More information about the cfe-commits mailing list