Skip to content

Fix tests clang-offload-bundler-zlib/zstd.c #74504

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

yxsamliu
Copy link
Collaborator

@yxsamliu yxsamliu commented Dec 5, 2023

The test fails intermittently due to non-unique file name %T.

Use %t based file names instead.

Fixes: #74472

The test fails intermittently due to non-unique file name %T.

Use %t based file names instead.

Fixes: llvm#74472
@llvmbot llvmbot added clang Clang issues not falling into any other category clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' labels Dec 5, 2023
@llvmbot
Copy link
Member

llvmbot commented Dec 5, 2023

@llvm/pr-subscribers-clang

@llvm/pr-subscribers-clang-driver

Author: Yaxun (Sam) Liu (yxsamliu)

Changes

The test fails intermittently due to non-unique file name %T.

Use %t based file names instead.

Fixes: #74472


Full diff: https://github.com/llvm/llvm-project/pull/74504.diff

2 Files Affected:

  • (modified) clang/test/Driver/clang-offload-bundler-zlib.c (+7-6)
  • (modified) clang/test/Driver/clang-offload-bundler-zstd.c (+7-7)
diff --git a/clang/test/Driver/clang-offload-bundler-zlib.c b/clang/test/Driver/clang-offload-bundler-zlib.c
index c46c32a4a0537..a57ee6da9a86a 100644
--- a/clang/test/Driver/clang-offload-bundler-zlib.c
+++ b/clang/test/Driver/clang-offload-bundler-zlib.c
@@ -55,14 +55,15 @@
 // Check unbundling archive.
 //
 // RUN: clang-offload-bundler -type=bc -targets=hip-amdgcn-amd-amdhsa--gfx900,hip-amdgcn-amd-amdhsa--gfx906 \
-// RUN:   -input=%t.tgt1 -input=%t.tgt2 -output=%T/hip_bundle1.bc -compress
+// RUN:   -input=%t.tgt1 -input=%t.tgt2 -output=%t.hip_bundle1.bc -compress
 // RUN: clang-offload-bundler -type=bc -targets=hip-amdgcn-amd-amdhsa--gfx900,hip-amdgcn-amd-amdhsa--gfx906 \
-// RUN:   -input=%t.tgt1 -input=%t.tgt2 -output=%T/hip_bundle2.bc -compress
-// RUN: llvm-ar cr %T/hip_archive.a %T/hip_bundle1.bc %T/hip_bundle2.bc
+// RUN:   -input=%t.tgt1 -input=%t.tgt2 -output=%t.hip_bundle2.bc -compress
+// RUN: rm -f %t.hip_archive.a
+// RUN: llvm-ar cr %t.hip_archive.a %t.hip_bundle1.bc %t.hip_bundle2.bc
 // RUN: clang-offload-bundler -unbundle -type=a -targets=hip-amdgcn-amd-amdhsa--gfx900,hip-amdgcn-amd-amdhsa--gfx906 \
-// RUN:   -output=%T/hip_900.a -output=%T/hip_906.a -input=%T/hip_archive.a
-// RUN: llvm-ar t %T/hip_900.a | FileCheck -check-prefix=HIP-AR-900 %s
-// RUN: llvm-ar t %T/hip_906.a | FileCheck -check-prefix=HIP-AR-906 %s
+// RUN:   -output=%t.hip_900.a -output=%t.hip_906.a -input=%t.hip_archive.a
+// RUN: llvm-ar t %t.hip_900.a | FileCheck -check-prefix=HIP-AR-900 %s
+// RUN: llvm-ar t %t.hip_906.a | FileCheck -check-prefix=HIP-AR-906 %s
 // HIP-AR-900-DAG: hip_bundle1-hip-amdgcn-amd-amdhsa--gfx900
 // HIP-AR-900-DAG: hip_bundle2-hip-amdgcn-amd-amdhsa--gfx900
 // HIP-AR-906-DAG: hip_bundle1-hip-amdgcn-amd-amdhsa--gfx906
