[PATCH] D116266: [SPIR-V] Add linking of separate translation units using spirv-link
Sven van Haastregt via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 11 09:02:37 PST 2022
svenvh added inline comments.
================
Comment at: clang/test/Driver/spirv-toolchain.cl:71
+// SPLINK: {{llvm-spirv.*"}} [[BC]] "-o" [[SPV2:".*o"]]
+// SPLINK: {{"spirv-link.*"}} [[SPV1]] [[SPV2]] "-o" "a.out"
----------------
aganea wrote:
> Hello @Anastasia, this line fails on my machine. It works with `// SPLINK: spirv-link{{.*}} [[SPV1]] [[SPV2]] "-o" "a.out"
> `
>
> See output with the error:
> ```
> FAIL: Clang :: Driver/spirv-toolchain.cl (579 of 81682)
> ******************** TEST 'Clang :: Driver/spirv-toolchain.cl' FAILED ********************
> Script:
> --
> : 'RUN: at line 2'; d:\git\llvm-project\release\bin\clang.exe -### --target=spirv64 -x cl -c D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl 2>&1 | d:\git\llvm-project\release\bin\filecheck.exe --check-prefix=SPV64 D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl
> : 'RUN: at line 3'; d:\git\llvm-project\release\bin\clang.exe -### --target=spirv64 D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl 2>&1 | d:\git\llvm-project\release\bin\filecheck.exe --check-prefix=SPV64 D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl
> : 'RUN: at line 4'; d:\git\llvm-project\release\bin\clang.exe -### --target=spirv64 -x ir -c D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl 2>&1 | d:\git\llvm-project\release\bin\filecheck.exe --check-prefix=SPV64 D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl
> : 'RUN: at line 5'; d:\git\llvm-project\release\bin\clang.exe -### --target=spirv64 -x clcpp -c D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl 2>&1 | d:\git\llvm-project\release\bin\filecheck.exe --check-prefix=SPV64 D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl
> : 'RUN: at line 6'; d:\git\llvm-project\release\bin\clang.exe -### --target=spirv64 -x c -c D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl 2>&1 | d:\git\llvm-project\release\bin\filecheck.exe --check-prefix=SPV64 D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl
> : 'RUN: at line 12'; d:\git\llvm-project\release\bin\clang.exe -### --target=spirv32 -x cl -c D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl 2>&1 | d:\git\llvm-project\release\bin\filecheck.exe --check-prefix=SPV32 D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl
> : 'RUN: at line 13'; d:\git\llvm-project\release\bin\clang.exe -### --target=spirv32 D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl 2>&1 | d:\git\llvm-project\release\bin\filecheck.exe --check-prefix=SPV32 D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl
> : 'RUN: at line 14'; d:\git\llvm-project\release\bin\clang.exe -### --target=spirv32 -x ir -c D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl 2>&1 | d:\git\llvm-project\release\bin\filecheck.exe --check-prefix=SPV32 D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl
> : 'RUN: at line 15'; d:\git\llvm-project\release\bin\clang.exe -### --target=spirv32 -x clcpp -c D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl 2>&1 | d:\git\llvm-project\release\bin\filecheck.exe --check-prefix=SPV32 D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl
> : 'RUN: at line 16'; d:\git\llvm-project\release\bin\clang.exe -### --target=spirv32 -x c -c D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl 2>&1 | d:\git\llvm-project\release\bin\filecheck.exe --check-prefix=SPV32 D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl
> : 'RUN: at line 24'; d:\git\llvm-project\release\bin\clang.exe -### --target=spirv64 -x cl -S D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl 2>&1 | d:\git\llvm-project\release\bin\filecheck.exe --check-prefix=SPT64 D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl
> : 'RUN: at line 25'; d:\git\llvm-project\release\bin\clang.exe -### --target=spirv64 -x ir -S D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl 2>&1 | d:\git\llvm-project\release\bin\filecheck.exe --check-prefix=SPT64 D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl
> : 'RUN: at line 26'; d:\git\llvm-project\release\bin\clang.exe -### --target=spirv64 -x clcpp -c D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl 2>&1 | d:\git\llvm-project\release\bin\filecheck.exe --check-prefix=SPV64 D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl
> : 'RUN: at line 27'; d:\git\llvm-project\release\bin\clang.exe -### --target=spirv64 -x c -S D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl 2>&1 | d:\git\llvm-project\release\bin\filecheck.exe --check-prefix=SPT64 D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl
> : 'RUN: at line 33'; d:\git\llvm-project\release\bin\clang.exe -### --target=spirv32 -x cl -S D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl 2>&1 | d:\git\llvm-project\release\bin\filecheck.exe --check-prefix=SPT32 D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl
> : 'RUN: at line 34'; d:\git\llvm-project\release\bin\clang.exe -### --target=spirv32 -x ir -S D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl 2>&1 | d:\git\llvm-project\release\bin\filecheck.exe --check-prefix=SPT32 D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl
> : 'RUN: at line 35'; d:\git\llvm-project\release\bin\clang.exe -### --target=spirv32 -x clcpp -c D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl 2>&1 | d:\git\llvm-project\release\bin\filecheck.exe --check-prefix=SPV32 D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl
> : 'RUN: at line 36'; d:\git\llvm-project\release\bin\clang.exe -### --target=spirv32 -x c -S D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl 2>&1 | d:\git\llvm-project\release\bin\filecheck.exe --check-prefix=SPT32 D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl
> : 'RUN: at line 44'; d:\git\llvm-project\release\bin\clang.exe -### --target=spirv64 -x assembler -c D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl 2>&1 | d:\git\llvm-project\release\bin\filecheck.exe --check-prefix=ASM D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl
> : 'RUN: at line 45'; d:\git\llvm-project\release\bin\clang.exe -### --target=spirv32 -x assembler -c D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl 2>&1 | d:\git\llvm-project\release\bin\filecheck.exe --check-prefix=ASM D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl
> : 'RUN: at line 50'; d:\git\llvm-project\release\bin\clang.exe -### --target=spirv64 -x cl -c D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl --save-temps 2>&1 | d:\git\llvm-project\release\bin\filecheck.exe --check-prefix=TMP D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl
> : 'RUN: at line 63'; d:\git\llvm-project\release\bin\clang.exe -### -target spirv64 D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl 2>&1 | d:\git\llvm-project\release\bin\filecheck.exe --check-prefix=SPLINK D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl
> --
> Exit Code: 1
>
> Command Output (stdout):
> --
> $ ":" "RUN: at line 2"
> $ "d:\git\llvm-project\release\bin\clang.exe" "-###" "--target=spirv64" "-x" "cl" "-c" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ "d:\git\llvm-project\release\bin\filecheck.exe" "--check-prefix=SPV64" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ ":" "RUN: at line 3"
> $ "d:\git\llvm-project\release\bin\clang.exe" "-###" "--target=spirv64" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ "d:\git\llvm-project\release\bin\filecheck.exe" "--check-prefix=SPV64" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ ":" "RUN: at line 4"
> $ "d:\git\llvm-project\release\bin\clang.exe" "-###" "--target=spirv64" "-x" "ir" "-c" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ "d:\git\llvm-project\release\bin\filecheck.exe" "--check-prefix=SPV64" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ ":" "RUN: at line 5"
> $ "d:\git\llvm-project\release\bin\clang.exe" "-###" "--target=spirv64" "-x" "clcpp" "-c" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ "d:\git\llvm-project\release\bin\filecheck.exe" "--check-prefix=SPV64" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ ":" "RUN: at line 6"
> $ "d:\git\llvm-project\release\bin\clang.exe" "-###" "--target=spirv64" "-x" "c" "-c" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ "d:\git\llvm-project\release\bin\filecheck.exe" "--check-prefix=SPV64" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ ":" "RUN: at line 12"
> $ "d:\git\llvm-project\release\bin\clang.exe" "-###" "--target=spirv32" "-x" "cl" "-c" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ "d:\git\llvm-project\release\bin\filecheck.exe" "--check-prefix=SPV32" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ ":" "RUN: at line 13"
> $ "d:\git\llvm-project\release\bin\clang.exe" "-###" "--target=spirv32" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ "d:\git\llvm-project\release\bin\filecheck.exe" "--check-prefix=SPV32" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ ":" "RUN: at line 14"
> $ "d:\git\llvm-project\release\bin\clang.exe" "-###" "--target=spirv32" "-x" "ir" "-c" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ "d:\git\llvm-project\release\bin\filecheck.exe" "--check-prefix=SPV32" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ ":" "RUN: at line 15"
> $ "d:\git\llvm-project\release\bin\clang.exe" "-###" "--target=spirv32" "-x" "clcpp" "-c" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ "d:\git\llvm-project\release\bin\filecheck.exe" "--check-prefix=SPV32" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ ":" "RUN: at line 16"
> $ "d:\git\llvm-project\release\bin\clang.exe" "-###" "--target=spirv32" "-x" "c" "-c" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ "d:\git\llvm-project\release\bin\filecheck.exe" "--check-prefix=SPV32" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ ":" "RUN: at line 24"
> $ "d:\git\llvm-project\release\bin\clang.exe" "-###" "--target=spirv64" "-x" "cl" "-S" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ "d:\git\llvm-project\release\bin\filecheck.exe" "--check-prefix=SPT64" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ ":" "RUN: at line 25"
> $ "d:\git\llvm-project\release\bin\clang.exe" "-###" "--target=spirv64" "-x" "ir" "-S" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ "d:\git\llvm-project\release\bin\filecheck.exe" "--check-prefix=SPT64" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ ":" "RUN: at line 26"
> $ "d:\git\llvm-project\release\bin\clang.exe" "-###" "--target=spirv64" "-x" "clcpp" "-c" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ "d:\git\llvm-project\release\bin\filecheck.exe" "--check-prefix=SPV64" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ ":" "RUN: at line 27"
> $ "d:\git\llvm-project\release\bin\clang.exe" "-###" "--target=spirv64" "-x" "c" "-S" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ "d:\git\llvm-project\release\bin\filecheck.exe" "--check-prefix=SPT64" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ ":" "RUN: at line 33"
> $ "d:\git\llvm-project\release\bin\clang.exe" "-###" "--target=spirv32" "-x" "cl" "-S" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ "d:\git\llvm-project\release\bin\filecheck.exe" "--check-prefix=SPT32" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ ":" "RUN: at line 34"
> $ "d:\git\llvm-project\release\bin\clang.exe" "-###" "--target=spirv32" "-x" "ir" "-S" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ "d:\git\llvm-project\release\bin\filecheck.exe" "--check-prefix=SPT32" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ ":" "RUN: at line 35"
> $ "d:\git\llvm-project\release\bin\clang.exe" "-###" "--target=spirv32" "-x" "clcpp" "-c" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ "d:\git\llvm-project\release\bin\filecheck.exe" "--check-prefix=SPV32" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ ":" "RUN: at line 36"
> $ "d:\git\llvm-project\release\bin\clang.exe" "-###" "--target=spirv32" "-x" "c" "-S" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ "d:\git\llvm-project\release\bin\filecheck.exe" "--check-prefix=SPT32" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ ":" "RUN: at line 44"
> $ "d:\git\llvm-project\release\bin\clang.exe" "-###" "--target=spirv64" "-x" "assembler" "-c" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ "d:\git\llvm-project\release\bin\filecheck.exe" "--check-prefix=ASM" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ ":" "RUN: at line 45"
> $ "d:\git\llvm-project\release\bin\clang.exe" "-###" "--target=spirv32" "-x" "assembler" "-c" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ "d:\git\llvm-project\release\bin\filecheck.exe" "--check-prefix=ASM" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ ":" "RUN: at line 50"
> $ "d:\git\llvm-project\release\bin\clang.exe" "-###" "--target=spirv64" "-x" "cl" "-c" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl" "--save-temps"
> $ "d:\git\llvm-project\release\bin\filecheck.exe" "--check-prefix=TMP" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ ":" "RUN: at line 63"
> $ "d:\git\llvm-project\release\bin\clang.exe" "-###" "-target" "spirv64" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> $ "d:\git\llvm-project\release\bin\filecheck.exe" "--check-prefix=SPLINK" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> # command stderr:
> D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl:71:12: error: SPLINK: expected string not found in input
> // SPLINK: {{"spirv-link.*"}} [[SPV1]] [[SPV2]] "-o" "a.out"
> ^
> <stdin>:8:160: note: scanning from here
> "llvm-spirv" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-3443c4.bc" "-o" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-0aa22f.o"
> ^
> <stdin>:8:160: note: with "SPV1" equal to "\"C:\\\\\\\\Users\\\\\\\\ALEXAN~1\\\\\\\\AppData\\\\\\\\Local\\\\\\\\Temp\\\\\\\\spirv-toolchain-ab01cc\\.o\""
> "llvm-spirv" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-3443c4.bc" "-o" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-0aa22f.o"
> ^
> <stdin>:8:160: note: with "SPV2" equal to "\"C:\\\\\\\\Users\\\\\\\\ALEXAN~1\\\\\\\\AppData\\\\\\\\Local\\\\\\\\Temp\\\\\\\\spirv-toolchain-0aa22f\\.o\""
> "llvm-spirv" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-3443c4.bc" "-o" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-0aa22f.o"
> ^
> <stdin>:9:187: note: possible intended match here
> "c:\\scoop\\user\\apps\\vulkan\\current\\bin\\spirv-link.exe" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-ab01cc.o" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-0aa22f.o" "-o" "a.out"
> ^
>
> Input file: <stdin>
> Check file: D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl
>
> -dump-input=help explains the following input dump.
>
> Input was:
> <<<<<<
> 1: clang version 14.0.0 (https://github.com/llvm/llvm-project.git be7dbd674cb0cec2558e054c39be0eb098a99394)
> 2: Target: spirv64
> 3: Thread model: posix
> 4: InstalledDir: d:\git\llvm-project\release\bin
> 5: "d:\\git\\llvm-project\\release\\bin\\clang.exe" "-cc1" "-triple" "spirv64" "-Wspir-compat" "-emit-llvm-bc" "-emit-llvm-uselists" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "spirv-toolchain.cl" "-mrelocation-model" "static" "-mframe-pointer=all" "-ffp-contract=on" "-fno-rounding-math" "-fno-verbose-asm" "-mconstructor-aliases" "-debugger-tuning=gdb" "-fcoverage-compilation-dir=D:\\git\\llvm-project\\release\\tools\\clang\\test\\Driver" "-resource-dir" "d:\\git\\llvm-project\\release\\lib\\clang\\14.0.0" "-fdebug-compilation-dir=D:\\git\\llvm-project\\release\\tools\\clang\\test\\Driver" "-ferror-limit" "19" "-finclude-default-header" "-fdeclare-opencl-builtins" "-fgnuc-version=4.2.1" "-fno-threadsafe-statics" "-o" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-84db8e.bc" "-x" "cl" "D:\\git\\llvm-project\\clang\\test\\Driver\\spirv-toolchain.cl"
> 6: "llvm-spirv" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-84db8e.bc" "-o" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-ab01cc.o"
> 7: "d:\\git\\llvm-project\\release\\bin\\clang.exe" "-cc1" "-triple" "spirv64" "-Wspir-compat" "-emit-llvm-bc" "-emit-llvm-uselists" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "spirv-toolchain.cl" "-mrelocation-model" "static" "-mframe-pointer=all" "-ffp-contract=on" "-fno-rounding-math" "-fno-verbose-asm" "-mconstructor-aliases" "-debugger-tuning=gdb" "-fcoverage-compilation-dir=D:\\git\\llvm-project\\release\\tools\\clang\\test\\Driver" "-resource-dir" "d:\\git\\llvm-project\\release\\lib\\clang\\14.0.0" "-fdebug-compilation-dir=D:\\git\\llvm-project\\release\\tools\\clang\\test\\Driver" "-ferror-limit" "19" "-finclude-default-header" "-fdeclare-opencl-builtins" "-fgnuc-version=4.2.1" "-fno-threadsafe-statics" "-o" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-3443c4.bc" "-x" "cl" "D:\\git\\llvm-project\\clang\\test\\Driver\\spirv-toolchain.cl"
> 8: "llvm-spirv" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-3443c4.bc" "-o" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-0aa22f.o"
> check:71'0 X error: no match found
> check:71'1 with "SPV1" equal to "\"C:\\\\\\\\Users\\\\\\\\ALEXAN~1\\\\\\\\AppData\\\\\\\\Local\\\\\\\\Temp\\\\\\\\spirv-toolchain-ab01cc\\.o\""
> check:71'2 with "SPV2" equal to "\"C:\\\\\\\\Users\\\\\\\\ALEXAN~1\\\\\\\\AppData\\\\\\\\Local\\\\\\\\Temp\\\\\\\\spirv-toolchain-0aa22f\\.o\""
> 9: "c:\\scoop\\user\\apps\\vulkan\\current\\bin\\spirv-link.exe" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-ab01cc.o" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-0aa22f.o" "-o" "a.out"
> check:71'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> check:71'3 ? possible intended match
> >>>>>>
>
> error: command failed with exit status: 1
>
> --
>
> ********************
> Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
> ********************
> Failed Tests (1):
> Clang :: Driver/spirv-toolchain.cl
> ```
>
> If I just run that command:
> ```
> D:\git\llvm-project> "d:\git\llvm-project\release\bin\clang.exe" "-###" "-target" "spirv64" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl" "D:\git\llvm-project\clang\test\Driver\spirv-toolchain.cl"
> clang version 14.0.0 (https://github.com/llvm/llvm-project.git be7dbd674cb0cec2558e054c39be0eb098a99394)
> Target: spirv64
> Thread model: posix
> InstalledDir: d:\git\llvm-project\release\bin
> "d:\\git\\llvm-project\\release\\bin\\clang.exe" "-cc1" "-triple" "spirv64" "-Wspir-compat" "-emit-llvm-bc" "-emit-llvm-uselists" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "spirv-toolchain.cl" "-mrelocation-model" "static" "-mframe-pointer=all" "-ffp-contract=on" "-fno-rounding-math" "-fno-verbose-asm" "-mconstructor-aliases" "-debugger-tuning=gdb" "-fcoverage-compilation-dir=D:\\git\\llvm-project" "-resource-dir" "d:\\git\\llvm-project\\release\\lib\\clang\\14.0.0" "-fdebug-compilation-dir=D:\\git\\llvm-project" "-ferror-limit" "19" "-fmessage-length=167" "-finclude-default-header" "-fdeclare-opencl-builtins" "-fgnuc-version=4.2.1" "-fno-threadsafe-statics" "-fcolor-diagnostics" "-o" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-6356aa.bc" "-x" "cl" "D:\\git\\llvm-project\\clang\\test\\Driver\\spirv-toolchain.cl"
> "llvm-spirv" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-6356aa.bc" "-o" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-0c9f09.o"
> "d:\\git\\llvm-project\\release\\bin\\clang.exe" "-cc1" "-triple" "spirv64" "-Wspir-compat" "-emit-llvm-bc" "-emit-llvm-uselists" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "spirv-toolchain.cl" "-mrelocation-model" "static" "-mframe-pointer=all" "-ffp-contract=on" "-fno-rounding-math" "-fno-verbose-asm" "-mconstructor-aliases" "-debugger-tuning=gdb" "-fcoverage-compilation-dir=D:\\git\\llvm-project" "-resource-dir" "d:\\git\\llvm-project\\release\\lib\\clang\\14.0.0" "-fdebug-compilation-dir=D:\\git\\llvm-project" "-ferror-limit" "19" "-fmessage-length=167" "-finclude-default-header" "-fdeclare-opencl-builtins" "-fgnuc-version=4.2.1" "-fno-threadsafe-statics" "-fcolor-diagnostics" "-o" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-1794d3.bc" "-x" "cl" "D:\\git\\llvm-project\\clang\\test\\Driver\\spirv-toolchain.cl"
> "llvm-spirv" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-1794d3.bc" "-o" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-facf65.o"
> "C:\\Scoop\\user\\apps\\vulkan\\current\\Bin\\spirv-link.exe" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-0c9f09.o" "C:\\Users\\ALEXAN~1\\AppData\\Local\\Temp\\spirv-toolchain-facf65.o" "-o" "a.out"
> ```
I have just committed a fix for that: `4b14fc6fe5a7 ("[SPIR-V] Drop double quote from test pattern", 2022-01-11)`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116266/new/
https://reviews.llvm.org/D116266
More information about the cfe-commits
mailing list