[clang] [Hexagon] Relax toolchain check to accept ld in driver test (PR #192596)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 16 23:30:21 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 87423 tests passed
* 1434 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.Driver/hexagon-toolchain-picolibc.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 6
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -### --target=hexagon-none-elf --cstdlib=picolibc -ccc-install-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=CHECK-C-INCLUDES /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang '-###' --target=hexagon-none-elf --cstdlib=picolibc -ccc-install-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=CHECK-C-INCLUDES /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c
# note: command had no output on stdout or stderr
# RUN: at line 11
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --driver-mode=g++ -### --target=hexagon-none-elf --cstdlib=picolibc -ccc-install-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=CHECK-CXX-INCLUDES /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --driver-mode=g++ '-###' --target=hexagon-none-elf --cstdlib=picolibc -ccc-install-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=CHECK-CXX-INCLUDES /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c
# note: command had no output on stdout or stderr
# RUN: at line 19
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --target=hexagon-none-elf --cstdlib=picolibc -### /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c --check-prefix=CHECK-STARTUP
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --target=hexagon-none-elf --cstdlib=picolibc '-###' /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c --check-prefix=CHECK-STARTUP
# note: command had no output on stdout or stderr
# RUN: at line 22
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --target=hexagon-none-elf --cstdlib=picolibc -nostartfiles -### /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c --check-prefix=CHECK-NOSTART
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --target=hexagon-none-elf --cstdlib=picolibc -nostartfiles '-###' /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c --check-prefix=CHECK-NOSTART
# note: command had no output on stdout or stderr
# RUN: at line 27
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --driver-mode=g++ -### --target=hexagon-none-elf --cstdlib=picolibc -ccc-install-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin -mcpu=hexagonv60 -nostdlib /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=CHECK-NOSTDLIB /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --driver-mode=g++ '-###' --target=hexagon-none-elf --cstdlib=picolibc -ccc-install-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin -mcpu=hexagonv60 -nostdlib /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=CHECK-NOSTDLIB /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c
# note: command had no output on stdout or stderr
# RUN: at line 42
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --driver-mode=g++ -### --target=hexagon-none-elf --cstdlib=picolibc -ccc-install-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin -mcpu=hexagonv60 -nostartfiles /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=CHECK-NOSTARTFILES /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --driver-mode=g++ '-###' --target=hexagon-none-elf --cstdlib=picolibc -ccc-install-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin -mcpu=hexagonv60 -nostartfiles /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=CHECK-NOSTARTFILES /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c
# note: command had no output on stdout or stderr
# RUN: at line 51
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --driver-mode=g++ -### --target=hexagon-none-elf --cstdlib=picolibc -ccc-install-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin -mcpu=hexagonv60 -nodefaultlibs /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=CHECK-NODEFAULTLIBS /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --driver-mode=g++ '-###' --target=hexagon-none-elf --cstdlib=picolibc -ccc-install-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin -mcpu=hexagonv60 -nodefaultlibs /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=CHECK-NODEFAULTLIBS /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c
# note: command had no output on stdout or stderr
# RUN: at line 66
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --driver-mode=g++ -### --target=hexagon-none-elf --cstdlib=picolibc -ccc-install-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin -mcpu=hexagonv60 -nolibc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=CHECK-NOLIBC /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --driver-mode=g++ '-###' --target=hexagon-none-elf --cstdlib=picolibc -ccc-install-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin -mcpu=hexagonv60 -nolibc /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=CHECK-NOLIBC /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c:71:23: error: CHECK-NOLIBC-SAME: is not on the same line as the previous match
# | // CHECK-NOLIBC-SAME: "{{.*}}crt0-semihost.o"
# | ^
# | <stdin>:8:2: note: 'next' match was here
# | "hexagon-link" "--eh-frame-hdr" "-march=hexagon" "-mcpu=hexagonv60" "-pie" "-o" "a.out" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin/../target/picolibc/hexagon-unknown-none-elf/lib/v60/crt0-semihost.o" "-L/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin/../target/picolibc/hexagon-unknown-none-elf/lib/v60" "-L/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin/../target/picolibc/hexagon-unknown-none-elf/lib" "/tmp/lit-tmp-8tnkdjht/hexagon-toolchain-picolibc-9c52ab.o" "-lc++" "-lc++abi" "-lunwind" "-lm" "--start-group" "-lsemihost" "-lclang_rt.builtins" "--end-group"
# | ^
# | <stdin>:7:677: note: previous match ended here
# | "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-23" "-cc1" "-triple" "hexagon-unknown-none-elf" "-emit-obj" "-dumpdir" "a-" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "hexagon-toolchain-picolibc.c" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=all" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-fno-use-init-array" "-target-cpu" "hexagonv60" "-target-feature" "-long-calls" "-mqdsp6-compat" "-Wreturn-type" "-fshort-enums" "-mllvm" "-machine-sink-split=0" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver" "-fcoverage-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver" "-resource-dir" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23" "-internal-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin/../target/picolibc/hexagon-unknown-none-elf/include/c++/v1" "-internal-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin/../target/picolibc/hexagon-unknown-none-elf/include/c++/v1/backward" "-internal-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include" "-internal-externc-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin/../target/picolibc/hexagon-unknown-none-elf/include" "-fdeprecated-macro" "-ferror-limit" "19" "-fshort-enums" "-fno-signed-char" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fcxx-exceptions" "-fexceptions" "-faddrsig" "-fdwarf2-cfi-asm" "-o" "/tmp/lit-tmp-8tnkdjht/hexagon-toolchain-picolibc-9c52ab.o" "-x" "c++" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c"
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: clang version 23.0.0git (https://github.com/llvm/llvm-project 1fe28fef9e9a2eab2d97a032ce1b8d190d7005e2)
# | 2: Target: hexagon-unknown-none-elf
# | 3: Thread model: posix
# | 4: InstalledDir: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin
# | 5: Build config: +assertions
# | 6: clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
# | 7: "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-23" "-cc1" "-triple" "hexagon-unknown-none-elf" "-emit-obj" "-dumpdir" "a-" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "hexagon-toolchain-picolibc.c" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=all" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-fno-use-init-array" "-target-cpu" "hexagonv60" "-target-feature" "-long-calls" "-mqdsp6-compat" "-Wreturn-type" "-fshort-enums" "-mllvm" "-machine-sink-split=0" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver" "-fcoverage-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver" "-resource-dir" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23" "-internal-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin/../target/picolibc/hexagon-unknown-none-elf/include/c++/v1" "-internal-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin/../target/picolibc/hexagon-unknown-none-elf/include/c++/v1/backward" "-internal-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include" "-internal-externc-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin/../target/picolibc/hexagon-unknown-none-elf/include" "-fdeprecated-macro" "-ferror-limit" "19" "-fshort-enums" "-fno-signed-char" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fcxx-exceptions" "-fexceptions" "-faddrsig" "-fdwarf2-cfi-asm" "-o" "/tmp/lit-tmp-8tnkdjht/hexagon-toolchain-picolibc-9c52ab.o" "-x" "c++" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/hexagon-toolchain-picolibc.c"
# | 8: "hexagon-link" "--eh-frame-hdr" "-march=hexagon" "-mcpu=hexagonv60" "-pie" "-o" "a.out" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin/../target/picolibc/hexagon-unknown-none-elf/lib/v60/crt0-semihost.o" "-L/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin/../target/picolibc/hexagon-unknown-none-elf/lib/v60" "-L/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/hexagon_tree/Tools/bin/../target/picolibc/hexagon-unknown-none-elf/lib" "/tmp/lit-tmp-8tnkdjht/hexagon-toolchain-picolibc-9c52ab.o" "-lc++" "-lc++abi" "-lunwind" "-lm" "--start-group" "-lsemihost" "-lclang_rt.builtins" "--end-group"
# | same:71 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: match on wrong line
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/192596
More information about the cfe-commits
mailing list