[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 17 08:22:04 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 90430 tests passed
* 1690 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.Driver/cygwin.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -### /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/cygwin.cpp --target=i686-pc-windows-cygnus --sysroot=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cygwin_tree -resource-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/resource_dir --stdlib=platform 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CHECK /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/cygwin.cpp
# 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/cygwin.cpp --target=i686-pc-windows-cygnus --sysroot=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cygwin_tree -resource-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/resource_dir --stdlib=platform
# 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 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/cygwin.cpp
# note: command had no output on stdout or stderr
# RUN: at line 24
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -### /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/cygwin.cpp --target=i686-pc-cygwin --sysroot=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cygwin_tree --stdlib=platform -static 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CHECK-STATIC /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/cygwin.cpp
# 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/cygwin.cpp --target=i686-pc-cygwin --sysroot=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cygwin_tree --stdlib=platform -static
# 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-STATIC /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/cygwin.cpp
# note: command had no output on stdout or stderr
# RUN: at line 31
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -### /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/cygwin.cpp --target=i686-pc-cygwin --sysroot=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cygwin_tree -shared 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CHECK-SHARED /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/cygwin.cpp
# 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/cygwin.cpp --target=i686-pc-cygwin --sysroot=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cygwin_tree -shared
# 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-SHARED /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/cygwin.cpp
# note: command had no output on stdout or stderr
# RUN: at line 37
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -### -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/cygwin.cpp.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/cygwin.cpp 2>&1 -no-integrated-as -fuse-ld=ld --gcc-toolchain=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cross_cygwin_tree/usr --target=i686-pc-cygwin | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CHECK-CROSS /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/cygwin.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang '-###' -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/cygwin.cpp.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/cygwin.cpp -no-integrated-as -fuse-ld=ld --gcc-toolchain=/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cross_cygwin_tree/usr --target=i686-pc-cygwin
# 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-CROSS /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/cygwin.cpp
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/cygwin.cpp:44:22: error: CHECK-CROSS-SAME: expected string not found in input
# | // CHECK-CROSS-SAME: "{{.*}}{{/|\\\\}}crt0.o"
# | ^
# | <stdin>:8:169: note: scanning from here
# | "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cross_cygwin_tree/usr/lib/gcc/i686-pc-msys/10/../../../../i686-pc-msys/bin/ld" "-m" "i386pe" "--wrap=_Znwj" "--wrap=_Znaj" "--wrap=_ZdlPv" "--wrap=_ZdaPv" "--wrap=_ZnwjRKSt9nothrow_t" "--wrap=_ZnajRKSt9nothrow_t" "--wrap=_ZdlPvRKSt9nothrow_t" "--wrap=_ZdaPvRKSt9nothrow_t" "-Bdynamic" "--dll-search-prefix=cyg" "--large-address-aware" "--tsaware" "-o" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/cygwin.cpp.tmp" "crt0.o" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cross_cygwin_tree/usr/lib/gcc/i686-pc-msys/10/crtbegin.o" "-L/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cross_cygwin_tree/usr/lib/gcc/i686-pc-msys/10" "-L/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cross_cygwin_tree/usr/lib/gcc/i686-pc-msys/10/../../../../i686-pc-msys/lib" "-L/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/../lib" "-L/lib" "-L/usr/lib" "--disable-nxcompat" "/tmp/lit-tmp-4c8xmggw/cygwin-074160.o" "-lgcc" "-lgcc_s" "-lc" "-lcygwin" "-ladvapi32" "-lshell32" "-luser32" "-lkernel32" "-lgcc" "-lgcc_s" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cross_cygwin_tree/usr/lib/gcc/i686-pc-msys/10/crtend.o"
# | ^
# | <stdin>:8:541: note: possible intended match here
# | "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cross_cygwin_tree/usr/lib/gcc/i686-pc-msys/10/../../../../i686-pc-msys/bin/ld" "-m" "i386pe" "--wrap=_Znwj" "--wrap=_Znaj" "--wrap=_ZdlPv" "--wrap=_ZdaPv" "--wrap=_ZnwjRKSt9nothrow_t" "--wrap=_ZnajRKSt9nothrow_t" "--wrap=_ZdlPvRKSt9nothrow_t" "--wrap=_ZdaPvRKSt9nothrow_t" "-Bdynamic" "--dll-search-prefix=cyg" "--large-address-aware" "--tsaware" "-o" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/cygwin.cpp.tmp" "crt0.o" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cross_cygwin_tree/usr/lib/gcc/i686-pc-msys/10/crtbegin.o" "-L/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cross_cygwin_tree/usr/lib/gcc/i686-pc-msys/10" "-L/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cross_cygwin_tree/usr/lib/gcc/i686-pc-msys/10/../../../../i686-pc-msys/lib" "-L/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/../lib" "-L/lib" "-L/usr/lib" "--disable-nxcompat" "/tmp/lit-tmp-4c8xmggw/cygwin-074160.o" "-lgcc" "-lgcc_s" "-lc" "-lcygwin" "-ladvapi32" "-lshell32" "-luser32" "-lkernel32" "-lgcc" "-lgcc_s" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cross_cygwin_tree/usr/lib/gcc/i686-pc-msys/10/crtend.o"
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/cygwin.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: clang version 24.0.0git (https://github.com/llvm/llvm-project 0e73e8e93b327f90d66e5abda2db5943440eb95c)
# | 2: Target: i686-pc-windows-cygnus
# | 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-windows-cygnus" "-S" "-dumpdir" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/cygwin.cpp.tmp-" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "cygwin.cpp" "-mrelocation-model" "static" "-mframe-pointer=all" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-no-integrated-as" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "pentium4" "-tune-cpu" "generic" "-debugger-tuning=gdb" "-fno-dwarf-directory-asm" "-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/24" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include" "-internal-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cross_cygwin_tree/usr/lib/gcc/i686-pc-msys/10/../../../../i686-pc-msys/include" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-internal-externc-isystem" "/usr/include/w32api" "-fdeprecated-macro" "-ferror-limit" "19" "-femulated-tls" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fcxx-exceptions" "-fexceptions" "-exception-model=dwarf" "-o" "/tmp/lit-tmp-4c8xmggw/cygwin-6674d3.s" "-x" "c++" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/cygwin.cpp"
# | 7: "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cross_cygwin_tree/usr/lib/gcc/i686-pc-msys/10/../../../../i686-pc-msys/bin/as" "--32" "-o" "/tmp/lit-tmp-4c8xmggw/cygwin-074160.o" "/tmp/lit-tmp-4c8xmggw/cygwin-6674d3.s"
# | 8: "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cross_cygwin_tree/usr/lib/gcc/i686-pc-msys/10/../../../../i686-pc-msys/bin/ld" "-m" "i386pe" "--wrap=_Znwj" "--wrap=_Znaj" "--wrap=_ZdlPv" "--wrap=_ZdaPv" "--wrap=_ZnwjRKSt9nothrow_t" "--wrap=_ZnajRKSt9nothrow_t" "--wrap=_ZdlPvRKSt9nothrow_t" "--wrap=_ZdaPvRKSt9nothrow_t" "-Bdynamic" "--dll-search-prefix=cyg" "--large-address-aware" "--tsaware" "-o" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/cygwin.cpp.tmp" "crt0.o" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cross_cygwin_tree/usr/lib/gcc/i686-pc-msys/10/crtbegin.o" "-L/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cross_cygwin_tree/usr/lib/gcc/i686-pc-msys/10" "-L/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cross_cygwin_tree/usr/lib/gcc/i686-pc-msys/10/../../../../i686-pc-msys/lib" "-L/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/../lib" "-L/lib" "-L/usr/lib" "--disable-nxcompat" "/tmp/lit-tmp-4c8xmggw/cygwin-074160.o" "-lgcc" "-lgcc_s" "-lc" "-lcygwin" "-ladvapi32" "-lshell32" "-luser32" "-lkernel32" "-lgcc" "-lgcc_s" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/basic_cross_cygwin_tree/usr/lib/gcc/i686-pc-msys/10/crtend.o"
# | same:44'0 { } search range (exclusive bounds)
# | same:44'1
# | ...
# `---data was truncated (10240/12233) (change limit with -D output_limit=N)
# 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/147960
More information about the cfe-commits
mailing list