Skip to content

[AMDGPU][LTO] Assume closed world after linking #105845

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

gandhi56
Copy link
Contributor

@gandhi56 gandhi56 commented Aug 23, 2024

No description provided.

@llvmbot llvmbot added clang Clang issues not falling into any other category backend:AMDGPU labels Aug 23, 2024
@llvmbot
Copy link
Member

llvmbot commented Aug 23, 2024

@llvm/pr-subscribers-lto
@llvm/pr-subscribers-backend-amdgpu

@llvm/pr-subscribers-clang

Author: Anshil Gandhi (gandhi56)

Changes

Change-Id: I7d8fa4251c80a6f815f55a0998677d18ade25b72


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

3 Files Affected:

  • (added) clang/test/CodeGenCUDA/gpu-rdc-amdgpu-attrs.cu (+12)
  • (modified) llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp (+3)
  • (modified) llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp (+1-1)
diff --git a/clang/test/CodeGenCUDA/gpu-rdc-amdgpu-attrs.cu b/clang/test/CodeGenCUDA/gpu-rdc-amdgpu-attrs.cu
new file mode 100644
index 00000000000000..614917aecc0d60
--- /dev/null
+++ b/clang/test/CodeGenCUDA/gpu-rdc-amdgpu-attrs.cu
@@ -0,0 +1,12 @@
+// RUN: clang -x hip -O3 -fgpu-rdc %s -mllvm -debug-only=amdgpu-attributor -o - | FileCheck %s
+
+// CHECK: Module {{.*}} is not assumed to be a closed world
+// CHECK: Module ld-temp.o is assumed to be a closed world
+
+__attribute__((device)) int foo() {
+    return 1;
+}
+
+int main() {
+    return 0;
+}
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp b/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
index d65e0ae92308e6..c78fc66e41ec58 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
@@ -1066,6 +1066,9 @@ static bool runImpl(Module &M, AnalysisGetter &AG, TargetMachine &TM,
 
   Attributor A(Functions, InfoCache, AC);
 
+  LLVM_DEBUG(dbgs() << "Module " << M.getName() << " is " << (AC.IsClosedWorldModule ? "" : "not ")
+                    << "assumed to be a closed world\n");
+
   for (Function &F : M) {
     if (F.isIntrinsic())
       continue;
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
index 7ac7b3315bb972..a4898366a21ee1 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
@@ -761,7 +761,7 @@ void AMDGPUTargetMachine::registerPassBuilderCallbacks(PassBuilder &PB) {
         if (EnableLowerModuleLDS)
           PM.addPass(AMDGPULowerModuleLDSPass(*this));
         if (EnableAMDGPUAttributor && Level != OptimizationLevel::O0)
-          PM.addPass(AMDGPUAttributorPass(*this));
+          PM.addPass(AMDGPUAttributorPass(*this, AMDGPUAttributorOptions{true} ));
       });
 
   PB.registerRegClassFilterParsingCallback(

Copy link

github-actions bot commented Aug 23, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

@gandhi56 gandhi56 force-pushed the gpu-rdc/assume-closed-world-after-linking branch from 8830b6f to d4b8e5b Compare August 23, 2024 15:34
Copy link
Contributor

@shiltian shiltian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one nit

Copy link
Contributor

@shiltian shiltian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, replied the wrong PR. Sorry.

@gandhi56 gandhi56 force-pushed the gpu-rdc/assume-closed-world-after-linking branch from d4b8e5b to 35601ad Compare August 23, 2024 18:24
@llvmbot llvmbot added the LTO Link time optimization (regular/full LTO or ThinLTO) label Aug 23, 2024
@gandhi56 gandhi56 force-pushed the gpu-rdc/assume-closed-world-after-linking branch from 35601ad to e01a7c8 Compare August 23, 2024 18:30
@gandhi56 gandhi56 force-pushed the gpu-rdc/assume-closed-world-after-linking branch from e01a7c8 to cec79bd Compare August 23, 2024 18:53
@gandhi56 gandhi56 force-pushed the gpu-rdc/assume-closed-world-after-linking branch from cec79bd to 3c14ab2 Compare August 23, 2024 19:43
@gandhi56 gandhi56 self-assigned this Aug 24, 2024
Change-Id: I7d8fa4251c80a6f815f55a0998677d18ade25b72
@gandhi56 gandhi56 force-pushed the gpu-rdc/assume-closed-world-after-linking branch from 3c14ab2 to beed3cb Compare August 25, 2024 17:12
@gandhi56
Copy link
Contributor Author

Rebased against trunk

@gandhi56 gandhi56 merged commit 33f3ebc into llvm:main Aug 25, 2024
8 checks passed
@gandhi56 gandhi56 deleted the gpu-rdc/assume-closed-world-after-linking branch August 25, 2024 18:06
@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 25, 2024

LLVM Buildbot has detected a new failure on builder llvm-nvptx64-nvidia-ubuntu running on as-builder-7 while building llvm at step 6 "test-build-unified-tree-check-llvm".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll 2>&1 | /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll:6:13: error: PRE-LINK: expected string not found in input
; PRE-LINK: Module {{.*}} is not assumed to be a closed world.
            ^
<stdin>:1:1: note: scanning from here
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
^
<stdin>:1:102: note: possible intended match here
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
                                                                                                     ^

Input file: <stdin>
Check file: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll

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

Input was:
<<<<<<
           1: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple. 
check:6'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
check:6'1                                                                                                          ?                                                                                                possible intended match
           2: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/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. 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           3: ; ModuleID = '/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           4: source_filename = "/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll" 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           5: target triple = "amdgcn-amd-amdhsa" 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           6:  
check:6'0     ~
           .
           .
           .
>>>>>>

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 25, 2024

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

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll 2>&1 | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll:6:13: �[0m�[0;1;31merror: �[0m�[1mPRE-LINK: expected string not found in input
�[0m; PRE-LINK: Module {{.*}} is not assumed to be a closed world.
�[0;1;32m            ^
�[0m�[1m<stdin>:1:1: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
�[0;1;32m^
�[0m�[1m<stdin>:1:95: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
�[0;1;32m                                                                                              ^
�[0m
Input file: <stdin>
Check file: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll

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

Input was:
<<<<<<
�[1m�[0m�[0;1;30m           1: �[0m�[1m�[0;1;46m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple. �[0m
�[0;1;31mcheck:6'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
�[0m�[0;1;35mcheck:6'1                                                                                                   ?                                                                                                possible intended match
�[0m�[0;1;30m           2: �[0m�[1m�[0;1;46m/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. �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m           3: �[0m�[1m�[0;1;46m; ModuleID = '/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m           4: �[0m�[1m�[0;1;46msource_filename = "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll" �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m           5: �[0m�[1m�[0;1;46mtarget triple = "amdgcn-amd-amdhsa" �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m           6: �[0m�[1m�[0;1;46m �[0m
�[0;1;31mcheck:6'0     ~
�[0m�[0;1;30m           7: �[0m�[1m�[0;1;46m; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m           8: �[0m�[1m�[0;1;46mdefine hidden noundef i32 @_Z3foov() local_unnamed_addr #0 { �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m           9: �[0m�[1m�[0;1;46m ret i32 1 �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~
�[0m�[0;1;30m          10: �[0m�[1m�[0;1;46m} �[0m
�[0;1;31mcheck:6'0     ~~
�[0m�[0;1;30m          11: �[0m�[1m�[0;1;46m �[0m
�[0;1;31mcheck:6'0     ~
�[0m�[0;1;30m          12: �[0m�[1m�[0;1;46mattributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) } �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 25, 2024

LLVM Buildbot has detected a new failure on builder clang-aarch64-quick running on linaro-clang-aarch64-quick while building llvm at step 5 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll 2>&1 | /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
+ /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll
+ /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll:6:13: error: PRE-LINK: expected string not found in input
; PRE-LINK: Module {{.*}} is not assumed to be a closed world.
            ^
<stdin>:1:1: note: scanning from here
/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
^
<stdin>:1:80: note: possible intended match here
/home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
                                                                               ^

Input file: <stdin>
Check file: /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll

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

Input was:
<<<<<<
           1: /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple. 
check:6'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
check:6'1                                                                                    ?                                                                                                possible intended match
           2: /home/tcwg-buildbot/worker/clang-aarch64-quick/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. 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           3: ; ModuleID = '/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           4: source_filename = "/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll" 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           5: target triple = "amdgcn-amd-amdhsa" 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           6:  
check:6'0     ~
           .
           .
           .
>>>>>>

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 25, 2024

LLVM Buildbot has detected a new failure on builder llvm-nvptx-nvidia-ubuntu running on as-builder-7 while building llvm at step 6 "test-build-unified-tree-check-llvm".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll 2>&1 | /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll:6:13: error: PRE-LINK: expected string not found in input
; PRE-LINK: Module {{.*}} is not assumed to be a closed world.
            ^
<stdin>:1:1: note: scanning from here
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
^
<stdin>:1:100: note: possible intended match here
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
                                                                                                   ^

Input file: <stdin>
Check file: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll

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

Input was:
<<<<<<
           1: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple. 
check:6'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
check:6'1                                                                                                        ?                                                                                                possible intended match
           2: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/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. 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           3: ; ModuleID = '/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           4: source_filename = "/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll" 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           5: target triple = "amdgcn-amd-amdhsa" 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           6:  
check:6'0     ~
           .
           .
           .
>>>>>>

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 25, 2024

LLVM Buildbot has detected a new failure on builder clang-ve-ninja running on hpce-ve-main while building llvm at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/ve-linux.py ...' (failure)
...
[646/647] Running the LLVM regression tests
Unknown option: -C
usage: git [--version] [--help] [-c name=value]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           <command> [<args>]
An error occurred retrieving the git revision: Command '['git', '-C', '/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm', 'rev-parse', 'HEAD']' returned non-zero exit status 129.
-- Testing: 54980 tests, 48 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50
FAIL: LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll (30069 of 54980)
******************** TEST 'LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll 2>&1 | /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll:6:13: error: PRE-LINK: expected string not found in input
; PRE-LINK: Module {{.*}} is not assumed to be a closed world.
            ^
<stdin>:1:1: note: scanning from here
opt: Unknown command line argument '-debug-only=amdgpu-attributor'. Try: '/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt --help'
^
<stdin>:2:20: note: possible intended match here
opt: Did you mean '--debug-pass=amdgpu-attributor'?
                   ^

Input file: <stdin>
Check file: /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll

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

Input was:
<<<<<<
           1: opt: Unknown command line argument '-debug-only=amdgpu-attributor'. Try: '/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt --help' 
check:6'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
           2: opt: Did you mean '--debug-pass=amdgpu-attributor'? 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:6'1                        ?                                 possible intended match
>>>>>>

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (1):
Step 8 (check-llvm) failure: check-llvm (failure)
...
[646/647] Running the LLVM regression tests
Unknown option: -C
usage: git [--version] [--help] [-c name=value]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           <command> [<args>]
An error occurred retrieving the git revision: Command '['git', '-C', '/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm', 'rev-parse', 'HEAD']' returned non-zero exit status 129.
-- Testing: 54980 tests, 48 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50
FAIL: LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll (30069 of 54980)
******************** TEST 'LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll 2>&1 | /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll:6:13: error: PRE-LINK: expected string not found in input
; PRE-LINK: Module {{.*}} is not assumed to be a closed world.
            ^
<stdin>:1:1: note: scanning from here
opt: Unknown command line argument '-debug-only=amdgpu-attributor'. Try: '/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt --help'
^
<stdin>:2:20: note: possible intended match here
opt: Did you mean '--debug-pass=amdgpu-attributor'?
                   ^

Input file: <stdin>
Check file: /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll

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

Input was:
<<<<<<
           1: opt: Unknown command line argument '-debug-only=amdgpu-attributor'. Try: '/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt --help' 
check:6'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
           2: opt: Did you mean '--debug-pass=amdgpu-attributor'? 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:6'1                        ?                                 possible intended match
>>>>>>

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (1):

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 25, 2024

LLVM Buildbot has detected a new failure on builder clang-armv8-quick running on linaro-clang-armv8-quick while building llvm at step 5 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll 2>&1 | /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
+ /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll
+ /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
/home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll:6:13: error: PRE-LINK: expected string not found in input
; PRE-LINK: Module {{.*}} is not assumed to be a closed world.
            ^
<stdin>:1:1: note: scanning from here
/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
^
<stdin>:1:78: note: possible intended match here
/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
                                                                             ^

Input file: <stdin>
Check file: /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll

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

Input was:
<<<<<<
           1: /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple. 
check:6'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
check:6'1                                                                                  ?                                                                                                possible intended match
           2: /home/tcwg-buildbot/worker/clang-armv8-quick/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. 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           3: ; ModuleID = '/home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           4: source_filename = "/home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll" 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           5: target triple = "amdgcn-amd-amdhsa" 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           6:  
check:6'0     ~
           .
           .
           .
>>>>>>

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 25, 2024

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

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

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
z:\b\llvm-clang-x86_64-sie-win\build\bin\opt.exe -O3 -debug-only=amdgpu-attributor -S -o - Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll 2>&1 | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\opt.exe' -O3 -debug-only=amdgpu-attributor -S -o - 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll'
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll' --check-prefix=PRE-LINK
# .---command stderr------------
# | �[1mZ:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll:6:13: �[0m�[0;1;31merror: �[0m�[1mPRE-LINK: expected string not found in input
# | �[0m; PRE-LINK: Module {{.*}} is not assumed to be a closed world.
# | �[0;1;32m            ^
# | �[0m�[1m<stdin>:1:1: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
# | �[0mz:\b\llvm-clang-x86_64-sie-win\build\bin\opt.exe: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
# | �[0;1;32m^
# | �[0m�[1m<stdin>:1:67: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
# | �[0mz:\b\llvm-clang-x86_64-sie-win\build\bin\opt.exe: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
# | �[0;1;32m                                                                  ^
# | �[0m
# | Input file: <stdin>
# | Check file: Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# | �[1m�[0m�[0;1;30m           1: �[0m�[1m�[0;1;46mz:\b\llvm-clang-x86_64-sie-win\build\bin\opt.exe: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple. �[0m
# | �[0;1;31mcheck:6'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | �[0m�[0;1;35mcheck:6'1                                                                       ?                                                                                                possible intended match
# | �[0m�[0;1;30m           2: �[0m�[1m�[0;1;46mz:\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. �[0m
# | �[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | �[0m�[0;1;30m           3: �[0m�[1m�[0;1;46m; ModuleID = 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll' �[0m
# | �[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | �[0m�[0;1;30m           4: �[0m�[1m�[0;1;46msource_filename = "Z:\\b\\llvm-clang-x86_64-sie-win\\llvm-project\\llvm\\test\\LTO\\AMDGPU\\gpu-rdc-amdgpu-attrs.ll" �[0m
# | �[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | �[0m�[0;1;30m           5: �[0m�[1m�[0;1;46mtarget triple = "amdgcn-amd-amdhsa" �[0m
# | �[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | �[0m�[0;1;30m           6: �[0m�[1m�[0;1;46m �[0m
# | �[0;1;31mcheck:6'0     ~
# | �[0m�[0;1;30m           7: �[0m�[1m�[0;1;46m; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) �[0m
# | �[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | �[0m�[0;1;30m           8: �[0m�[1m�[0;1;46mdefine hidden noundef i32 @_Z3foov() local_unnamed_addr #0 { �[0m
# | �[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | �[0m�[0;1;30m           9: �[0m�[1m�[0;1;46m ret i32 1 �[0m
# | �[0;1;31mcheck:6'0     ~~~~~~~~~~~
# | �[0m�[0;1;30m          10: �[0m�[1m�[0;1;46m} �[0m
# | �[0;1;31mcheck:6'0     ~~
# | �[0m�[0;1;30m          11: �[0m�[1m�[0;1;46m �[0m
# | �[0;1;31mcheck:6'0     ~
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 25, 2024

LLVM Buildbot has detected a new failure on builder clang-cmake-x86_64-avx512-linux running on avx512-intel64 while building llvm at step 7 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll 2>&1 | /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/FileCheck /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/FileCheck /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll:6:13: error: PRE-LINK: expected string not found in input
; PRE-LINK: Module {{.*}} is not assumed to be a closed world.
            ^
<stdin>:1:1: note: scanning from here
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
^
<stdin>:1:98: note: possible intended match here
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
                                                                                                 ^

Input file: <stdin>
Check file: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll

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

Input was:
<<<<<<
           1: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple. 
check:6'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
check:6'1                                                                                                      ?                                                                                                possible intended match
           2: /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. 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           3: ; ModuleID = '/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           4: source_filename = "/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll" 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           5: target triple = "amdgcn-amd-amdhsa" 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           6:  
check:6'0     ~
           .
           .
           .
>>>>>>

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 25, 2024

LLVM Buildbot has detected a new failure on builder llvm-nvptx64-nvidia-win running on as-builder-8 while building llvm at step 7 "test-build-unified-tree-check-llvm".

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

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\opt.exe -O3 -debug-only=amdgpu-attributor -S -o - C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll 2>&1 | c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\filecheck.exe C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\opt.exe' -O3 -debug-only=amdgpu-attributor -S -o - 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll'
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\filecheck.exe' 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll' --check-prefix=PRE-LINK
# .---command stderr------------
# | C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll:6:13: error: PRE-LINK: expected string not found in input
# | ; PRE-LINK: Module {{.*}} is not assumed to be a closed world.
# |             ^
# | <stdin>:1:1: note: scanning from here
# | c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\opt.exe: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
# | ^
# | <stdin>:1:85: note: possible intended match here
# | c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\opt.exe: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
# |                                                                                     ^
# | 
# | Input file: <stdin>
# | Check file: C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            1: c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\opt.exe: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple. 
# | check:6'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | check:6'1                                                                                         ?                                                                                                possible intended match
# |            2: c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-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. 
# | check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            3: ; ModuleID = 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll' 
# | check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            4: source_filename = "C:\\buildbot\\as-builder-8\\llvm-nvptx64-nvidia-win\\llvm-project\\llvm\\test\\LTO\\AMDGPU\\gpu-rdc-amdgpu-attrs.ll" 
# | check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            5: target triple = "amdgcn-amd-amdhsa" 
# | check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            6:  
# | check:6'0     ~
# |            .
# |            .
# |            .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 25, 2024

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

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll 2>&1 | /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
�[1m/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll:6:13: �[0m�[0;1;31merror: �[0m�[1mPRE-LINK: expected string not found in input
�[0m; PRE-LINK: Module {{.*}} is not assumed to be a closed world.
�[0;1;32m            ^
�[0m�[1m<stdin>:1:1: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0m/Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
�[0;1;32m^
�[0m�[1m<stdin>:1:77: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m/Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
�[0;1;32m                                                                            ^
�[0m
Input file: <stdin>
Check file: /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll

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

Input was:
<<<<<<
�[1m�[0m�[0;1;30m           1: �[0m�[1m�[0;1;46m/Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple. �[0m
�[0;1;31mcheck:6'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
�[0m�[0;1;35mcheck:6'1                                                                                 ?                                                                                                possible intended match
�[0m�[0;1;30m           2: �[0m�[1m�[0;1;46m/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. �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m           3: �[0m�[1m�[0;1;46m; ModuleID = '/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m           4: �[0m�[1m�[0;1;46msource_filename = "/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll" �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m           5: �[0m�[1m�[0;1;46mtarget triple = "amdgcn-amd-amdhsa" �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m           6: �[0m�[1m�[0;1;46m �[0m
�[0;1;31mcheck:6'0     ~
�[0m�[0;1;30m           7: �[0m�[1m�[0;1;46m; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m           8: �[0m�[1m�[0;1;46mdefine hidden noundef i32 @_Z3foov() local_unnamed_addr #0 { �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m           9: �[0m�[1m�[0;1;46m ret i32 1 �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~
�[0m�[0;1;30m          10: �[0m�[1m�[0;1;46m} �[0m
�[0;1;31mcheck:6'0     ~~
�[0m�[0;1;30m          11: �[0m�[1m�[0;1;46m �[0m
�[0;1;31mcheck:6'0     ~
�[0m�[0;1;30m          12: �[0m�[1m�[0;1;46mattributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) } �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 25, 2024

LLVM Buildbot has detected a new failure on builder fuchsia-x86_64-linux running on fuchsia-debian-64-us-central1-a-1 while building llvm at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/fuchsia-linux.py ...' (failure)
...
[1320/1325] Building CXX object unittests/Transforms/Scalar/CMakeFiles/ScalarTests.dir/LoopPassManagerTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1321/1325] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
[1321/1325] Running the LLVM regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-9i2g7101/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-9i2g7101/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-9i2g7101/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-9i2g7101/bin/wasm-ld
-- Testing: 55337 tests, 60 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50
FAIL: LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll (30068 of 55337)
******************** TEST 'LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-9i2g7101/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll 2>&1 | /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-9i2g7101/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-9i2g7101/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-9i2g7101/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll:6:13: error: PRE-LINK: expected string not found in input
; PRE-LINK: Module {{.*}} is not assumed to be a closed world.
            ^
<stdin>:1:1: note: scanning from here
opt: Unknown command line argument '-debug-only=amdgpu-attributor'. Try: '/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-9i2g7101/bin/opt --help'
^
<stdin>:2:20: note: possible intended match here
opt: Did you mean '--debug-pass=amdgpu-attributor'?
                   ^

Input file: <stdin>
Check file: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll

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

Input was:
<<<<<<
           1: opt: Unknown command line argument '-debug-only=amdgpu-attributor'. Try: '/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-9i2g7101/bin/opt --help' 
check:6'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
           2: opt: Did you mean '--debug-pass=amdgpu-attributor'? 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:6'1                        ?                                 possible intended match
>>>>>>

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (1):
Step 7 (check) failure: check (failure)
...
[1320/1325] Building CXX object unittests/Transforms/Scalar/CMakeFiles/ScalarTests.dir/LoopPassManagerTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1321/1325] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
[1321/1325] Running the LLVM regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-9i2g7101/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-9i2g7101/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-9i2g7101/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-9i2g7101/bin/wasm-ld
-- Testing: 55337 tests, 60 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50
FAIL: LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll (30068 of 55337)
******************** TEST 'LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-9i2g7101/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll 2>&1 | /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-9i2g7101/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-9i2g7101/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-9i2g7101/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll:6:13: error: PRE-LINK: expected string not found in input
; PRE-LINK: Module {{.*}} is not assumed to be a closed world.
            ^
<stdin>:1:1: note: scanning from here
opt: Unknown command line argument '-debug-only=amdgpu-attributor'. Try: '/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-9i2g7101/bin/opt --help'
^
<stdin>:2:20: note: possible intended match here
opt: Did you mean '--debug-pass=amdgpu-attributor'?
                   ^

Input file: <stdin>
Check file: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll

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

Input was:
<<<<<<
           1: opt: Unknown command line argument '-debug-only=amdgpu-attributor'. Try: '/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-9i2g7101/bin/opt --help' 
check:6'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
           2: opt: Did you mean '--debug-pass=amdgpu-attributor'? 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:6'1                        ?                                 possible intended match
>>>>>>

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (1):

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 25, 2024

LLVM Buildbot has detected a new failure on builder clang-x64-windows-msvc running on windows-gcebot2 while building llvm at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/clang-windows.py ...' (failure)
...
  Passed           : 37748 (99.09%)
  Expectedly Failed:    34 (0.09%)
[94/95] Running the LLVM regression tests
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:57: note: using lit tools: C:\Program Files\Git\usr\bin
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using ld.lld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using lld-link: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\lld-link.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using ld64.lld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld64.lld.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using wasm-ld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\wasm-ld.exe
-- Testing: 54702 tests, 32 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
FAIL: LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll (53924 of 54702)
******************** TEST 'LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe -O3 -debug-only=amdgpu-attributor -S -o - C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll 2>&1 | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe' -O3 -debug-only=amdgpu-attributor -S -o - 'C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll'
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe' 'C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll' --check-prefix=PRE-LINK
# .---command stderr------------
# | C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll:6:13: error: PRE-LINK: expected string not found in input
# | ; PRE-LINK: Module {{.*}} is not assumed to be a closed world.
# |             ^
# | <stdin>:1:1: note: scanning from here
# | opt.exe: Unknown command line argument '-debug-only=amdgpu-attributor'. Try: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe --help'
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |          1: opt.exe: Unknown command line argument '-debug-only=amdgpu-attributor'. Try: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe --help' 
# | check:6     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |          2: opt.exe: Did you mean '--debug-pass=amdgpu-attributor'? 
# | check:6     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
Step 8 (stage 1 check) failure: stage 1 check (failure)
...
  Passed           : 37748 (99.09%)
  Expectedly Failed:    34 (0.09%)
[94/95] Running the LLVM regression tests
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:57: note: using lit tools: C:\Program Files\Git\usr\bin
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using ld.lld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using lld-link: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\lld-link.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using ld64.lld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld64.lld.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using wasm-ld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\wasm-ld.exe
-- Testing: 54702 tests, 32 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
FAIL: LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll (53924 of 54702)
******************** TEST 'LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe -O3 -debug-only=amdgpu-attributor -S -o - C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll 2>&1 | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe' -O3 -debug-only=amdgpu-attributor -S -o - 'C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll'
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe' 'C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll' --check-prefix=PRE-LINK
# .---command stderr------------
# | C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll:6:13: error: PRE-LINK: expected string not found in input
# | ; PRE-LINK: Module {{.*}} is not assumed to be a closed world.
# |             ^
# | <stdin>:1:1: note: scanning from here
# | opt.exe: Unknown command line argument '-debug-only=amdgpu-attributor'. Try: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe --help'
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |          1: opt.exe: Unknown command line argument '-debug-only=amdgpu-attributor'. Try: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe --help' 
# | check:6     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |          2: opt.exe: Did you mean '--debug-pass=amdgpu-attributor'? 
# | check:6     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 25, 2024

LLVM Buildbot has detected a new failure on builder clang-solaris11-sparcv9 running on solaris11-sparcv9 while building llvm at step 5 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll 2>&1 | /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/bin/FileCheck /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
+ /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll
+ /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/bin/FileCheck /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll:6:13: error: PRE-LINK: expected string not found in input
; PRE-LINK: Module {{.*}} is not assumed to be a closed world.
            ^
<stdin>:1:1: note: scanning from here
/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
^
<stdin>:1:99: note: possible intended match here
/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
                                                                                                  ^

Input file: <stdin>
Check file: /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll

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

Input was:
<<<<<<
           1: /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple. 
check:6'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
check:6'1                                                                                                       ?                                                                                                possible intended match
           2: /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/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. 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           3: ; ModuleID = '/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           4: source_filename = "/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll" 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           5: target triple = "amdgcn-amd-amdhsa" 
check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           6:  
check:6'0     ~
           .
           .
           .
>>>>>>

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 25, 2024

LLVM Buildbot has detected a new failure on builder llvm-nvptx-nvidia-win running on as-builder-8 while building llvm at step 7 "test-build-unified-tree-check-llvm".

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

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\opt.exe -O3 -debug-only=amdgpu-attributor -S -o - C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll 2>&1 | c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\filecheck.exe C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\opt.exe' -O3 -debug-only=amdgpu-attributor -S -o - 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll'
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\filecheck.exe' 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll' --check-prefix=PRE-LINK
# .---command stderr------------
# | C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll:6:13: error: PRE-LINK: expected string not found in input
# | ; PRE-LINK: Module {{.*}} is not assumed to be a closed world.
# |             ^
# | <stdin>:1:1: note: scanning from here
# | c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\opt.exe: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
# | ^
# | <stdin>:1:83: note: possible intended match here
# | c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\opt.exe: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
# |                                                                                   ^
# | 
# | Input file: <stdin>
# | Check file: C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            1: c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\opt.exe: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple. 
# | check:6'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | check:6'1                                                                                       ?                                                                                                possible intended match
# |            2: c:\buildbot\as-builder-8\llvm-nvptx-nvidia-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. 
# | check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            3: ; ModuleID = 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll' 
# | check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            4: source_filename = "C:\\buildbot\\as-builder-8\\llvm-nvptx-nvidia-win\\llvm-project\\llvm\\test\\LTO\\AMDGPU\\gpu-rdc-amdgpu-attrs.ll" 
# | check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            5: target triple = "amdgcn-amd-amdhsa" 
# | check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            6:  
# | check:6'0     ~
# |            .
# |            .
# |            .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

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


@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 25, 2024

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

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

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll 2>&1 | /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
+ /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/opt -O3 -debug-only=amdgpu-attributor -S -o - /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll
+ /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/FileCheck /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
�[1m/Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll:6:13: �[0m�[0;1;31merror: �[0m�[1mPRE-LINK: expected string not found in input
�[0m; PRE-LINK: Module {{.*}} is not assumed to be a closed world.
�[0;1;32m            ^
�[0m�[1m<stdin>:1:1: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0m/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
�[0;1;32m^
�[0m�[1m<stdin>:1:77: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
�[0;1;32m                                                                            ^
�[0m
Input file: <stdin>
Check file: /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll

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

Input was:
<<<<<<
�[1m�[0m�[0;1;30m           1: �[0m�[1m�[0;1;46m/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/opt: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple. �[0m
�[0;1;31mcheck:6'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
�[0m�[0;1;35mcheck:6'1                                                                                 ?                                                                                                possible intended match
�[0m�[0;1;30m           2: �[0m�[1m�[0;1;46m/Volumes/RAMDisk/buildbot-root/x86_64-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. �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m           3: �[0m�[1m�[0;1;46m; ModuleID = '/Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m           4: �[0m�[1m�[0;1;46msource_filename = "/Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll" �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m           5: �[0m�[1m�[0;1;46mtarget triple = "amdgcn-amd-amdhsa" �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m           6: �[0m�[1m�[0;1;46m �[0m
�[0;1;31mcheck:6'0     ~
�[0m�[0;1;30m           7: �[0m�[1m�[0;1;46m; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m           8: �[0m�[1m�[0;1;46mdefine hidden noundef i32 @_Z3foov() local_unnamed_addr #0 { �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m           9: �[0m�[1m�[0;1;46m ret i32 1 �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~
�[0m�[0;1;30m          10: �[0m�[1m�[0;1;46m} �[0m
�[0;1;31mcheck:6'0     ~~
�[0m�[0;1;30m          11: �[0m�[1m�[0;1;46m �[0m
�[0;1;31mcheck:6'0     ~
�[0m�[0;1;30m          12: �[0m�[1m�[0;1;46mattributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) } �[0m
�[0;1;31mcheck:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...

@gandhi56 gandhi56 restored the gpu-rdc/assume-closed-world-after-linking branch August 25, 2024 18:40
@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 25, 2024

LLVM Buildbot has detected a new failure on builder lldb-aarch64-windows running on linaro-armv8-windows-msvc-05 while building llvm at step 6 "test".

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

Here is the relevant piece of the build log for the reference
Step 6 (test) failure: build (failure)
...
PASS: lldb-api :: tools/lldb-dap/variables/children/TestDAP_variables_children.py (1152 of 2010)
UNSUPPORTED: lldb-api :: tools/lldb-server/TestGdbRemoteAuxvSupport.py (1153 of 2010)
PASS: lldb-api :: tools/lldb-server/TestGdbRemoteAttach.py (1154 of 2010)
PASS: lldb-api :: tools/lldb-server/TestGdbRemoteCompletion.py (1155 of 2010)
PASS: lldb-api :: tools/lldb-server/TestGdbRemoteExitCode.py (1156 of 2010)
UNSUPPORTED: lldb-api :: tools/lldb-server/TestGdbRemoteFork.py (1157 of 2010)
UNSUPPORTED: lldb-api :: tools/lldb-server/TestGdbRemoteForkNonStop.py (1158 of 2010)
PASS: lldb-api :: tools/lldb-server/TestGdbRemoteHostInfo.py (1159 of 2010)
PASS: lldb-api :: tools/lldb-server/TestGdbRemoteExpeditedRegisters.py (1160 of 2010)
PASS: lldb-api :: tools/lldb-server/TestGdbRemoteKill.py (1161 of 2010)
FAIL: lldb-api :: tools/lldb-server/TestGdbRemoteLaunch.py (1162 of 2010)
******************** TEST 'lldb-api :: tools/lldb-server/TestGdbRemoteLaunch.py' FAILED ********************
Script:
--
C:/Users/tcwg/scoop/apps/python/current/python.exe C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/llvm-project/lldb\test\API\dotest.py -u CXXFLAGS -u CFLAGS --env OBJCOPY=C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin/llvm-objcopy.exe --env LLVM_LIBS_DIR=C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./lib --env LLVM_INCLUDE_DIR=C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/include --env LLVM_TOOLS_DIR=C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin --arch aarch64 --build-dir C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/lldb-test-build.noindex --lldb-module-cache-dir C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/lldb-test-build.noindex/module-cache-lldb\lldb-api --clang-module-cache-dir C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/lldb-test-build.noindex/module-cache-clang\lldb-api --executable C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin/lldb.exe --compiler C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin/clang.exe --dsymutil C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin/dsymutil.exe --llvm-tools-dir C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin --lldb-obj-root C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/tools/lldb --lldb-libs-dir C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./lib --skip-category=watchpoint C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\test\API\tools\lldb-server -p TestGdbRemoteLaunch.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 20.0.0git (https://github.com/llvm/llvm-project.git revision 33f3ebc86e7d3afcb65c551feba5bbc2421b42ed)
  clang revision 33f3ebc86e7d3afcb65c551feba5bbc2421b42ed
  llvm revision 33f3ebc86e7d3afcb65c551feba5bbc2421b42ed
Skipping the following test categories: ['watchpoint', 'libc++', 'libstdcxx', 'dwo', 'dsym', 'gmodules', 'debugserver', 'objc', 'fork', 'pexpect']


--
Command Output (stderr):
--
UNSUPPORTED: LLDB (C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe-aarch64) :: test_QEnvironmentHexEncoded_llgs (TestGdbRemoteLaunch.GdbRemoteLaunchTestCase.test_QEnvironmentHexEncoded_llgs) (skip on windows) 

UNSUPPORTED: LLDB (C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe-aarch64) :: test_QEnvironment_llgs (TestGdbRemoteLaunch.GdbRemoteLaunchTestCase.test_QEnvironment_llgs) (skip on windows) 

PASS: LLDB (C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe-aarch64) :: test_launch_failure_via_vRun_llgs (TestGdbRemoteLaunch.GdbRemoteLaunchTestCase.test_launch_failure_via_vRun_llgs)

UNSUPPORTED: LLDB (C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe-aarch64) :: test_launch_via_A_llgs (TestGdbRemoteLaunch.GdbRemoteLaunchTestCase.test_launch_via_A_llgs) (skip on windows) 

UNSUPPORTED: LLDB (C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe-aarch64) :: test_launch_via_vRun_llgs (TestGdbRemoteLaunch.GdbRemoteLaunchTestCase.test_launch_via_vRun_llgs) (skip on windows) 

FAIL: LLDB (C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe-aarch64) :: test_launch_via_vRun_no_args_llgs (TestGdbRemoteLaunch.GdbRemoteLaunchTestCase.test_launch_via_vRun_no_args_llgs)

======================================================================

FAIL: test_launch_via_vRun_no_args_llgs (TestGdbRemoteLaunch.GdbRemoteLaunchTestCase.test_launch_via_vRun_no_args_llgs)

----------------------------------------------------------------------

Traceback (most recent call last):


@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 25, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-win-x-aarch64 running on as-builder-2 while building llvm at step 9 "test-check-llvm".

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

Here is the relevant piece of the build log for the reference
Step 9 (test-check-llvm) failure: Test just built components: check-llvm completed (failure)
******************** TEST 'LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
c:\buildbot\as-builder-2\x-aarch64\build\bin\opt.exe -O3 -debug-only=amdgpu-attributor -S -o - C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll 2>&1 | c:\buildbot\as-builder-2\x-aarch64\build\bin\filecheck.exe C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
# executed command: 'c:\buildbot\as-builder-2\x-aarch64\build\bin\opt.exe' -O3 -debug-only=amdgpu-attributor -S -o - 'C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll'
# executed command: 'c:\buildbot\as-builder-2\x-aarch64\build\bin\filecheck.exe' 'C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll' --check-prefix=PRE-LINK
# .---command stderr------------
# | C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll:6:13: error: PRE-LINK: expected string not found in input
# | ; PRE-LINK: Module {{.*}} is not assumed to be a closed world.
# |             ^
# | <stdin>:1:1: note: scanning from here
# | c:\buildbot\as-builder-2\x-aarch64\build\bin\opt.exe: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
# | ^
# | <stdin>:1:71: note: possible intended match here
# | c:\buildbot\as-builder-2\x-aarch64\build\bin\opt.exe: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
# |                                                                       ^
# | 
# | Input file: <stdin>
# | Check file: C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            1: c:\buildbot\as-builder-2\x-aarch64\build\bin\opt.exe: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple. 
# | check:6'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | check:6'1                                                                           ?                                                                                                possible intended match
# |            2: c:\buildbot\as-builder-2\x-aarch64\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. 
# | check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            3: ; ModuleID = 'C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll' 
# | check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            4: source_filename = "C:\\buildbot\\as-builder-2\\x-aarch64\\llvm-project\\llvm\\test\\LTO\\AMDGPU\\gpu-rdc-amdgpu-attrs.ll" 
# | check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            5: target triple = "amdgcn-amd-amdhsa" 
# | check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            6:  
# | check:6'0     ~
# |            .
# |            .
# |            .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

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


gandhi56 added a commit to gandhi56/llvm-project that referenced this pull request Aug 25, 2024
gandhi56 added a commit that referenced this pull request Aug 25, 2024
@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 25, 2024

LLVM Buildbot has detected a new failure on builder clang-cmake-x86_64-avx512-win running on avx512-intel64-win while building llvm at step 6 "ninja check 1".

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

Here is the relevant piece of the build log for the reference
Step 6 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
d:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\bin\opt.exe -O3 -debug-only=amdgpu-attributor -S -o - D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll 2>&1 | d:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\bin\filecheck.exe D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
# executed command: 'd:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\bin\opt.exe' -O3 -debug-only=amdgpu-attributor -S -o - 'D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll'
# executed command: 'd:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\bin\filecheck.exe' 'D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll' --check-prefix=PRE-LINK
# .---command stderr------------
# | D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll:6:13: error: PRE-LINK: expected string not found in input
# | ; PRE-LINK: Module {{.*}} is not assumed to be a closed world.
# |             ^
# | <stdin>:1:1: note: scanning from here
# | d:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\bin\opt.exe: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
# | ^
# | <stdin>:1:91: note: possible intended match here
# | d:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\bin\opt.exe: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
# |                                                                                           ^
# | 
# | Input file: <stdin>
# | Check file: D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            1: d:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\bin\opt.exe: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple. 
# | check:6'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | check:6'1                                                                                               ?                                                                                                possible intended match
# |            2: d:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\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. 
# | check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            3: ; ModuleID = 'D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll' 
# | check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            4: source_filename = "D:\\buildbot\\llvm-worker\\clang-cmake-x86_64-avx512-win\\llvm\\llvm\\test\\LTO\\AMDGPU\\gpu-rdc-amdgpu-attrs.ll" 
# | check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            5: target triple = "amdgcn-amd-amdhsa" 
# | check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            6:  
# | check:6'0     ~
# |            .
# |            .
# |            .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

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


gandhi56 added a commit to gandhi56/llvm-project that referenced this pull request Aug 25, 2024
…#105845)" (llvm#106000)"

This reverts commit 4b6c064.

Add a requirement for an amdgpu target in the test.
@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 25, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-win-x-armv7l running on as-builder-1 while building llvm at step 9 "test-check-llvm".

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

Here is the relevant piece of the build log for the reference
Step 9 (test-check-llvm) failure: Test just built components: check-llvm completed (failure)
******************** TEST 'LLVM :: LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
c:\buildbot\as-builder-1\x-armv7l\build\bin\opt.exe -O3 -debug-only=amdgpu-attributor -S -o - C:\buildbot\as-builder-1\x-armv7l\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll 2>&1 | c:\buildbot\as-builder-1\x-armv7l\build\bin\filecheck.exe C:\buildbot\as-builder-1\x-armv7l\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll --check-prefix=PRE-LINK
# executed command: 'c:\buildbot\as-builder-1\x-armv7l\build\bin\opt.exe' -O3 -debug-only=amdgpu-attributor -S -o - 'C:\buildbot\as-builder-1\x-armv7l\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll'
# executed command: 'c:\buildbot\as-builder-1\x-armv7l\build\bin\filecheck.exe' 'C:\buildbot\as-builder-1\x-armv7l\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll' --check-prefix=PRE-LINK
# .---command stderr------------
# | C:\buildbot\as-builder-1\x-armv7l\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll:6:13: error: PRE-LINK: expected string not found in input
# | ; PRE-LINK: Module {{.*}} is not assumed to be a closed world.
# |             ^
# | <stdin>:1:1: note: scanning from here
# | c:\buildbot\as-builder-1\x-armv7l\build\bin\opt.exe: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
# | ^
# | <stdin>:1:70: note: possible intended match here
# | c:\buildbot\as-builder-1\x-armv7l\build\bin\opt.exe: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
# |                                                                      ^
# | 
# | Input file: <stdin>
# | Check file: C:\buildbot\as-builder-1\x-armv7l\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            1: c:\buildbot\as-builder-1\x-armv7l\build\bin\opt.exe: warning: failed to infer data layout: unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple. 
# | check:6'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | check:6'1                                                                          ?                                                                                                possible intended match
# |            2: c:\buildbot\as-builder-1\x-armv7l\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. 
# | check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            3: ; ModuleID = 'C:\buildbot\as-builder-1\x-armv7l\llvm-project\llvm\test\LTO\AMDGPU\gpu-rdc-amdgpu-attrs.ll' 
# | check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            4: source_filename = "C:\\buildbot\\as-builder-1\\x-armv7l\\llvm-project\\llvm\\test\\LTO\\AMDGPU\\gpu-rdc-amdgpu-attrs.ll" 
# | check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            5: target triple = "amdgcn-amd-amdhsa" 
# | check:6'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            6:  
# | check:6'0     ~
# |            .
# |            .
# |            .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

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


gandhi56 added a commit that referenced this pull request Aug 25, 2024
)" (#106000)" (#106001)

This reverts commit 4b6c064.

Add a requirement for an amdgpu target in the test.
shiltian added a commit that referenced this pull request Sep 1, 2024
We can't assume closed world even in full LTO post-link stage. It is only true
if we are building a "GPU executable". However, AMDGPU does support "dyamic
library". I'm not aware of any approach to tell if it is relocatable link when
we create the pass. For now let's revert the patch. We can re-enable it once we
can handle it correctly.
shiltian added a commit that referenced this pull request Sep 1, 2024
…106889)

We can't assume closed world even in full LTO post-link stage. It is
only true
if we are building a "GPU executable". However, AMDGPU does support
"dyamic
library". I'm not aware of any approach to tell if it is relocatable
link when
we create the pass. For now let's revert the patch as it is currently
breaking things.
We can re-enable it once we can handle it correctly.
qiaojbao pushed a commit to GPUOpen-Drivers/llvm-project that referenced this pull request Sep 30, 2024
…094d86999

Local branch amd-gfx f1e094d Merged main:1193f7d6487d2d94009f8d8d27da3907136482b9 into amd-gfx:56dd30a1ccd0
Remote branch main 33f3ebc [AMDGPU][LTO] Assume closed world after linking (llvm#105845)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:AMDGPU clang Clang issues not falling into any other category LTO Link time optimization (regular/full LTO or ThinLTO)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants