[clang] [HIP] Replace use of `llvm-mc` with `clang` (PR #112041)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 12 05:23:35 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 `clang` at step 4 "annotate".

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

<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)
...
[1329/1331] Linking CXX executable tools/clang/unittests/Tooling/ToolingTests
[1330/1331] Running the Clang regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using clang: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/clang
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find clang-repl in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/wasm-ld
-- Testing: 21326 tests, 60 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 
FAIL: Clang :: Driver/hip-link-save-temps.hip (10896 of 21326)
******************** TEST 'Clang :: Driver/hip-link-save-temps.hip' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: rm -rf /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp && mkdir /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp
+ rm -rf /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp
+ mkdir /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp
RUN: at line 3: touch /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp/obj1.o
+ touch /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp/obj1.o
RUN: at line 4: touch /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp/obj2.o
+ touch /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp/obj2.o
RUN: at line 5: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/clang -### --target=x86_64-linux-gnu -nogpulib -save-temps    --hip-link -o executable -fgpu-rdc --cuda-gpu-arch=gfx900    --no-offload-new-driver --offload-arch=gfx906  /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp/obj1.o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp/obj2.o 2>&1 |    /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/FileCheck -check-prefixes=CHECK,OUT /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/hip-link-save-temps.hip
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/clang -### --target=x86_64-linux-gnu -nogpulib -save-temps --hip-link -o executable -fgpu-rdc --cuda-gpu-arch=gfx900 --no-offload-new-driver --offload-arch=gfx906 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp/obj1.o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp/obj2.o
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/FileCheck -check-prefixes=CHECK,OUT /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/hip-link-save-temps.hip
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/hip-link-save-temps.hip:45:11: error: CHECK: expected string not found in input
// CHECK: "{{.*clang.*}}" "-target" "x86_64-unknown-linux-gnu" "-o" "[[OBJBUNDLE:.+.o]]" "-x" "assembler" "{{.*}}.mcin" "-c"
          ^
<stdin>:11:357: note: scanning from here
 "/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/lld" "-flavor" "gnu" "-m" "elf64_amdgpu" "--no-undefined" "-shared" "-plugin-opt=-amdgpu-internalize-symbols" "-plugin-opt=mcpu=gfx906" "-save-temps" "--whole-archive" "-o" "a.out-hip-amdgcn-amd-amdhsa-gfx906" "obj1-hip-amdgcn-amd-amdhsa-gfx906.o" "obj2-hip-amdgcn-amd-amdhsa-gfx906.o" "--no-whole-archive"
                                                                                                                                                                                                                                                                                                                                                                    ^
<stdin>:13:64: note: possible intended match here
 "/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/llvm" "-target" "x86_64-unknown-linux-gnu" "-o" "obj1-hip-amdgcn-amd-amdhsa.o" "-x" "assembler" "obj1-hip-amdgcn-amd-amdhsa.mcin" "-c"
                                                               ^

Input file: <stdin>
Check file: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/hip-link-save-temps.hip

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

Input was:
<<<<<<
            .
            .
            .
            6:  "/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/clang-offload-bundler" "-type=o" "-targets=host-x86_64-unknown-linux-gnu,hip-amdgcn-amd-amdhsa-gfx900,hip-amdgcn-amd-amdhsa-gfx906" "-input=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp/obj1.o" "-output=obj1-host-x86_64-unknown-linux-gnu.o" "-output=obj1-hip-amdgcn-amd-amdhsa-gfx900.o" "-output=obj1-hip-amdgcn-amd-amdhsa-gfx906.o" "-unbundle" "-allow-missing-bundles" 
            7:  "/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/clang-offload-bundler" "-type=o" "-targets=host-x86_64-unknown-linux-gnu,hip-amdgcn-amd-amdhsa-gfx900,hip-amdgcn-amd-amdhsa-gfx906" "-input=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp/obj2.o" "-output=obj2-host-x86_64-unknown-linux-gnu.o" "-output=obj2-hip-amdgcn-amd-amdhsa-gfx900.o" "-output=obj2-hip-amdgcn-amd-amdhsa-gfx906.o" "-unbundle" "-allow-missing-bundles" 
            8:  "/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/clang-offload-bundler" "-type=o" "-targets=host-x86_64-unknown-linux-gnu,hip-amdgcn-amd-amdhsa-gfx900,hip-amdgcn-amd-amdhsa-gfx906" "-input=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp/obj1.o" "-output=obj1-host-x86_64-unknown-linux-gnu.o" "-output=obj1-hip-amdgcn-amd-amdhsa-gfx900.o" "-output=obj1-hip-amdgcn-amd-amdhsa-gfx906.o" "-unbundle" "-allow-missing-bundles" 