diff --git a/clang/test/Driver/clang-offload-bundler-zstd.c b/clang/test/Driver/clang-offload-bundler-zstd.c
index b2b588b72d4d6..3b577d4d166a3 100644
--- a/clang/test/Driver/clang-offload-bundler-zstd.c
+++ b/clang/test/Driver/clang-offload-bundler-zstd.c
@@ -48,18 +48,18 @@
 // RUN: diff %t.tgt1 %t.res.tgt1
 // RUN: diff %t.tgt2 %t.res.tgt2
 
-//
 // Check unbundling archive.
 //
 // RUN: clang-offload-bundler -type=bc -targets=hip-amdgcn-amd-amdhsa--gfx900,hip-amdgcn-amd-amdhsa--gfx906 \
-// RUN:   -input=%t.tgt1 -input=%t.tgt2 -output=%T/hip_bundle1.bc -compress
+// RUN:   -input=%t.tgt1 -input=%t.tgt2 -output=%t.hip_bundle1.bc -compress
 // RUN: clang-offload-bundler -type=bc -targets=hip-amdgcn-amd-amdhsa--gfx900,hip-amdgcn-amd-amdhsa--gfx906 \
-// RUN:   -input=%t.tgt1 -input=%t.tgt2 -output=%T/hip_bundle2.bc -compress
-// RUN: llvm-ar cr %T/hip_archive.a %T/hip_bundle1.bc %T/hip_bundle2.bc
+// RUN:   -input=%t.tgt1 -input=%t.tgt2 -output=%t.hip_bundle2.bc -compress
+// RUN: rm -f %t.hip_archive.a
+// RUN: llvm-ar cr %t.hip_archive.a %t.hip_bundle1.bc %t.hip_bundle2.bc
 // RUN: clang-offload-bundler -unbundle -type=a -targets=hip-amdgcn-amd-amdhsa--gfx900,hip-amdgcn-amd-amdhsa--gfx906 \
-// RUN:   -output=%T/hip_900.a -output=%T/hip_906.a -input=%T/hip_archive.a
-// RUN: llvm-ar t %T/hip_900.a | FileCheck -check-prefix=HIP-AR-900 %s
-// RUN: llvm-ar t %T/hip_906.a | FileCheck -check-prefix=HIP-AR-906 %s
+// RUN:   -output=%t.hip_900.a -output=%t.hip_906.a -input=%t.hip_archive.a
+// RUN: llvm-ar t %t.hip_900.a | FileCheck -check-prefix=HIP-AR-900 %s
+// RUN: llvm-ar t %t.hip_906.a | FileCheck -check-prefix=HIP-AR-906 %s
 // HIP-AR-900-DAG: hip_bundle1-hip-amdgcn-amd-amdhsa--gfx900
 // HIP-AR-900-DAG: hip_bundle2-hip-amdgcn-amd-amdhsa--gfx900
 // HIP-AR-906-DAG: hip_bundle1-hip-amdgcn-amd-amdhsa--gfx906

Copy link
Contributor

@jhuber6 jhuber6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I noticed that spurious failure as well but didn't know what caused it.

Copy link
Contributor

@eddyz87 eddyz87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, let's hope it fixes CI. Strange that I haven't observed this bug on x86 runners but maybe just needed to dig deeper in run history.

@yxsamliu yxsamliu merged commit 36e4cb7 into llvm:main Dec 6, 2023
@jhuber6
Copy link
Contributor

jhuber6 commented Dec 7, 2023

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%)

@yxsamliu
Copy link
Collaborator Author

yxsamliu commented Dec 7, 2023

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%)

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%)

This is a different test. It seems it needs similar fix.

@yxsamliu
Copy link
Collaborator Author

yxsamliu commented Dec 7, 2023

fix another two tests by #74783

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

clang-offload-bundler-zlib.c test behaves inconsistently in multistage ppc test bots
4 participants