[clang] [Driver] Omit crtbegin.o and crtend.o with --rtlib=none (PR #245160)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 23 01:29:53 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 64996 tests passed
* 847 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.Driver/nostdlib.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --target=i686-pc-linux-gnu -### -nostdlib /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/nostdlib.c 2> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/nostdlib.c.tmp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --target=i686-pc-linux-gnu '-###' -nostdlib /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/nostdlib.c
# note: command had no output on stdout or stderr
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck < /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/nostdlib.c.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/nostdlib.c
# 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/nostdlib.c
# note: command had no output on stdout or stderr
# RUN: at line 9
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -### -Wno-liblto -nostartfiles -nostdlib --target=i386-apple-darwin --no-xcselect /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/nostdlib.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/nostdlib.c -check-prefix=ARGSCLAIMED
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang '-###' -Wno-liblto -nostartfiles -nostdlib --target=i386-apple-darwin --no-xcselect /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/nostdlib.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/nostdlib.c -check-prefix=ARGSCLAIMED
# note: command had no output on stdout or stderr
# RUN: at line 15
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -### /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/nostdlib.c -Wno-liblto 2>&1 --target=i686-pc-linux-gnu -nostdlib --rtlib=compiler-rt -fuse-ld=ld -resource-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/resource_dir -lclang_rt.builtins-i686 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CHECK-LINUX-NOSTDLIB /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/nostdlib.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang '-###' /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/nostdlib.c -Wno-liblto --target=i686-pc-linux-gnu -nostdlib --rtlib=compiler-rt -fuse-ld=ld -resource-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/resource_dir -lclang_rt.builtins-i686
# 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-LINUX-NOSTDLIB /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/nostdlib.c
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/nostdlib.c:28:26: error: CHECK-LINUX-NOSTDLIB: expected string not found in input
# | // CHECK-LINUX-NOSTDLIB: warning: argument unused during compilation: '--rtlib=compiler-rt'
# | ^
# | <stdin>:1:1: note: scanning from here
# | clang version 24.0.0git (https://github.com/llvm/llvm-project 6c981313a57875681047dfbe09917bdf1bc0ebb5)
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/nostdlib.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: clang version 24.0.0git (https://github.com/llvm/llvm-project 6c981313a57875681047dfbe09917bdf1bc0ebb5)
# | check:28'0 { search range start (exclusive)
# | check:28'1 error: no match found in search range
# | 2: Target: i686-pc-linux-gnu
# | 3: Thread model: posix
# | 4: InstalledDir: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin
# | 5: Build config: +assertions
# | 6: "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-24" "-cc1" "-triple" "i686-pc-linux-gnu" "-emit-obj" "-dumpdir" "a-" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "nostdlib.c" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=all" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "pentium4" "-tune-cpu" "generic" "-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/clang/test/Driver/Inputs/resource_dir" "-internal-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/resource_dir/include" "-internal-isystem" "/usr/local/include" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-Wno-liblto" "-ferror-limit" "19" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-faddrsig" "-fdwarf2-cfi-asm" "-o" "/tmp/lit-tmp-fbwdd2w2/nostdlib-db2015.o" "-x" "c" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/nostdlib.c"
# | 7: "/usr/bin/ld" "-z" "relro" "--hash-style=gnu" "--eh-frame-hdr" "-m" "elf_i386" "-pie" "-dynamic-linker" "/lib/ld-linux.so.2" "-o" "a.out" "-L/lib" "-L/usr/lib" "/tmp/lit-tmp-fbwdd2w2/nostdlib-db2015.o" "-lclang_rt.builtins-i686"
# | check:28'2 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# 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/245160
More information about the cfe-commits
mailing list