Step 7 (check) failure: check (failure)
...
[1329/1331] Linking CXX executable tools/clang/unittests/Tooling/ToolingTests
[1330/1331] Running the Clang regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using clang: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/clang
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find clang-repl in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/wasm-ld
-- Testing: 21326 tests, 60 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 
FAIL: Clang :: Driver/hip-link-save-temps.hip (10896 of 21326)
******************** TEST 'Clang :: Driver/hip-link-save-temps.hip' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: rm -rf /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp && mkdir /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp
+ rm -rf /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp
+ mkdir /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp
RUN: at line 3: touch /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp/obj1.o
+ touch /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp/obj1.o
RUN: at line 4: touch /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp/obj2.o
+ touch /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp/obj2.o
RUN: at line 5: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/clang -### --target=x86_64-linux-gnu -nogpulib -save-temps    --hip-link -o executable -fgpu-rdc --cuda-gpu-arch=gfx900    --no-offload-new-driver --offload-arch=gfx906  /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp/obj1.o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp/obj2.o 2>&1 |    /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/FileCheck -check-prefixes=CHECK,OUT /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/hip-link-save-temps.hip
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/clang -### --target=x86_64-linux-gnu -nogpulib -save-temps --hip-link -o executable -fgpu-rdc --cuda-gpu-arch=gfx900 --no-offload-new-driver --offload-arch=gfx906 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp/obj1.o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp/obj2.o
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/FileCheck -check-prefixes=CHECK,OUT /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/hip-link-save-temps.hip
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/hip-link-save-temps.hip:45:11: error: CHECK: expected string not found in input
// CHECK: "{{.*clang.*}}" "-target" "x86_64-unknown-linux-gnu" "-o" "[[OBJBUNDLE:.+.o]]" "-x" "assembler" "{{.*}}.mcin" "-c"
          ^
<stdin>:11:357: note: scanning from here
 "/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/lld" "-flavor" "gnu" "-m" "elf64_amdgpu" "--no-undefined" "-shared" "-plugin-opt=-amdgpu-internalize-symbols" "-plugin-opt=mcpu=gfx906" "-save-temps" "--whole-archive" "-o" "a.out-hip-amdgcn-amd-amdhsa-gfx906" "obj1-hip-amdgcn-amd-amdhsa-gfx906.o" "obj2-hip-amdgcn-amd-amdhsa-gfx906.o" "--no-whole-archive"
                                                                                                                                                                                                                                                                                                                                                                    ^
<stdin>:13:64: note: possible intended match here
 "/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/llvm" "-target" "x86_64-unknown-linux-gnu" "-o" "obj1-hip-amdgcn-amd-amdhsa.o" "-x" "assembler" "obj1-hip-amdgcn-amd-amdhsa.mcin" "-c"
                                                               ^

Input file: <stdin>
Check file: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Driver/hip-link-save-temps.hip

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

Input was:
<<<<<<
            .
            .
            .
            6:  "/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/clang-offload-bundler" "-type=o" "-targets=host-x86_64-unknown-linux-gnu,hip-amdgcn-amd-amdhsa-gfx900,hip-amdgcn-amd-amdhsa-gfx906" "-input=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp/obj1.o" "-output=obj1-host-x86_64-unknown-linux-gnu.o" "-output=obj1-hip-amdgcn-amd-amdhsa-gfx900.o" "-output=obj1-hip-amdgcn-amd-amdhsa-gfx906.o" "-unbundle" "-allow-missing-bundles" 
            7:  "/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/clang-offload-bundler" "-type=o" "-targets=host-x86_64-unknown-linux-gnu,hip-amdgcn-amd-amdhsa-gfx900,hip-amdgcn-amd-amdhsa-gfx906" "-input=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp/obj2.o" "-output=obj2-host-x86_64-unknown-linux-gnu.o" "-output=obj2-hip-amdgcn-amd-amdhsa-gfx900.o" "-output=obj2-hip-amdgcn-amd-amdhsa-gfx906.o" "-unbundle" "-allow-missing-bundles" 
            8:  "/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/bin/clang-offload-bundler" "-type=o" "-targets=host-x86_64-unknown-linux-gnu,hip-amdgcn-amd-amdhsa-gfx900,hip-amdgcn-amd-amdhsa-gfx906" "-input=/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-cklwaupw/tools/clang/test/Driver/Output/hip-link-save-temps.hip.tmp/obj1.o" "-output=obj1-host-x86_64-unknown-linux-gnu.o" "-output=obj1-hip-amdgcn-amd-amdhsa-gfx900.o" "-output=obj1-hip-amdgcn-amd-amdhsa-gfx906.o" "-unbundle" "-allow-missing-bundles" 

```

</details>

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


More information about the cfe-commits mailing list