[clang] [clang][Driver] Add ROCm lib/llvm/bin detection test (PR #169705)

via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 26 10:34:16 PST 2025


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 84763 tests passed
* 1118 tests skipped
* 1 test failed

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

### Clang
<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
# note: command had no output on stdout or stderr
# RUN: at line 89
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 90
mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/opt
# executed command: mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/opt
# note: command had no output on stdout or stderr
# RUN: at line 91
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/opt/rocm-3.9.0-1234
# 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/opt/rocm-3.9.0-1234
# note: command had no output on stdout or stderr
# RUN: at line 92
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/opt/rocm-3.10.0
# 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/opt/rocm-3.10.0
# note: command had no output on stdout or stderr
# RUN: at line 93
/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 /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-REL /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 /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-REL /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 101
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 102
mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/sysroot/opt/rocm/lib/llvm/bin
# executed command: mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/sysroot/opt/rocm/lib/llvm/bin
# note: command had no output on stdout or stderr
# RUN: at line 106
cp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/sysroot/opt/rocm/lib/llvm/bin/clang
# executed command: cp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/sysroot/opt/rocm/lib/llvm/bin/clang
# note: command had no output on stdout or stderr
# RUN: at line 107
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/sysroot/opt/rocm/lib/llvm/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-LIB-LLVM /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/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/sysroot/opt/rocm/lib/llvm/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
# error: command failed with exit status: 1
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=ROCM-LIB-LLVM /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:136:19: error: ROCM-LIB-LLVM: expected string not found in input
# | // ROCM-LIB-LLVM: ROCm installation search path: {{.*sysroot/opt/rocm$}}
# |                   ^
# | <stdin>:1:1: note: scanning from here
# | clang version 22.0.0git (https://github.com/llvm/llvm-project 35247c2cf5af238fe9767acfd4a6847617981805)
# | ^
# | <stdin>:9:1: note: possible intended match here
# | ROCm installation search path: /opt/rocm
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/rocm-detect.hip
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |              1: clang version 22.0.0git (https://github.com/llvm/llvm-project 35247c2cf5af238fe9767acfd4a6847617981805) 
# | check:136'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |              2: Target: x86_64-unknown-linux-gnu 
# | check:136'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              3: Thread model: posix 
# | check:136'0     ~~~~~~~~~~~~~~~~~~~~
# |              4: InstalledDir: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/sysroot/opt/rocm/lib/llvm/bin 
# | check:136'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              5: Build config: +assertions 
# | check:136'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              6: ROCm installation search path: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/sysroot/opt/rocm/lib 
# | check:136'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              7: ROCm installation search path: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/sysroot/opt/rocm/lib/llvm 
# | check:136'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              8: ROCm installation search path: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/sysroot/opt/rocm/lib/llvm/lib/clang/22 
# | check:136'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              9: ROCm installation search path: /opt/rocm 
# | check:136'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:136'1     ?                                         possible intended match
# |             10: ROCm installation search path: /usr/local 
# | check:136'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             11: ROCm installation search path: /usr 
# | check:136'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             12: clang: error: cannot find ROCm device library; provide its path via '--rocm-path' or '--rocm-device-lib-path', or pass '-nogpulib' to build without ROCm device library 
# | check:136'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             13: clang: error: cannot find HIP runtime; provide its path via '--rocm-path', or pass '-nogpuinc' to build without HIP runtime 
# | check:136'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             14: ROCm installation search path: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/rocm-detect.hip.tmp/sysroot/opt/rocm/lib 
# | check:136'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# | >>>>>>
# `-----------------------------
# 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/169705


More information about the cfe-commits mailing list