[clang] Fix tests clang-offload-bundler-zlib/zstd.c (PR #74504)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 7 14:54:35 PST 2023
jhuber6 wrote:
I got this fail just now after doing a pull.
```
FAIL: Clang :: Driver/hip-offload-compress-zstd.hip (477 of 1078)
******************** TEST 'Clang :: Driver/hip-offload-compress-zstd.hip' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
RUN: at line 7: rm -rf /home/jhuber/Documents/llvm/llvm-project/build/tools/clang/test/Driver/Output/a.bc
+ rm -rf /home/jhuber/Documents/llvm/llvm-project/build/tools/clang/test/Driver/Output/a.bc
RUN: at line 8: /home/jhuber/Documents/llvm/llvm-project/build/bin/clang -c -v --target=x86_64-linux-gnu -x hip --offload-arch=gfx1100 --offload-arch=gfx1101 -fgpu-rdc -nogpuinc -nogpulib /home/jhuber/Documents/llvm/llvm-project/clang/test/Driver/Inputs/hip_multiple_inputs/a.cu --offload-compress --offload-device-only --gpu-bundle-output -o /home/jhuber/Documents/llvm/llvm-project/build/tools/clang/test/Driver/Output/a.bc 2>&1 | /home/jhuber/Documents/llvm/llvm-project/build/bin/FileCheck /home/jhuber/Documents/llvm/llvm-project/clang/test/Driver/hip-offload-compress-zstd.hip
+ /home/jhuber/Documents/llvm/llvm-project/build/bin/clang -c -v --target=x86_64-linux-gnu -x hip --offload-arch=gfx1100 --offload-arch=gfx1101 -fgpu-rdc -nogpuinc -nogpulib /home/jhuber/Documents/llvm/llvm-project/clang/test/Driver/Inputs/hip_multiple_inputs/a.cu --offload-compress --offload-device-only --gpu-bundle-output -o /home/jhuber/Documents/llvm/llvm-project/build/tools/clang/test/Driver/Output/a.bc
+ /home/jhuber/Documents/llvm/llvm-project/build/bin/FileCheck /home/jhuber/Documents/llvm/llvm-project/clang/test/Driver/hip-offload-compress-zstd.hip
RUN: at line 23: /home/jhuber/Documents/llvm/llvm-project/build/bin/clang --hip-link -### -v --target=x86_64-linux-gnu --offload-arch=gfx1100 --offload-arch=gfx1101 -fgpu-rdc -nogpulib /home/jhuber/Documents/llvm/llvm-project/build/tools/clang/test/Driver/Output/a.bc --offload-device-only 2>&1 | /home/jhuber/Documents/llvm/llvm-project/build/bin/FileCheck -check-prefix=UNBUNDLE /home/jhuber/Documents/llvm/llvm-project/clang/test/Driver/hip-offload-compress-zstd.hip
+ /home/jhuber/Documents/llvm/llvm-project/build/bin/clang --hip-link -### -v --target=x86_64-linux-gnu --offload-arch=gfx1100 --offload-arch=gfx1101 -fgpu-rdc -nogpulib /home/jhuber/Documents/llvm/llvm-project/build/tools/clang/test/Driver/Output/a.bc --offload-device-only
+ /home/jhuber/Documents/llvm/llvm-project/build/bin/FileCheck -check-prefix=UNBUNDLE /home/jhuber/Documents/llvm/llvm-project/clang/test/Driver/hip-offload-compress-zstd.hip
/home/jhuber/Documents/llvm/llvm-project/clang/test/Driver/hip-offload-compress-zstd.hip:29:14: error: UNBUNDLE: expected string not found in input
// UNBUNDLE: clang-offload-bundler{{.*}} "-type=bc"
^
<stdin>:1:1: note: scanning from here
clang version 18.0.0git
^
<stdin>:17:96: note: possible intended match here
clang: error: no such file or directory: '/home/jhuber/Documents/llvm/llvm-project/build/tools/clang/test/Driver/Output/a.bc'
^
Input file: <stdin>
Check file: /home/jhuber/Documents/llvm/llvm-project/clang/test/Driver/hip-offload-compress-zstd.hip
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: clang version 18.0.0git
check:29'0 X~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
2: Target: x86_64-unknown-linux-gnu
check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3: Thread model: posix
check:29'0 ~~~~~~~~~~~~~~~~~~~~
4: InstalledDir: /home/jhuber/Documents/llvm/llvm-project/build/bin
check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5: Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0
check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6: Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/12.3.0
check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.
.
.
12: Candidate multilib: .;@m64
check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
13: Candidate multilib: 32;@m32
check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14: Selected multilib: .;@m64
check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
15: Found CUDA installation: /opt/cuda, version
check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16: Found HIP installation: /opt/rocm, version 5.6.31062
check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17: clang: error: no such file or directory: '/home/jhuber/Documents/llvm/llvm-project/build/tools/clang/test/Driver/Output/a.bc'
check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:29'1 ? possible intended match
>>>>>>
--
********************
********************
Failed Tests (1):
Clang :: Driver/hip-offload-compress-zstd.hip
Testing Time: 32.84s
Total Discovered Tests: 1078
Unsupported : 22 (2.04%)
Passed : 1054 (97.77%)
Expectedly Failed: 1 (0.09%)
Failed : 1 (0.09%)
```
https://github.com/llvm/llvm-project/pull/74504
More information about the cfe-commits
mailing list