[clang] [LinkerWrapper] Pass all files to the device linker (PR #97573)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 23 12:12:54 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `clang` at step 7 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/3960

Here is the relevant piece of the build log for the reference:
```
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: Driver/linker-wrapper-passes.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 8: mkdir -p /build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
+ mkdir -p /build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
RUN: at line 9: /build/buildbot/premerge-monolithic-linux/build/bin/clang -cc1 -emit-llvm-bc -o /build/buildbot/premerge-monolithic-linux/build/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 /build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /build/buildbot/premerge-monolithic-linux/build/bin/clang -cc1 -emit-llvm-bc -o /build/buildbot/premerge-monolithic-linux/build/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 /build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 11: /build/buildbot/premerge-monolithic-linux/build/bin/clang -cc1 -emit-llvm-bc -o /build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -disable-O0-optnone -triple=amdgcn-amd-amdhsa /build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /build/buildbot/premerge-monolithic-linux/build/bin/clang -cc1 -emit-llvm-bc -o /build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -disable-O0-optnone -triple=amdgcn-amd-amdhsa /build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 13: /build/buildbot/premerge-monolithic-linux/build/bin/opt /build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -passes=forceattrs -force-remove-attribute=f:noinline
+ /build/buildbot/premerge-monolithic-linux/build/bin/opt /build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -passes=forceattrs -force-remove-attribute=f:noinline
RUN: at line 15: /build/buildbot/premerge-monolithic-linux/build/bin/clang-offload-packager -o /build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      --image=file=/build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
+ /build/buildbot/premerge-monolithic-linux/build/bin/clang-offload-packager -o /build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out --image=file=/build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
RUN: at line 17: /build/buildbot/premerge-monolithic-linux/build/bin/clang -cc1 -S -o /build/buildbot/premerge-monolithic-linux/build/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=/build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      /build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
+ /build/buildbot/premerge-monolithic-linux/build/bin/clang -cc1 -S -o /build/buildbot/premerge-monolithic-linux/build/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=/build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out /build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
RUN: at line 21: /build/buildbot/premerge-monolithic-linux/build/bin/clang -cc1as -o /build/buildbot/premerge-monolithic-linux/build/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      /build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s
+ /build/buildbot/premerge-monolithic-linux/build/bin/clang -cc1as -o /build/buildbot/premerge-monolithic-linux/build/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 /build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s
RUN: at line 26: /build/buildbot/premerge-monolithic-linux/build/bin/clang-linker-wrapper -o a.out --embed-bitcode      --linker-path=/usr/bin/true /build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o      --offload-opt=-load-pass-plugin=/build/buildbot/premerge-monolithic-linux/build/lib/Bye.so --offload-opt=-wave-goodbye      --offload-opt=-passes="function(goodbye),module(inline)" 2>&1 |    /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck -match-full-lines -check-prefixes=OUT /build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck -match-full-lines -check-prefixes=OUT /build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /build/buildbot/premerge-monolithic-linux/build/bin/clang-linker-wrapper -o a.out --embed-bitcode --linker-path=/usr/bin/true /build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o --offload-opt=-load-pass-plugin=/build/buildbot/premerge-monolithic-linux/build/lib/Bye.so --offload-opt=-wave-goodbye '--offload-opt=-passes=function(goodbye),module(inline)'
/build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/Driver/linker-wrapper-passes.c:51:9: error: OUT: expected string not found in input
// OUT: Bye: f
        ^
<stdin>:1:1: note: scanning from here
clang: error: cannot determine amdgcn architecture: /build/buildbot/premerge-monolithic-linux/build/bin/amdgpu-arch: ; consider passing it via '-mcpu'
^
<stdin>:1:45: note: possible intended match here
clang: error: cannot determine amdgcn architecture: /build/buildbot/premerge-monolithic-linux/build/bin/amdgpu-arch: ; consider passing it via '-mcpu'
                                            ^

Input file: <stdin>
Check file: /build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/Driver/linker-wrapper-passes.c

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            1: clang: error: cannot determine amdgcn architecture: /build/buildbot/premerge-monolithic-linux/build/bin/amdgpu-arch: ; consider passing it via '-mcpu' 
check:51'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
check:51'1                                                 ?                                                                                                           possible intended match
            2: /build/buildbot/premerge-monolithic-linux/build/bin/clang-linker-wrapper: error: 'clang' failed 
check:51'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>

--

********************


```

https://github.com/llvm/llvm-project/pull/97573


More information about the cfe-commits mailing list