[llvm] [AMDGPU][LTO] Assume closed world after linking (PR #105845)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 25 11:25:39 PDT 2024


llvm-ci wrote:

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

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
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):

```
</details>

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


More information about the llvm-commits mailing list