[clang] [SYCL][Driver] Fix #174877 test to be driver-path-agnostic. (PR #182130)

via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 18 12:54:36 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 52620 tests passed
* 966 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Clang
<details>
<summary>Clang.Driver/sycl-offload-jit.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -ccc-print-phases --target=x86_64-unknown-linux-gnu -fsycl C:\_work\llvm-project\llvm-project\clang\test\Driver\sycl-offload-jit.cpp 2>&1    | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=CHK-PHASES C:\_work\llvm-project\llvm-project\clang\test\Driver\sycl-offload-jit.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -ccc-print-phases --target=x86_64-unknown-linux-gnu -fsycl 'C:\_work\llvm-project\llvm-project\clang\test\Driver\sycl-offload-jit.cpp'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=CHK-PHASES 'C:\_work\llvm-project\llvm-project\clang\test\Driver\sycl-offload-jit.cpp'
# note: command had no output on stdout or stderr
# RUN: at line 6
c:\_work\llvm-project\llvm-project\build\bin\clang.exe --driver-mode=cl -ccc-print-phases --target=x86_64-pc-windows-msvc -fsycl -- C:\_work\llvm-project\llvm-project\clang\test\Driver\sycl-offload-jit.cpp 2>&1    | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=CHK-PHASES C:\_work\llvm-project\llvm-project\clang\test\Driver\sycl-offload-jit.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' --driver-mode=cl -ccc-print-phases --target=x86_64-pc-windows-msvc -fsycl -- 'C:\_work\llvm-project\llvm-project\clang\test\Driver\sycl-offload-jit.cpp'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=CHK-PHASES 'C:\_work\llvm-project\llvm-project\clang\test\Driver\sycl-offload-jit.cpp'
# note: command had no output on stdout or stderr
# RUN: at line 24
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -### -fsycl -c --target=x86_64-unknown-linux-gnu C:\_work\llvm-project\llvm-project\clang\test\Driver\sycl-offload-jit.cpp 2>&1    | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=CHK-DEVICE-TRIPLE C:\_work\llvm-project\llvm-project\clang\test\Driver\sycl-offload-jit.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' '-###' -fsycl -c --target=x86_64-unknown-linux-gnu 'C:\_work\llvm-project\llvm-project\clang\test\Driver\sycl-offload-jit.cpp'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=CHK-DEVICE-TRIPLE 'C:\_work\llvm-project\llvm-project\clang\test\Driver\sycl-offload-jit.cpp'
# note: command had no output on stdout or stderr
# RUN: at line 34
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -### --target=x86_64-unknown-linux-gnu -fsycl C:\_work\llvm-project\llvm-project\clang\test\Driver\sycl-offload-jit.cpp 2>&1       | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -DDRIVER_DIR=$(basename $(dirname c:\_work\llvm-project\llvm-project\build\bin\clang.exe)) -check-prefixes=CHECK-LSYCL,CHECK-SYCL-HEADERS-HOST,CHECK-SYCL-HEADERS-DEVICE C:\_work\llvm-project\llvm-project\clang\test\Driver\sycl-offload-jit.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' '-###' --target=x86_64-unknown-linux-gnu -fsycl 'C:\_work\llvm-project\llvm-project\clang\test\Driver\sycl-offload-jit.cpp'
# .---command stdout------------
# | clang version 23.0.0git (https://github.com/llvm/llvm-project d524b697739fabbb77a2215b3a2f8a7f50bbb4a0)
# | Target: x86_64-unknown-linux-gnu
# | Thread model: posix
# | InstalledDir: C:\_work\llvm-project\llvm-project\build\bin
# | Build config: +assertions
# |  "C:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang.exe" "-cc1" "-triple" "spirv64-unknown-unknown" "-aux-triple" "x86_64-unknown-linux-gnu" "-fsycl-is-device" "-O2" "-sycl-std=2020" "-Wspir-compat" "-emit-llvm-bc" "-emit-llvm-uselists" "-dumpdir" "a-" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "sycl-offload-jit.cpp" "-mrelocation-model" "static" "-mframe-pointer=all" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-aux-target-cpu" "x86-64" "-debugger-tuning=gdb" "-fdebug-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Driver" "-fcoverage-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Driver" "-resource-dir" "C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\23" "-internal-isystem" "C:\\_work\\llvm-project\\llvm-project\\build\\bin\\..\\include" "-internal-isystem" "C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\23\\include" "-internal-isystem" "/usr/local/include" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-internal-isystem" "C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\23\\include" "-internal-isystem" "/usr/local/include" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-fdeprecated-macro" "-ferror-limit" "19" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fcxx-exceptions" "-fexceptions" "-o" "C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\lit-tmp-4plqvxxb\\sycl-offload-jit-ea642b.bc" "-x" "c++" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver\\sycl-offload-jit.cpp"
# |  "C:\\_work\\llvm-project\\llvm-project\\build\\bin\\llvm-offload-binary" "-o" "C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\lit-tmp-4plqvxxb\\sycl-offload-jit-2f7fd1.out" "--image=file=C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\lit-tmp-4plqvxxb\\sycl-offload-jit-ea642b.bc,triple=spirv64-unknown-unknown,arch=generic,kind=sycl"
# |  "C:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang.exe" "-cc1" "-triple" "x86_64-unknown-linux-gnu" "-fsycl-is-host" "-sycl-std=2020" "-emit-obj" "-dumpdir" "a-" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "sycl-offload-jit.cpp" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=all" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "x86-64" "-tune-cpu" "generic" "-debugger-tuning=gdb" "-fdebug-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Driver" "-fcoverage-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Driver" "-resource-dir" "C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\23" "-internal-isystem" "C:\\_work\\llvm-project\\llvm-project\\build\\bin\\..\\include" "-internal-isystem" "C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\23\\include" "-internal-isystem" "/usr/local/include" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-internal-isystem" "C:\\_work\\llvm-project\\llvm-project\\build\\lib\\clang\\23\\include" "-internal-isystem" "/usr/local/include" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-fdeprecated-macro" "-ferror-limit" "19" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fcxx-exceptions" "-fexceptions" "-fembed-offload-object=C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\lit-tmp-4plqvxxb\\sycl-offload-jit-2f7fd1.out" "-faddrsig" "-fdwarf2-cfi-asm" "-o" "C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\lit-tmp-4plqvxxb\\sycl-offload-jit-58995c.o" "-x" "c++" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver\\sycl-offload-jit.cpp"
# |  "C:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang-linker-wrapper" "--device-linker=spirv64-unknown-unknown=--allow-partial-linkage" "--host-triple=x86_64-unknown-linux-gnu" "--linker-path=ld" "--hash-style=gnu" "--eh-frame-hdr" "-m" "elf_x86_64" "-pie" "-dynamic-linker" "/lib64/ld-linux-x86-64.so.2" "-o" "a.out" "Scrt1.o" "crti.o" "crtbeginS.o" "C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\lit-tmp-4plqvxxb\\sycl-offload-jit-58995c.o" "C:\\_work\\llvm-project\\llvm-project\\build\\bin\\..\\lib\\libsycl.so" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "crtendS.o" "crtn.o"
# `-----------------------------
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' '-DDRIVER_DIR=$(basename' '$(dirname' 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe))' -check-prefixes=CHECK-LSYCL,CHECK-SYCL-HEADERS-HOST,CHECK-SYCL-HEADERS-DEVICE 'C:\_work\llvm-project\llvm-project\clang\test\Driver\sycl-offload-jit.cpp'
# .---command stderr------------
# | filecheck.exe: Too many positional arguments specified!
# | Can specify at most 1 positional arguments: See: c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --help
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the cfe-commits mailing list