[clang] [Clang] Correctly forward `--cuda-path` to the nvlink wrapper (PR #100170)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 23 12:58:11 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-cmake-x86_64-avx512-linux` running on `avx512-intel64` while building `clang` at step 7 "ninja check 1".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/133/builds/2095
Here is the relevant piece of the build log for the reference:
```
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'Clang :: Driver/linker-wrapper-passes.c' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
RUN: at line 4: mkdir -p /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
+ mkdir -p /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
RUN: at line 5: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/clang -cc1 -emit-llvm-bc -o /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc -disable-O0-optnone -triple=x86_64-unknown-linux-gnu /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Driver/linker-wrapper-passes.c
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/clang -cc1 -emit-llvm-bc -o /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc -disable-O0-optnone -triple=x86_64-unknown-linux-gnu /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 7: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/clang -cc1 -emit-llvm-bc -o /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -disable-O0-optnone -triple=amdgcn-amd-amdhsa /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Driver/linker-wrapper-passes.c
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/clang -cc1 -emit-llvm-bc -o /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -disable-O0-optnone -triple=amdgcn-amd-amdhsa /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 9: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/opt /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -passes=forceattrs -force-remove-attribute=f:noinline
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/opt /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -passes=forceattrs -force-remove-attribute=f:noinline
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/opt: WARNING: failed to create target machine for 'amdgcn-amd-amdhsa': unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
RUN: at line 11: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/clang-offload-packager -o /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out --image=file=/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/clang-offload-packager -o /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out --image=file=/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
RUN: at line 13: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/clang -cc1 -S -o /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -fembed-offload-object=/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/clang -cc1 -S -o /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -fembed-offload-object=/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
RUN: at line 17: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/clang -cc1as -o /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o -triple x86_64-unknown-linux-gnu -filetype obj -target-cpu x86-64 /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/clang -cc1as -o /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o -triple x86_64-unknown-linux-gnu -filetype obj -target-cpu x86-64 /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s
RUN: at line 22: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/clang-linker-wrapper -o a.out --embed-bitcode --dry-run --linker-path=/usr/bin/true /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o --offload-opt=-load-pass-plugin=/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/lib/Bye.so --offload-opt=-wave-goodbye --offload-opt=-passes="function(goodbye),module(inline)" 2>&1 | /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/FileCheck -match-full-lines -check-prefixes=OUT /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Driver/linker-wrapper-passes.c
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/clang-linker-wrapper -o a.out --embed-bitcode --dry-run --linker-path=/usr/bin/true /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o --offload-opt=-load-pass-plugin=/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/lib/Bye.so --offload-opt=-wave-goodbye '--offload-opt=-passes=function(goodbye),module(inline)'
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/FileCheck -match-full-lines -check-prefixes=OUT /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Driver/linker-wrapper-passes.c
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Driver/linker-wrapper-passes.c:47:9: error: OUT: expected string not found in input
// OUT: Bye: f
^
<stdin>:1:1: note: scanning from here
"/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/clang" --no-default-config -o /tmp/lit-tmp-12r6nwms/a.out.amdgcn.native-12a6e5.img --target=amdgcn-amd-amdhsa -mcpu=native -O2 -Wl,--no-undefined /tmp/lit-tmp-12r6nwms/host-x86_64-unknown-linux-gnu-amdgcn-amd-amdhsa--c76503.o -Wl,--lto-emit-llvm
^
<stdin>:1:217: note: possible intended match here
"/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/clang" --no-default-config -o /tmp/lit-tmp-12r6nwms/a.out.amdgcn.native-12a6e5.img --target=amdgcn-amd-amdhsa -mcpu=native -O2 -Wl,--no-undefined /tmp/lit-tmp-12r6nwms/host-x86_64-unknown-linux-gnu-amdgcn-amd-amdhsa--c76503.o -Wl,--lto-emit-llvm
^
Input file: <stdin>
Check file: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Driver/linker-wrapper-passes.c
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: "/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/clang" --no-default-config -o /tmp/lit-tmp-12r6nwms/a.out.amdgcn.native-12a6e5.img --target=amdgcn-amd-amdhsa -mcpu=native -O2 -Wl,--no-undefined /tmp/lit-tmp-12r6nwms/host-x86_64-unknown-linux-gnu-amdgcn-amd-amdhsa--c76503.o -Wl,--lto-emit-llvm
check:47'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
check:47'1 ? possible intended match
2: "/usr/bin/true" -o a.out /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o
check:47'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>
--
********************
```
https://github.com/llvm/llvm-project/pull/100170
More information about the cfe-commits
mailing list