[clang] [clang] Fix --entry command line option (PR #69114)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 22 09:13:12 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 88208 tests passed
* 1644 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.Driver/linker-opts.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/linker-opts.c.tmp
# executed command: rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/linker-opts.c.tmp
# note: command had no output on stdout or stderr
# RUN: at line 2
mkdir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/linker-opts.c.tmp
# executed command: mkdir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/linker-opts.c.tmp
# note: command had no output on stdout or stderr
# RUN: at line 4
env LIBRARY_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/linker-opts.c.tmp/test1 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target x86_64-unknown-linux-gnu /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/linker-opts.c -la -### 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/linker-opts.c
# executed command: env LIBRARY_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/linker-opts.c.tmp/test1 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target x86_64-unknown-linux-gnu /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/linker-opts.c -la '-###'
# 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/linker-opts.c
# note: command had no output on stdout or stderr
# RUN: at line 13
env LIBRARY_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/linker-opts.c.tmp/test1 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target x86_64-apple-darwin /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/linker-opts.c -la -### 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/linker-opts.c
# executed command: env LIBRARY_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/linker-opts.c.tmp/test1 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target x86_64-apple-darwin /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/linker-opts.c -la '-###'
# 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/linker-opts.c
# note: command had no output on stdout or stderr
# RUN: at line 14
env LIBRARY_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/linker-opts.c.tmp/test1 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target i386-apple-darwin /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/linker-opts.c -la -### 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/linker-opts.c
# executed command: env LIBRARY_PATH=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/linker-opts.c.tmp/test1 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target i386-apple-darwin /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/linker-opts.c -la '-###'
# 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/linker-opts.c
# note: command had no output on stdout or stderr
# RUN: at line 17
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -Xclang -I. -x c /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/linker-opts.c -c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/linker-opts.c.tmp/tmp.o
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -Xclang -I. -x c /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/linker-opts.c -c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/linker-opts.c.tmp/tmp.o
# note: command had no output on stdout or stderr
# RUN: at line 18
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -### -I. -ibuiltininc -nobuiltininc -nostdinc -nostdinc++ -nostdlibinc -nogpuinc /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/linker-opts.c.tmp/tmp.o -Wno-msvc-not-found -o /dev/null 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /dev/null --implicit-check-not=warning:
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang '-###' -I. -ibuiltininc -nobuiltininc -nostdinc -nostdinc++ -nostdlibinc -nogpuinc /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/linker-opts.c.tmp/tmp.o -Wno-msvc-not-found -o /dev/null
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /dev/null --implicit-check-not=warning:
# note: command had no output on stdout or stderr
# RUN: at line 21
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/linker-opts.c -lfoo -c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/linker-opts.c.tmp/tmp2.o -### 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/linker-opts.c --check-prefix=UNUSED
# 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/linker-opts.c -lfoo -c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/linker-opts.c.tmp/tmp2.o '-###'
# 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/linker-opts.c --check-prefix=UNUSED
# note: command had no output on stdout or stderr
# RUN: at line 25
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -### -target x86_64-unknown-linux-gnu --entry test /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/linker-opts.c 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=ENTRY /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/linker-opts.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang '-###' -target x86_64-unknown-linux-gnu --entry test /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/linker-opts.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=ENTRY /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/linker-opts.c
# note: command had no output on stdout or stderr
# RUN: at line 26
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -### -target x86_64-unknown-linux-gnu --entry=test /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/linker-opts.c 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=ENTRY /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/linker-opts.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang '-###' -target x86_64-unknown-linux-gnu --entry=test /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/linker-opts.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=ENTRY /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/linker-opts.c
# 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 -### -target x86_64-unknown-linux-gnu -etest /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/linker-opts.c 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=ENTRY /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/linker-opts.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang '-###' -target x86_64-unknown-linux-gnu -etest /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/linker-opts.c
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=ENTRY /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/linker-opts.c
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/linker-opts.c:29:11: error: ENTRY: expected string not found in input
# | // ENTRY: "-e" "test"
# | ^
# | <stdin>:1:1: note: scanning from here
# | clang: error: unknown argument: '-etest'
# | ^
# | <stdin>:1:33: note: possible intended match here
# | clang: error: unknown argument: '-etest'
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/linker-opts.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: clang: error: unknown argument: '-etest'
# | check:29'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | check:29'1 ? possible intended match
# | 2: clang version 23.0.0git (https://github.com/llvm/llvm-project 6eeeb799de2541c58e20beaa768f4e9ce6331b44)
# | check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 3: Target: x86_64-unknown-linux-gnu
# | check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 4: Thread model: posix
# | check:29'0 ~~~~~~~~~~~~~~~~~~~~
# | 5: InstalledDir: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin
# | check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 6: Build config: +assertions
# | check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# 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/69114
More information about the cfe-commits
mailing list