[clang] [HIP][Driver] Use alternative `/lib64` or `/lib` depending on `amdhsa64` library location (PR #211587)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 24 08:54:49 PDT 2026
Juan Manuel Martinez =?utf-8?q?CaamaƱo?Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/211587 at github.com>
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 90519 tests passed
* 1712 tests skipped
* 2 tests failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.ClangScanDeps/logging-two-threads.c (Likely Already Failing)</summary>
This test is flaky in main.
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 5
rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/logging-two-threads.c.tmp
# executed command: rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/logging-two-threads.c.tmp
# note: command had no output on stdout or stderr
# RUN: at line 6
split-file /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/ClangScanDeps/logging-two-threads.c /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/logging-two-threads.c.tmp
# executed command: split-file /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/ClangScanDeps/logging-two-threads.c /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/logging-two-threads.c.tmp
# note: command had no output on stdout or stderr
# RUN: at line 7
sed -e "s|DIR|/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/logging-two-threads.c.tmp|g" /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/logging-two-threads.c.tmp/cdb.json.template > /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/logging-two-threads.c.tmp/cdb.json
# executed command: sed -e 's|DIR|/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/logging-two-threads.c.tmp|g' /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/logging-two-threads.c.tmp/cdb.json.template
# note: command had no output on stdout or stderr
# RUN: at line 9
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-scan-deps -compilation-database /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/logging-two-threads.c.tmp/cdb.json -format experimental-full -log-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/logging-two-threads.c.tmp/scan.log -j 2 -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/logging-two-threads.c.tmp/deps.json
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-scan-deps -compilation-database /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/logging-two-threads.c.tmp/cdb.json -format experimental-full -log-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/logging-two-threads.c.tmp/scan.log -j 2 -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/logging-two-threads.c.tmp/deps.json
# note: command had no output on stdout or stderr
# RUN: at line 13
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/ClangScanDeps/logging-two-threads.c --check-prefix=TU1 < /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/logging-two-threads.c.tmp/scan.log
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/ClangScanDeps/logging-two-threads.c --check-prefix=TU1
# note: command had no output on stdout or stderr
# RUN: at line 14
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/ClangScanDeps/logging-two-threads.c --check-prefix=TU2 < /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/logging-two-threads.c.tmp/scan.log
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/ClangScanDeps/logging-two-threads.c --check-prefix=TU2
# note: command had no output on stdout or stderr
# RUN: at line 24
grep -c "pcm_compile:" /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/logging-two-threads.c.tmp/scan.log | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/ClangScanDeps/logging-two-threads.c --check-prefix=COMPILES
# executed command: grep -c pcm_compile: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/logging-two-threads.c.tmp/scan.log
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/ClangScanDeps/logging-two-threads.c --check-prefix=COMPILES
# note: command had no output on stdout or stderr
# RUN: at line 25
grep -c "pcm_write:" /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/logging-two-threads.c.tmp/scan.log | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/ClangScanDeps/logging-two-threads.c --check-prefix=PCMWRITES
# executed command: grep -c pcm_write: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/logging-two-threads.c.tmp/scan.log
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/ClangScanDeps/logging-two-threads.c --check-prefix=PCMWRITES
# note: command had no output on stdout or stderr
# RUN: at line 26
grep -c "timestamp_write:" /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/logging-two-threads.c.tmp/scan.log | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/ClangScanDeps/logging-two-threads.c --check-prefix=TSWRITES
# executed command: grep -c timestamp_write: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/logging-two-threads.c.tmp/scan.log
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/ClangScanDeps/logging-two-threads.c --check-prefix=TSWRITES
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/ClangScanDeps/logging-two-threads.c:29:14: error: TSWRITES: expected string not found in input
# | // TSWRITES: {{^2$}}
# | ^
# | <stdin>:1:1: note: scanning from here
# | 3
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/ClangScanDeps/logging-two-threads.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: 3
# | check:29'0 { } search range (exclusive bounds)
# | check:29'1 error: no match found in search range
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.Driver/rocm-detect.hip</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 8
not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -### -v --target=x86_64-linux-gnu --cuda-gpu-arch=gfx902 --rocm-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=COMMON,GFX902-DEFAULTLIBS /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# executed command: not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang '-###' -v --target=x86_64-linux-gnu --cuda-gpu-arch=gfx902 --rocm-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=COMMON,GFX902-DEFAULTLIBS /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# note: command had no output on stdout or stderr
# RUN: at line 13
not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -### -v --target=x86_64-linux-gnu --cuda-gpu-arch=gfx902 -nostdlib --rocm-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=COMMON,GFX902-DEFAULTLIBS /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# executed command: not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang '-###' -v --target=x86_64-linux-gnu --cuda-gpu-arch=gfx902 -nostdlib --rocm-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=COMMON,GFX902-DEFAULTLIBS /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# note: command had no output on stdout or stderr
# RUN: at line 17
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -### -v -target x86_64-linux-gnu --cuda-gpu-arch=gfx902 -nogpulib --rocm-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=COMMON,NODEFAULTLIBS /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang '-###' -v -target x86_64-linux-gnu --cuda-gpu-arch=gfx902 -nogpulib --rocm-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=COMMON,NODEFAULTLIBS /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# note: command had no output on stdout or stderr
# RUN: at line 22
env ROCM_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -### --target=x86_64-linux-gnu --print-rocm-search-dirs --offload-arch=gfx1010 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=ROCM-ENV /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# executed command: env ROCM_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang '-###' --target=x86_64-linux-gnu --print-rocm-search-dirs --offload-arch=gfx1010 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=ROCM-ENV /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# note: command had no output on stdout or stderr
# RUN: at line 30
rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip
# executed command: rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip
# note: command had no output on stdout or stderr
# RUN: at line 31
mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip
# executed command: mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip
# note: command had no output on stdout or stderr
# RUN: at line 32
cp -R /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm/bin /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip
# executed command: cp -R /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm/bin /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip
# note: command had no output on stdout or stderr
# RUN: at line 35
env ROCM_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm HIP_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -### -target x86_64-linux-gnu --offload-arch=gfx1010 --print-rocm-search-dirs /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=ROCM-ENV,HIP-PATH /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# executed command: env ROCM_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm HIP_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang '-###' -target x86_64-linux-gnu --offload-arch=gfx1010 --print-rocm-search-dirs /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=ROCM-ENV,HIP-PATH /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# note: command had no output on stdout or stderr
# RUN: at line 41
env ROCM_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -### -target x86_64-linux-gnu --offload-arch=gfx1010 --hip-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip --print-rocm-search-dirs /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=ROCM-ENV,HIP-PATH /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# executed command: env ROCM_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang '-###' -target x86_64-linux-gnu --offload-arch=gfx1010 --hip-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip --print-rocm-search-dirs /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=ROCM-ENV,HIP-PATH /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# note: command had no output on stdout or stderr
# RUN: at line 48
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -### -target x86_64-linux-gnu --offload-arch=gfx1010 --hip-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip --rocm-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm --print-rocm-search-dirs /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=ROCM-ENV,HIP-PATH /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang '-###' -target x86_64-linux-gnu --offload-arch=gfx1010 --hip-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip --rocm-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm --print-rocm-search-dirs /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=ROCM-ENV,HIP-PATH /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# note: command had no output on stdout or stderr
# RUN: at line 54
env HIP_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -### -target x86_64-linux-gnu --offload-arch=gfx1010 --rocm-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm --print-rocm-search-dirs /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=ROCM-ENV,HIP-PATH /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# executed command: env HIP_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang '-###' -target x86_64-linux-gnu --offload-arch=gfx1010 --rocm-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm --print-rocm-search-dirs /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=ROCM-ENV,HIP-PATH /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# note: command had no output on stdout or stderr
# RUN: at line 60
env HIP_PATH= /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -### -target x86_64-linux-gnu --offload-arch=gfx1010 --rocm-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm --print-rocm-search-dirs /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=ROCM-PATH /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# executed command: env HIP_PATH= /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang '-###' -target x86_64-linux-gnu --offload-arch=gfx1010 --rocm-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm --print-rocm-search-dirs /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=ROCM-PATH /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# note: command had no output on stdout or stderr
# RUN: at line 67
rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip
# executed command: rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip
# note: command had no output on stdout or stderr
# RUN: at line 68
rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip_nouse
# executed command: rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip_nouse
# note: command had no output on stdout or stderr
# RUN: at line 69
mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip
# executed command: mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip
# note: command had no output on stdout or stderr
# RUN: at line 70
mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip_nouse
# executed command: mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip_nouse
# note: command had no output on stdout or stderr
# RUN: at line 71
cp -R /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm/bin /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip
# executed command: cp -R /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm/bin /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip
# note: command had no output on stdout or stderr
# RUN: at line 72
cp -R /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm/bin /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip_nouse
# executed command: cp -R /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm/bin /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip_nouse
# note: command had no output on stdout or stderr
# RUN: at line 73
env ROCM_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm HIP_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip_nouse /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -### -target x86_64-linux-gnu --offload-arch=gfx1010 --hip-link --hip-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip --print-rocm-search-dirs /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=ROCM-ENV,HIP-PATH /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# executed command: env ROCM_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm HIP_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip_nouse /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang '-###' -target x86_64-linux-gnu --offload-arch=gfx1010 --hip-link --hip-path=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/myhip --print-rocm-search-dirs /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=ROCM-ENV,HIP-PATH /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# note: command had no output on stdout or stderr
# RUN: at line 79
rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/*
# executed command: rm -rf '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/*'
# note: command had no output on stdout or stderr
# RUN: at line 80
cp -R /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr
# executed command: cp -R /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/rocm /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr
# note: command had no output on stdout or stderr
# RUN: at line 81
mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/share/hip
# executed command: mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/share/hip
# note: command had no output on stdout or stderr
# RUN: at line 82
mv /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/bin/.hipVersion /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/share/hip/version
# executed command: mv /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/bin/.hipVersion /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/share/hip/version
# note: command had no output on stdout or stderr
# RUN: at line 83
mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/local
# executed command: mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/local
# note: command had no output on stdout or stderr
# RUN: at line 84
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -### --target=x86_64-linux-gnu --offload-arch=gfx1010 --sysroot=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp --print-rocm-search-dirs --hip-link /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=USR /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang '-###' --target=x86_64-linux-gnu --offload-arch=gfx1010 --sysroot=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp --print-rocm-search-dirs --hip-link /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=USR /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip:117:9: error: USR: expected string not found in input
# | // USR: "[[ROCM_PATH]]/lib/libamdhip64.so"
# | ^
# | <stdin>:18:2552: note: scanning from here
# | "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-24" "-cc1" "-triple" "amdgcn-amd-amdhsa" "-aux-triple" "x86_64-unknown-linux-gnu" "-Werror=atomic-alignment" "-emit-llvm-bc" "-flto=full" "-flto-unit" "-dumpdir" "a-" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "rocm-detect.hip" "-mrelocation-model" "pic" "-pic-level" "2" "-fhalf-no-semantic-interposition" "-mframe-pointer=all" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-aux-target-cpu" "x86-64" "-fcuda-is-device" "-fno-threadsafe-statics" "-mllvm" "-amdgpu-internalize-symbols" "-fvisibility=hidden" "-fapply-global-visibility-to-externs" "-mlink-builtin-bitcode" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/amdgcn/bitcode/ocml.bc" "-mlink-builtin-bitcode" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/amdgcn/bitcode/ockl.bc" "-mlink-builtin-bitcode" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/amdgcn/bitcode/oclc_unsafe_math_off.bc" "-mlink-builtin-bitcode" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/amdgcn/bitcode/oclc_finite_only_off.bc" "-mlink-builtin-bitcode" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/amdgcn/bitcode/oclc_wavefrontsize64_off.bc" "-mlink-builtin-bitcode" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/amdgcn/bitcode/oclc_isa_version_1010.bc" "-mlink-builtin-bitcode" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/amdgcn/bitcode/oclc_abi_version_600.bc" "-target-cpu" "gfx1010" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver" "-fcoverage-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver" "-resource-dir" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24" "-internal-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include/cuda_wrappers" "-idirafter" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/include" "-include" "__clang_hip_runtime_wrapper.h" "-isysroot" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp" "-internal-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include" "-internal-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/local/include" "-internal-externc-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/include" "-internal-externc-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/include" "-internal-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include" "-internal-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/local/include" "-internal-externc-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/include" "-internal-externc-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/include" "-fdeprecated-macro" "-fno-autolink" "-ferror-limit" "19" "--offload-new-driver" "-fhip-new-launch-api" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fcxx-exceptions" "-fexceptions" "-cuid=5ceeea49980bd27c" "-fcuda-allow-variadic-functions" "-faddrsig" "-fdwarf2-cfi-asm" "-o" "/tmp/lit-tmp-1th4sh6c/rocm-detect-gfx1010-645fb6.o" "-x" "hip" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip"
# | ^
# | <stdin>:18:2552: note: with "ROCM_PATH" equal to "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr"
# | "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-24" "-cc1" "-triple" "amdgcn-amd-amdhsa" "-aux-triple" "x86_64-unknown-linux-gnu" "-Werror=atomic-alignment" "-emit-llvm-bc" "-flto=full" "-flto-unit" "-dumpdir" "a-" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "rocm-detect.hip" "-mrelocation-model" "pic" "-pic-level" "2" "-fhalf-no-semantic-interposition" "-mframe-pointer=all" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-aux-target-cpu" "x86-64" "-fcuda-is-device" "-fno-threadsafe-statics" "-mllvm" "-amdgpu-internalize-symbols" "-fvisibility=hidden" "-fapply-global-visibility-to-externs" "-mlink-builtin-bitcode" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/amdgcn/bitcode/ocml.bc" "-mlink-builtin-bitcode" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/amdgcn/bitcode/ockl.bc" "-mlink-builtin-bitcode" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/amdgcn/bitcode/oclc_unsafe_math_off.bc" "-mlink-builtin-bitcode" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/amdgcn/bitcode/oclc_finite_only_off.bc" "-mlink-builtin-bitcode" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/amdgcn/bitcode/oclc_wavefrontsize64_off.bc" "-mlink-builtin-bitcode" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/amdgcn/bitcode/oclc_isa_version_1010.bc" "-mlink-builtin-bitcode" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/amdgcn/bitcode/oclc_abi_version_600.bc" "-target-cpu" "gfx1010" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver" "-fcoverage-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver" "-resource-dir" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24" "-internal-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include/cuda_wrappers" "-idirafter" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/include" "-include" "__clang_hip_runtime_wrapper.h" "-isysroot" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp" "-internal-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include" "-internal-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/usr/local/includ
# | ...
# `---data was truncated (10240/50457) (change limit with -D output_limit=N)
# 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/211587
More information about the cfe-commits
mailing list