Skip to content

Conversation

@jhuber6
Copy link
Contributor

@jhuber6 jhuber6 commented Jul 23, 2024

Summary:
This was not forwarded properly as it would try to pass it to nvlink.

Fixes #100168

@jhuber6 jhuber6 requested a review from Artem-B July 23, 2024 17:38
@llvmbot llvmbot added clang Clang issues not falling into any other category clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' labels Jul 23, 2024
@llvmbot
Copy link
Member

llvmbot commented Jul 23, 2024

@llvm/pr-subscribers-clang-driver

@llvm/pr-subscribers-clang

Author: Joseph Huber (jhuber6)

Changes

Summary:
This was not forwarded properly as it would try to pass it to nvlink.

Fixes #100168


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

3 Files Affected:

  • (modified) clang/lib/Driver/ToolChains/Cuda.cpp (+4)
  • (modified) clang/test/Driver/nvlink-wrapper.c (+7)
  • (modified) clang/tools/clang-nvlink-wrapper/NVLinkOpts.td (+2-2)
diff --git a/clang/lib/Driver/ToolChains/Cuda.cpp b/clang/lib/Driver/ToolChains/Cuda.cpp
index 59453c484ae4f..61d12b10dfb62 100644
--- a/clang/lib/Driver/ToolChains/Cuda.cpp
+++ b/clang/lib/Driver/ToolChains/Cuda.cpp
@@ -609,6 +609,10 @@ void NVPTX::Linker::ConstructJob(Compilation &C, const JobAction &JA,
     CmdArgs.push_back(Args.MakeArgString(
         "--pxtas-path=" + Args.getLastArgValue(options::OPT_ptxas_path_EQ)));
 
+  if (Args.hasArg(options::OPT_cuda_path_EQ))
+    CmdArgs.push_back(Args.MakeArgString(
+        "--cuda-path=" + Args.getLastArgValue(options::OPT_cuda_path_EQ)));
+
   // Add paths specified in LIBRARY_PATH environment variable as -L options.
   addDirectoryList(Args, CmdArgs, "-L", "LIBRARY_PATH");
 
diff --git a/clang/test/Driver/nvlink-wrapper.c b/clang/test/Driver/nvlink-wrapper.c
index fdda93f1f9cdc..318315ddaca34 100644
--- a/clang/test/Driver/nvlink-wrapper.c
+++ b/clang/test/Driver/nvlink-wrapper.c
@@ -63,3 +63,10 @@ int baz() { return y + x; }
 // RUN:   -arch sm_52 -o a.out 2>&1 | FileCheck %s --check-prefix=LTO
 // LTO: ptxas{{.*}} -m64 -c [[PTX:.+]].s -O3 -arch sm_52 -o [[CUBIN:.+]].cubin
 // LTO: nvlink{{.*}} -arch sm_52 -o a.out [[CUBIN]].cubin {{.*}}-u-{{.*}}.cubin {{.*}}-y-{{.*}}.cubin
+
+//
+// Check that we don't forward some arguments.
+//
+// RUN: clang-nvlink-wrapper --dry-run %t.o %t-u.o %t-y.a \
+// RUN:   -arch sm_52 --cuda-path/opt/cuda -o a.out 2>&1 | FileCheck %s --check-prefix=PATH
+// PATH-NOT: --cuda-path=/opt/cuda
diff --git a/clang/tools/clang-nvlink-wrapper/NVLinkOpts.td b/clang/tools/clang-nvlink-wrapper/NVLinkOpts.td
index e84b530f2787d..8c80a51b12a44 100644
--- a/clang/tools/clang-nvlink-wrapper/NVLinkOpts.td
+++ b/clang/tools/clang-nvlink-wrapper/NVLinkOpts.td
@@ -12,9 +12,9 @@ def verbose : Flag<["-"], "v">, HelpText<"Print verbose information">;
 def version : Flag<["--"], "version">,
   HelpText<"Display the version number and exit">;
 
-def cuda_path_EQ : Joined<["--"], "cuda-path=">,
+def cuda_path_EQ : Joined<["--"], "cuda-path=">, Flags<[WrapperOnlyOption]>,
   MetaVarName<"<dir>">, HelpText<"Set the system CUDA path">;
-def ptxas_path_EQ : Joined<["--"], "ptxas-path=">,
+def ptxas_path_EQ : Joined<["--"], "ptxas-path=">, Flags<[WrapperOnlyOption]>,
   MetaVarName<"<dir>">, HelpText<"Set the 'ptxas' path">;
 
 def o : JoinedOrSeparate<["-"], "o">, MetaVarName<"<path>">,

@jhuber6 jhuber6 requested review from arsenm and shiltian July 23, 2024 17:47
Summary:
This was not forwarded properly as it would try to pass it to `nvlink`.

Fixes llvm#100168
@jhuber6 jhuber6 merged commit 7e1fcf5 into llvm:main Jul 23, 2024
@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 23, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-sie-ubuntu-fast running on sie-linux-worker while building clang at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference:

Step 6 (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 4: mkdir -p /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
+ mkdir -p /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
RUN: at line 5: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -emit-llvm-bc -o /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/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 /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -emit-llvm-bc -o /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/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 /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 7: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -emit-llvm-bc -o /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -disable-O0-optnone -triple=amdgcn-amd-amdhsa /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -emit-llvm-bc -o /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -disable-O0-optnone -triple=amdgcn-amd-amdhsa /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 9: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -passes=forceattrs -force-remove-attribute=f:noinline
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -passes=forceattrs -force-remove-attribute=f:noinline
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/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: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang-offload-packager -o /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      --image=file=/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang-offload-packager -o /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out --image=file=/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
RUN: at line 13: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -S -o /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/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=/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -S -o /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/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=/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
warning: overriding the module target triple with x86_64-scei-ps4 [-Woverride-module]
1 warning generated.
RUN: at line 17: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1as -o /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/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      /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1as -o /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/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 /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s
RUN: at line 22: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang-linker-wrapper -o a.out --embed-bitcode --dry-run      --linker-path=/usr/bin/true /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o      --offload-opt=-load-pass-plugin=/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/Bye.so --offload-opt=-wave-goodbye      --offload-opt=-passes="function(goodbye),module(inline)" 2>&1 |    /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck -match-full-lines -check-prefixes=OUT /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang-linker-wrapper -o a.out --embed-bitcode --dry-run --linker-path=/usr/bin/true /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o --offload-opt=-load-pass-plugin=/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/Bye.so --offload-opt=-wave-goodbye '--offload-opt=-passes=function(goodbye),module(inline)'
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck -match-full-lines -check-prefixes=OUT /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/linker-wrapper-passes.c
�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/linker-wrapper-passes.c:47:9: �[0m�[0;1;31merror: �[0m�[1mOUT: expected string not found in input
�[0m// OUT: Bye: f
�[0;1;32m        ^
�[0m�[1m<stdin>:1:1: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0mLLVM ERROR: Could not load library '/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/Bye.so': /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/Bye.so: cannot open shared object file: No such file or directory
�[0;1;32m^
�[0m�[1m<stdin>:1:224: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0mLLVM ERROR: Could not load library '/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/Bye.so': /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/Bye.so: cannot open shared object file: No such file or directory
�[0;1;32m                                                                                                                                                                                                                               ^
�[0m
Input file: <stdin>
Check file: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Driver/linker-wrapper-passes.c

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

Input was:
<<<<<<
�[1m�[0m�[0;1;30m            1: �[0m�[1m�[0;1;46mLLVM ERROR: Could not load library '/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/Bye.so': /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/Bye.so: cannot open shared object file: No such file or directory �[0m
�[0;1;31mcheck:47'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
�[0m�[0;1;35mcheck:47'1                                                                                                                                                                                                                                    ?                                  possible intended match
�[0m�[0;1;30m            2: �[0m�[1m�[0;1;46m �[0m
�[0;1;31mcheck:47'0     ~
�[0m>>>>>>

--
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 23, 2024

LLVM Buildbot has detected a new failure on builder openmp-offload-sles-build-only running on rocm-worker-hw-04-sles while building clang at step 6 "Add check check-clang".

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

Here is the relevant piece of the build log for the reference:

Step 6 (Add check check-clang) failure: test (failure)
******************** TEST 'Clang :: Driver/linker-wrapper-passes.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 4: mkdir -p /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
+ mkdir -p /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
RUN: at line 5: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -emit-llvm-bc -o /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.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 /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Driver/linker-wrapper-passes.c
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -emit-llvm-bc -o /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.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 /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 7: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -emit-llvm-bc -o /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -disable-O0-optnone -triple=amdgcn-amd-amdhsa /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Driver/linker-wrapper-passes.c
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -emit-llvm-bc -o /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -disable-O0-optnone -triple=amdgcn-amd-amdhsa /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 9: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/opt /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -passes=forceattrs -force-remove-attribute=f:noinline
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/opt /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.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 11: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang-offload-packager -o /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      --image=file=/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang-offload-packager -o /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out --image=file=/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
RUN: at line 13: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -S -o /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.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=/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -S -o /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.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=/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
RUN: at line 17: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1as -o /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.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      /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1as -o /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.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 /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s
RUN: at line 22: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang-linker-wrapper -o a.out --embed-bitcode --dry-run      --linker-path=/usr/bin/true /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o      --offload-opt=-load-pass-plugin=/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/Bye.so --offload-opt=-wave-goodbye      --offload-opt=-passes="function(goodbye),module(inline)" 2>&1 |    /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck -match-full-lines -check-prefixes=OUT /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Driver/linker-wrapper-passes.c
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck -match-full-lines -check-prefixes=OUT /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Driver/linker-wrapper-passes.c
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang-linker-wrapper -o a.out --embed-bitcode --dry-run --linker-path=/usr/bin/true /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o --offload-opt=-load-pass-plugin=/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/Bye.so --offload-opt=-wave-goodbye '--offload-opt=-passes=function(goodbye),module(inline)'
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/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
 "/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang" --no-default-config -o /tmp/lit-tmp-6o74m6zb/a.out.amdgcn.native-2d34a0.img --target=amdgcn-amd-amdhsa -mcpu=native -O2 -Wl,--no-undefined /tmp/lit-tmp-6o74m6zb/host-x86_64-unknown-linux-gnu-amdgcn-amd-amdhsa--f20820.o -Wl,--lto-emit-llvm
^
<stdin>:1:210: note: possible intended match here
 "/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang" --no-default-config -o /tmp/lit-tmp-6o74m6zb/a.out.amdgcn.native-2d34a0.img --target=amdgcn-amd-amdhsa -mcpu=native -O2 -Wl,--no-undefined /tmp/lit-tmp-6o74m6zb/host-x86_64-unknown-linux-gnu-amdgcn-amd-amdhsa--f20820.o -Wl,--lto-emit-llvm
                                                                                                                                                                                                                 ^

Input file: <stdin>
Check file: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Driver/linker-wrapper-passes.c

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

Input was:
<<<<<<
            1:  "/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang" --no-default-config -o /tmp/lit-tmp-6o74m6zb/a.out.amdgcn.native-2d34a0.img --target=amdgcn-amd-amdhsa -mcpu=native -O2 -Wl,--no-undefined /tmp/lit-tmp-6o74m6zb/host-x86_64-unknown-linux-gnu-amdgcn-amd-amdhsa--f20820.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 /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o 
check:47'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 23, 2024

LLVM Buildbot has detected a new failure on builder arc-builder running on arc-worker while building clang at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference:

Step 6 (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 4: mkdir -p /buildbot/worker/arc-folder/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
+ mkdir -p /buildbot/worker/arc-folder/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
RUN: at line 5: /buildbot/worker/arc-folder/build/bin/clang -cc1 -emit-llvm-bc -o /buildbot/worker/arc-folder/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 /buildbot/worker/arc-folder/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /buildbot/worker/arc-folder/build/bin/clang -cc1 -emit-llvm-bc -o /buildbot/worker/arc-folder/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 /buildbot/worker/arc-folder/llvm-project/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 7: /buildbot/worker/arc-folder/build/bin/clang -cc1 -emit-llvm-bc -o /buildbot/worker/arc-folder/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -disable-O0-optnone -triple=amdgcn-amd-amdhsa /buildbot/worker/arc-folder/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /buildbot/worker/arc-folder/build/bin/clang -cc1 -emit-llvm-bc -o /buildbot/worker/arc-folder/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -disable-O0-optnone -triple=amdgcn-amd-amdhsa /buildbot/worker/arc-folder/llvm-project/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 9: /buildbot/worker/arc-folder/build/bin/opt /buildbot/worker/arc-folder/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /buildbot/worker/arc-folder/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -passes=forceattrs -force-remove-attribute=f:noinline
+ /buildbot/worker/arc-folder/build/bin/opt /buildbot/worker/arc-folder/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /buildbot/worker/arc-folder/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -passes=forceattrs -force-remove-attribute=f:noinline
/buildbot/worker/arc-folder/build/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: /buildbot/worker/arc-folder/build/bin/clang-offload-packager -o /buildbot/worker/arc-folder/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      --image=file=/buildbot/worker/arc-folder/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
+ /buildbot/worker/arc-folder/build/bin/clang-offload-packager -o /buildbot/worker/arc-folder/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out --image=file=/buildbot/worker/arc-folder/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
RUN: at line 13: /buildbot/worker/arc-folder/build/bin/clang -cc1 -S -o /buildbot/worker/arc-folder/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=/buildbot/worker/arc-folder/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      /buildbot/worker/arc-folder/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
+ /buildbot/worker/arc-folder/build/bin/clang -cc1 -S -o /buildbot/worker/arc-folder/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=/buildbot/worker/arc-folder/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out /buildbot/worker/arc-folder/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
RUN: at line 17: /buildbot/worker/arc-folder/build/bin/clang -cc1as -o /buildbot/worker/arc-folder/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      /buildbot/worker/arc-folder/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s
+ /buildbot/worker/arc-folder/build/bin/clang -cc1as -o /buildbot/worker/arc-folder/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 /buildbot/worker/arc-folder/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s
RUN: at line 22: /buildbot/worker/arc-folder/build/bin/clang-linker-wrapper -o a.out --embed-bitcode --dry-run      --linker-path=/usr/bin/true /buildbot/worker/arc-folder/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o      --offload-opt=-load-pass-plugin=/buildbot/worker/arc-folder/build/lib/Bye.so --offload-opt=-wave-goodbye      --offload-opt=-passes="function(goodbye),module(inline)" 2>&1 |    /buildbot/worker/arc-folder/build/bin/FileCheck -match-full-lines -check-prefixes=OUT /buildbot/worker/arc-folder/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /buildbot/worker/arc-folder/build/bin/clang-linker-wrapper -o a.out --embed-bitcode --dry-run --linker-path=/usr/bin/true /buildbot/worker/arc-folder/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o --offload-opt=-load-pass-plugin=/buildbot/worker/arc-folder/build/lib/Bye.so --offload-opt=-wave-goodbye '--offload-opt=-passes=function(goodbye),module(inline)'
+ /buildbot/worker/arc-folder/build/bin/FileCheck -match-full-lines -check-prefixes=OUT /buildbot/worker/arc-folder/llvm-project/clang/test/Driver/linker-wrapper-passes.c
/buildbot/worker/arc-folder/llvm-project/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
 "/buildbot/worker/arc-folder/build/bin/clang" --no-default-config -o /tmp/lit-tmp-sdtz7juh/a.out.amdgcn.native-072e51.img --target=amdgcn-amd-amdhsa -mcpu=native -O2 -Wl,--no-undefined /tmp/lit-tmp-sdtz7juh/host-x86_64-unknown-linux-gnu-amdgcn-amd-amdhsa--a7534c.o -Wl,--lto-emit-llvm
^
<stdin>:1:179: note: possible intended match here
 "/buildbot/worker/arc-folder/build/bin/clang" --no-default-config -o /tmp/lit-tmp-sdtz7juh/a.out.amdgcn.native-072e51.img --target=amdgcn-amd-amdhsa -mcpu=native -O2 -Wl,--no-undefined /tmp/lit-tmp-sdtz7juh/host-x86_64-unknown-linux-gnu-amdgcn-amd-amdhsa--a7534c.o -Wl,--lto-emit-llvm
                                                                                                                                                                                  ^

Input file: <stdin>
Check file: /buildbot/worker/arc-folder/llvm-project/clang/test/Driver/linker-wrapper-passes.c

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

Input was:
<<<<<<
            1:  "/buildbot/worker/arc-folder/build/bin/clang" --no-default-config -o /tmp/lit-tmp-sdtz7juh/a.out.amdgcn.native-072e51.img --target=amdgcn-amd-amdhsa -mcpu=native -O2 -Wl,--no-undefined /tmp/lit-tmp-sdtz7juh/host-x86_64-unknown-linux-gnu-amdgcn-amd-amdhsa--a7534c.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 /buildbot/worker/arc-folder/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o 
check:47'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>

--

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


jhuber6 added a commit that referenced this pull request Jul 23, 2024
jhuber6 added a commit that referenced this pull request Jul 23, 2024
@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 23, 2024

LLVM Buildbot has detected a new failure on builder openmp-offload-libc-amdgpu-runtime running on omp-vega20-1 while building clang at step 7 "Add check check-clang".

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

Here is the relevant piece of the build log for the reference:

Step 7 (Add check check-clang) failure: test (failure)
******************** TEST 'Clang :: Driver/linker-wrapper-passes.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 4: mkdir -p /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
+ mkdir -p /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
RUN: at line 5: /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/clang -cc1 -emit-llvm-bc -o /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.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 /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Driver/linker-wrapper-passes.c
+ /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/clang -cc1 -emit-llvm-bc -o /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.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 /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 7: /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/clang -cc1 -emit-llvm-bc -o /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -disable-O0-optnone -triple=amdgcn-amd-amdhsa /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Driver/linker-wrapper-passes.c
+ /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/clang -cc1 -emit-llvm-bc -o /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -disable-O0-optnone -triple=amdgcn-amd-amdhsa /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 9: /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/opt /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -passes=forceattrs -force-remove-attribute=f:noinline
+ /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/opt /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.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 11: /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/clang-offload-packager -o /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      --image=file=/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
+ /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/clang-offload-packager -o /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out --image=file=/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
RUN: at line 13: /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/clang -cc1 -S -o /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.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=/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
+ /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/clang -cc1 -S -o /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.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=/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
RUN: at line 17: /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/clang -cc1as -o /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.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      /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s
+ /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/clang -cc1as -o /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.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 /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s
RUN: at line 22: /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/clang-linker-wrapper -o a.out --embed-bitcode --dry-run      --linker-path=/usr/bin/true /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o      --offload-opt=-load-pass-plugin=/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/lib/Bye.so --offload-opt=-wave-goodbye      --offload-opt=-passes="function(goodbye),module(inline)" 2>&1 |    /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/FileCheck -match-full-lines -check-prefixes=OUT /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Driver/linker-wrapper-passes.c
+ /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/clang-linker-wrapper -o a.out --embed-bitcode --dry-run --linker-path=/usr/bin/true /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o --offload-opt=-load-pass-plugin=/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/lib/Bye.so --offload-opt=-wave-goodbye '--offload-opt=-passes=function(goodbye),module(inline)'
+ /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/FileCheck -match-full-lines -check-prefixes=OUT /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Driver/linker-wrapper-passes.c
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/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
 "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/clang" --no-default-config -o /tmp/lit-tmp-mom11e7k/a.out.amdgcn.native-393d6e.img --target=amdgcn-amd-amdhsa -mcpu=native -O2 -Wl,--no-undefined /tmp/lit-tmp-mom11e7k/host-x86_64-unknown-linux-gnu-amdgcn-amd-amdhsa--f109f6.o -Wl,--lto-emit-llvm
^
<stdin>:1:212: note: possible intended match here
 "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/clang" --no-default-config -o /tmp/lit-tmp-mom11e7k/a.out.amdgcn.native-393d6e.img --target=amdgcn-amd-amdhsa -mcpu=native -O2 -Wl,--no-undefined /tmp/lit-tmp-mom11e7k/host-x86_64-unknown-linux-gnu-amdgcn-amd-amdhsa--f109f6.o -Wl,--lto-emit-llvm
                                                                                                                                                                                                                   ^

Input file: <stdin>
Check file: /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Driver/linker-wrapper-passes.c

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

Input was:
<<<<<<
            1:  "/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/clang" --no-default-config -o /tmp/lit-tmp-mom11e7k/a.out.amdgcn.native-393d6e.img --target=amdgcn-amd-amdhsa -mcpu=native -O2 -Wl,--no-undefined /tmp/lit-tmp-mom11e7k/host-x86_64-unknown-linux-gnu-amdgcn-amd-amdhsa--f109f6.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 /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o 
check:47'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 23, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-aarch64-darwin running on doug-worker-4 while building clang at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference:

Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: Driver/linker-wrapper-passes.c' FAILED ********************
Exit Code: 70

Command Output (stderr):
--
RUN: at line 4: mkdir -p /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
+ mkdir -p /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
RUN: at line 5: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -emit-llvm-bc -o /Users/buildbot/buildbot-root/aarch64-darwin/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 /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -emit-llvm-bc -o /Users/buildbot/buildbot-root/aarch64-darwin/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 /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 7: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -emit-llvm-bc -o /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -disable-O0-optnone -triple=amdgcn-amd-amdhsa /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -emit-llvm-bc -o /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -disable-O0-optnone -triple=amdgcn-amd-amdhsa /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 9: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -passes=forceattrs -force-remove-attribute=f:noinline
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -passes=forceattrs -force-remove-attribute=f:noinline
/Users/buildbot/buildbot-root/aarch64-darwin/build/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: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang-offload-packager -o /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      --image=file=/Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang-offload-packager -o /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out --image=file=/Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
RUN: at line 13: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -S -o /Users/buildbot/buildbot-root/aarch64-darwin/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=/Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -S -o /Users/buildbot/buildbot-root/aarch64-darwin/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=/Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
warning: overriding the module target triple with arm64-apple-darwin23.5.0 [-Woverride-module]
'+cx8' is not a recognized feature for this target (ignoring feature)
'+mmx' is not a recognized feature for this target (ignoring feature)
'+sse' is not a recognized feature for this target (ignoring feature)
'+sse2' is not a recognized feature for this target (ignoring feature)
'+x87' is not a recognized feature for this target (ignoring feature)
'+cx8' is not a recognized feature for this target (ignoring feature)
'+mmx' is not a recognized feature for this target (ignoring feature)
'+sse' is not a recognized feature for this target (ignoring feature)
'+sse2' is not a recognized feature for this target (ignoring feature)
'+x87' is not a recognized feature for this target (ignoring feature)
fatal error: error in backend: Global variable 'llvm.embedded.object' has an invalid section specifier '.llvm.offloading': mach-o section specifier requires a segment and section separated by a comma.

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 23, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-sie-win running on sie-win-worker while building clang at step 7 "test-build-unified-tree-check-all".

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

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 (stdout):
--
# RUN: at line 4
mkdir -p Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Driver\Output\linker-wrapper-passes.c.tmp
# executed command: mkdir -p 'Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Driver\Output\linker-wrapper-passes.c.tmp'
# RUN: at line 5
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe -cc1 -emit-llvm-bc -o Z:\b\llvm-clang-x86_64-sie-win\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 Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\linker-wrapper-passes.c
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' -cc1 -emit-llvm-bc -o 'Z:\b\llvm-clang-x86_64-sie-win\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 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\linker-wrapper-passes.c'
# RUN: at line 7
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe -cc1 -emit-llvm-bc -o Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Driver\Output\linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -disable-O0-optnone -triple=amdgcn-amd-amdhsa Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\linker-wrapper-passes.c
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' -cc1 -emit-llvm-bc -o 'Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Driver\Output\linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc' -disable-O0-optnone -triple=amdgcn-amd-amdhsa 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\linker-wrapper-passes.c'
# RUN: at line 9
z:\b\llvm-clang-x86_64-sie-win\build\bin\opt.exe Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Driver\Output\linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Driver\Output\linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -passes=forceattrs -force-remove-attribute=f:noinline
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\opt.exe' 'Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Driver\Output\linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc' -o 'Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Driver\Output\linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc' -passes=forceattrs -force-remove-attribute=f:noinline
# .---command stderr------------
# | z:\b\llvm-clang-x86_64-sie-win\build\bin\opt.exe: 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
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang-offload-packager.exe -o Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Driver\Output\linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      --image=file=Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Driver\Output\linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang-offload-packager.exe' -o 'Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Driver\Output\linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out' '--image=file=Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Driver\Output\linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa'
# RUN: at line 13
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe -cc1 -S -o Z:\b\llvm-clang-x86_64-sie-win\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=Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Driver\Output\linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Driver\Output\linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' -cc1 -S -o 'Z:\b\llvm-clang-x86_64-sie-win\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=Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Driver\Output\linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out' 'Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Driver\Output\linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc'
# .---command stderr------------
# | warning: overriding the module target triple with x86_64-sie-ps5 [-Woverride-module]
# | 1 warning generated.
# `-----------------------------
# RUN: at line 17
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe -cc1as -o Z:\b\llvm-clang-x86_64-sie-win\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      Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Driver\Output\linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' -cc1as -o 'Z:\b\llvm-clang-x86_64-sie-win\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 'Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Driver\Output\linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s'
# RUN: at line 22
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang-linker-wrapper.exe -o a.out --embed-bitcode --dry-run      --linker-path=/usr/bin/true Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Driver\Output\linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o      --offload-opt=-load-pass-plugin=Z:\b\llvm-clang-x86_64-sie-win\build\bin/Bye.dll --offload-opt=-wave-goodbye      --offload-opt=-passes="function(goodbye),module(inline)" 2>&1 |    z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe -match-full-lines -check-prefixes=OUT Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\linker-wrapper-passes.c
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang-linker-wrapper.exe' -o a.out --embed-bitcode --dry-run --linker-path=/usr/bin/true 'Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Driver\Output\linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o' '--offload-opt=-load-pass-plugin=Z:\b\llvm-clang-x86_64-sie-win\build\bin/Bye.dll' --offload-opt=-wave-goodbye '--offload-opt=-passes=function(goodbye),module(inline)'
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' -match-full-lines -check-prefixes=OUT 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\linker-wrapper-passes.c'
# .---command stderr------------
# | �[1mZ:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Driver\linker-wrapper-passes.c:47:9: �[0m�[0;1;31merror: �[0m�[1mOUT: expected string not found in input
# | �[0m// OUT: Bye: f
# | �[0;1;32m        ^
# | �[0m�[1m<stdin>:1:1: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
# | �[0mLLVM ERROR: Could not load library 'Z:\b\llvm-clang-x86_64-sie-win\build\bin/Bye.dll': Z:\b\llvm-clang-x86_64-sie-win\build\bin/Bye.dll: Can't open: The specified module could not be found. (0x7E)
# | �[0;1;32m^
# | �[0m�[1m<stdin>:1:75: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
# | �[0mLLVM ERROR: Could not load library 'Z:\b\llvm-clang-x86_64-sie-win\build\bin/Bye.dll': Z:\b\llvm-clang-x86_64-sie-win\build\bin/Bye.dll: Can't open: The specified module could not be found. (0x7E)
# | �[0;1;32m                                                                          ^
# | �[0m
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 23, 2024

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     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 23, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-gcc-ubuntu running on sie-linux-worker3 while building clang at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference:

Step 6 (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 4: mkdir -p /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
+ mkdir -p /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
RUN: at line 5: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang -cc1 -emit-llvm-bc -o /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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 /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang -cc1 -emit-llvm-bc -o /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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 /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 7: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang -cc1 -emit-llvm-bc -o /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -disable-O0-optnone -triple=amdgcn-amd-amdhsa /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang -cc1 -emit-llvm-bc -o /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -disable-O0-optnone -triple=amdgcn-amd-amdhsa /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 9: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/opt /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -passes=forceattrs -force-remove-attribute=f:noinline
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/opt /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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 11: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang-offload-packager -o /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      --image=file=/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang-offload-packager -o /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out --image=file=/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
RUN: at line 13: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang -cc1 -S -o /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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=/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang -cc1 -S -o /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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=/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
RUN: at line 17: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang -cc1as -o /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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      /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang -cc1as -o /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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 /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s
RUN: at line 22: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang-linker-wrapper -o a.out --embed-bitcode --dry-run      --linker-path=/usr/bin/true /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o      --offload-opt=-load-pass-plugin=/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/Bye.so --offload-opt=-wave-goodbye      --offload-opt=-passes="function(goodbye),module(inline)" 2>&1 |    /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/FileCheck -match-full-lines -check-prefixes=OUT /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang-linker-wrapper -o a.out --embed-bitcode --dry-run --linker-path=/usr/bin/true /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o --offload-opt=-load-pass-plugin=/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/Bye.so --offload-opt=-wave-goodbye '--offload-opt=-passes=function(goodbye),module(inline)'
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/FileCheck -match-full-lines -check-prefixes=OUT /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Driver/linker-wrapper-passes.c
�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Driver/linker-wrapper-passes.c:47:9: �[0m�[0;1;31merror: �[0m�[1mOUT: expected string not found in input
�[0m// OUT: Bye: f
�[0;1;32m        ^
�[0m�[1m<stdin>:1:1: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0mLLVM ERROR: Could not load library '/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/Bye.so': /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/Bye.so: cannot open shared object file: No such file or directory
�[0;1;32m^
�[0m�[1m<stdin>:1:214: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0mLLVM ERROR: Could not load library '/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/Bye.so': /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/Bye.so: cannot open shared object file: No such file or directory
�[0;1;32m                                                                                                                                                                                                                     ^
�[0m
Input file: <stdin>
Check file: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Driver/linker-wrapper-passes.c

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

Input was:
<<<<<<
�[1m�[0m�[0;1;30m            1: �[0m�[1m�[0;1;46mLLVM ERROR: Could not load library '/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/Bye.so': /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/Bye.so: cannot open shared object file: No such file or directory �[0m
�[0;1;31mcheck:47'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
�[0m�[0;1;35mcheck:47'1                                                                                                                                                                                                                          ?                                  possible intended match
�[0m�[0;1;30m            2: �[0m�[1m�[0;1;46m �[0m
�[0;1;31mcheck:47'0     ~
�[0m>>>>>>

--

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


llvmbot pushed a commit to llvmbot/llvm-project that referenced this pull request Jul 23, 2024
…00170)

Summary:
This was not forwarded properly as it would try to pass it to `nvlink`.

Fixes llvm#100168

(cherry picked from commit 7e1fcf5)
@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 23, 2024

LLVM Buildbot has detected a new failure on builder clang-x86_64-debian-fast running on gribozavr4 while building clang at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference:

Step 6 (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 4: mkdir -p /b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
+ mkdir -p /b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
RUN: at line 5: /b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang -cc1 -emit-llvm-bc -o /b/1/clang-x86_64-debian-fast/llvm.obj/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 /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Driver/linker-wrapper-passes.c
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang -cc1 -emit-llvm-bc -o /b/1/clang-x86_64-debian-fast/llvm.obj/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 /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 7: /b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang -cc1 -emit-llvm-bc -o /b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -disable-O0-optnone -triple=amdgcn-amd-amdhsa /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Driver/linker-wrapper-passes.c
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang -cc1 -emit-llvm-bc -o /b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -disable-O0-optnone -triple=amdgcn-amd-amdhsa /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 9: /b/1/clang-x86_64-debian-fast/llvm.obj/bin/opt /b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -passes=forceattrs -force-remove-attribute=f:noinline
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/opt /b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /b/1/clang-x86_64-debian-fast/llvm.obj/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 11: /b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang-offload-packager -o /b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      --image=file=/b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang-offload-packager -o /b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out --image=file=/b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
RUN: at line 13: /b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang -cc1 -S -o /b/1/clang-x86_64-debian-fast/llvm.obj/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=/b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      /b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang -cc1 -S -o /b/1/clang-x86_64-debian-fast/llvm.obj/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=/b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out /b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
RUN: at line 17: /b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang -cc1as -o /b/1/clang-x86_64-debian-fast/llvm.obj/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      /b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang -cc1as -o /b/1/clang-x86_64-debian-fast/llvm.obj/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 /b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s
RUN: at line 22: /b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang-linker-wrapper -o a.out --embed-bitcode --dry-run      --linker-path=/usr/bin/true /b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o      --offload-opt=-load-pass-plugin=/b/1/clang-x86_64-debian-fast/llvm.obj/lib/Bye.so --offload-opt=-wave-goodbye      --offload-opt=-passes="function(goodbye),module(inline)" 2>&1 |    /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck -match-full-lines -check-prefixes=OUT /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Driver/linker-wrapper-passes.c
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang-linker-wrapper -o a.out --embed-bitcode --dry-run --linker-path=/usr/bin/true /b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o --offload-opt=-load-pass-plugin=/b/1/clang-x86_64-debian-fast/llvm.obj/lib/Bye.so --offload-opt=-wave-goodbye '--offload-opt=-passes=function(goodbye),module(inline)'
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck -match-full-lines -check-prefixes=OUT /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Driver/linker-wrapper-passes.c
/b/1/clang-x86_64-debian-fast/llvm.src/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
 "/b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang" --no-default-config -o /tmp/lit-tmp-2ytkrbdz/a.out.amdgcn.native-eec8c2.img --target=amdgcn-amd-amdhsa -mcpu=native -O2 -Wl,--no-undefined /tmp/lit-tmp-2ytkrbdz/host-x86_64-unknown-linux-gnu-amdgcn-amd-amdhsa--a90d0e.o -Wl,--lto-emit-llvm
^
<stdin>:1:184: note: possible intended match here
 "/b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang" --no-default-config -o /tmp/lit-tmp-2ytkrbdz/a.out.amdgcn.native-eec8c2.img --target=amdgcn-amd-amdhsa -mcpu=native -O2 -Wl,--no-undefined /tmp/lit-tmp-2ytkrbdz/host-x86_64-unknown-linux-gnu-amdgcn-amd-amdhsa--a90d0e.o -Wl,--lto-emit-llvm
                                                                                                                                                                                       ^

Input file: <stdin>
Check file: /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Driver/linker-wrapper-passes.c

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

Input was:
<<<<<<
            1:  "/b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang" --no-default-config -o /tmp/lit-tmp-2ytkrbdz/a.out.amdgcn.native-eec8c2.img --target=amdgcn-amd-amdhsa -mcpu=native -O2 -Wl,--no-undefined /tmp/lit-tmp-2ytkrbdz/host-x86_64-unknown-linux-gnu-amdgcn-amd-amdhsa--a90d0e.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 /b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o 
check:47'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 25, 2024

LLVM Buildbot has detected a new failure on builder llvm-x86_64-debian-dylib running on gribozavr4 while building clang at step 6 "test-build-unified-tree-check-clang".

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

Here is the relevant piece of the build log for the reference:

Step 6 (test-build-unified-tree-check-clang) failure: test (failure)
******************** TEST 'Clang :: Driver/linker-wrapper-passes.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 4: mkdir -p /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
+ mkdir -p /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
RUN: at line 5: /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -emit-llvm-bc -o /b/1/llvm-x86_64-debian-dylib/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 /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -emit-llvm-bc -o /b/1/llvm-x86_64-debian-dylib/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 /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 7: /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -emit-llvm-bc -o /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -disable-O0-optnone -triple=amdgcn-amd-amdhsa /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -emit-llvm-bc -o /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -disable-O0-optnone -triple=amdgcn-amd-amdhsa /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 9: /b/1/llvm-x86_64-debian-dylib/build/bin/opt /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -passes=forceattrs -force-remove-attribute=f:noinline
+ /b/1/llvm-x86_64-debian-dylib/build/bin/opt /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /b/1/llvm-x86_64-debian-dylib/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 11: /b/1/llvm-x86_64-debian-dylib/build/bin/clang-offload-packager -o /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      --image=file=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
+ /b/1/llvm-x86_64-debian-dylib/build/bin/clang-offload-packager -o /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out --image=file=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
RUN: at line 13: /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -S -o /b/1/llvm-x86_64-debian-dylib/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=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
+ /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -S -o /b/1/llvm-x86_64-debian-dylib/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=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
RUN: at line 17: /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1as -o /b/1/llvm-x86_64-debian-dylib/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      /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s
+ /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1as -o /b/1/llvm-x86_64-debian-dylib/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 /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s
RUN: at line 22: /b/1/llvm-x86_64-debian-dylib/build/bin/clang-linker-wrapper -o a.out --embed-bitcode --dry-run      --linker-path=/usr/bin/true /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o      --offload-opt=-load-pass-plugin=/b/1/llvm-x86_64-debian-dylib/build/lib/Bye.so --offload-opt=-wave-goodbye      --offload-opt=-passes="function(goodbye),module(inline)" 2>&1 |    /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck -match-full-lines -check-prefixes=OUT /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /b/1/llvm-x86_64-debian-dylib/build/bin/clang-linker-wrapper -o a.out --embed-bitcode --dry-run --linker-path=/usr/bin/true /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o --offload-opt=-load-pass-plugin=/b/1/llvm-x86_64-debian-dylib/build/lib/Bye.so --offload-opt=-wave-goodbye '--offload-opt=-passes=function(goodbye),module(inline)'
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck -match-full-lines -check-prefixes=OUT /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/linker-wrapper-passes.c
/b/1/llvm-x86_64-debian-dylib/llvm-project/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
 "/b/1/llvm-x86_64-debian-dylib/build/bin/clang" --no-default-config -o /tmp/lit-tmp-qq6wjde1/a.out.amdgcn.native-ee614b.img --target=amdgcn-amd-amdhsa -mcpu=native -O2 -Wl,--no-undefined /tmp/lit-tmp-qq6wjde1/host-x86_64-unknown-linux-gnu-amdgcn-amd-amdhsa--03177a.o -Wl,--lto-emit-llvm
^
<stdin>:1:181: note: possible intended match here
 "/b/1/llvm-x86_64-debian-dylib/build/bin/clang" --no-default-config -o /tmp/lit-tmp-qq6wjde1/a.out.amdgcn.native-ee614b.img --target=amdgcn-amd-amdhsa -mcpu=native -O2 -Wl,--no-undefined /tmp/lit-tmp-qq6wjde1/host-x86_64-unknown-linux-gnu-amdgcn-amd-amdhsa--03177a.o -Wl,--lto-emit-llvm
                                                                                                                                                                                    ^

Input file: <stdin>
Check file: /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/linker-wrapper-passes.c

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

Input was:
<<<<<<
            1:  "/b/1/llvm-x86_64-debian-dylib/build/bin/clang" --no-default-config -o /tmp/lit-tmp-qq6wjde1/a.out.amdgcn.native-ee614b.img --target=amdgcn-amd-amdhsa -mcpu=native -O2 -Wl,--no-undefined /tmp/lit-tmp-qq6wjde1/host-x86_64-unknown-linux-gnu-amdgcn-amd-amdhsa--03177a.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 /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o 
check:47'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>

--

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


yuxuanchen1997 pushed a commit that referenced this pull request Jul 25, 2024
Summary:
This was not forwarded properly as it would try to pass it to `nvlink`.

Fixes #100168

Test Plan: 

Reviewers: 

Subscribers: 

Tasks: 

Tags: 


Differential Revision: https://phabricator.intern.facebook.com/D60251134
yuxuanchen1997 pushed a commit that referenced this pull request Jul 25, 2024
…#100170)"

Summary: This reverts commit 7e1fcf5.

Test Plan: 

Reviewers: 

Subscribers: 

Tasks: 

Tags: 


Differential Revision: https://phabricator.intern.facebook.com/D60251020
tru pushed a commit to llvmbot/llvm-project that referenced this pull request Jul 30, 2024
…00170)

Summary:
This was not forwarded properly as it would try to pass it to `nvlink`.

Fixes llvm#100168

(cherry picked from commit 7e1fcf5)
tru pushed a commit to llvmbot/llvm-project that referenced this pull request Aug 2, 2024
…00170)

Summary:
This was not forwarded properly as it would try to pass it to `nvlink`.

Fixes llvm#100168

(cherry picked from commit 7e1fcf5)
tru pushed a commit to llvmbot/llvm-project that referenced this pull request Aug 15, 2024
…00170)

Summary:
This was not forwarded properly as it would try to pass it to `nvlink`.

Fixes llvm#100168

(cherry picked from commit 7e1fcf5)
tru pushed a commit to llvmbot/llvm-project that referenced this pull request Aug 19, 2024
…00170)

Summary:
This was not forwarded properly as it would try to pass it to `nvlink`.

Fixes llvm#100168

(cherry picked from commit 7e1fcf5)
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] The 'clang-nvlink-wrapper' tool does not forward --cuda-path

4 participants