[clang] [clang][Driver] Fix libc++ include path on FreeBSD (PR #212725)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 29 02:50:04 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 55861 tests passed
* 1429 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.Driver/freebsd.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\clang.exe --driver-mode=g++ C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp -### --target=amd64-unknown-freebsd -stdlib=platform 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=CHECK-DEFAULT C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' --driver-mode=g++ 'C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp' '-###' --target=amd64-unknown-freebsd -stdlib=platform
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefix=CHECK-DEFAULT 'C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp'
# note: command had no output on stdout or stderr
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\clang.exe --driver-mode=g++ C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp -### --target=amd64-unknown-freebsd10.0 -stdlib=platform 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=CHECK-DEFAULT C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' --driver-mode=g++ 'C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp' '-###' --target=amd64-unknown-freebsd10.0 -stdlib=platform
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefix=CHECK-DEFAULT 'C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp'
# note: command had no output on stdout or stderr
# RUN: at line 5
c:\_work\llvm-project\llvm-project\build\bin\clang.exe --driver-mode=g++ C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp -### --target=amd64-unknown-freebsd -stdlib=libc++ 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=CHECK-DEFAULT C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' --driver-mode=g++ 'C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp' '-###' --target=amd64-unknown-freebsd -stdlib=libc++
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefix=CHECK-DEFAULT 'C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp'
# note: command had no output on stdout or stderr
# RUN: at line 7
c:\_work\llvm-project\llvm-project\build\bin\clang.exe --driver-mode=g++ C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp -### --target=amd64-unknown-freebsd -stdlib=libstdc++ 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=CHECK-STDLIBCXX C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' --driver-mode=g++ 'C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp' '-###' --target=amd64-unknown-freebsd -stdlib=libstdc++
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefix=CHECK-STDLIBCXX 'C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp'
# note: command had no output on stdout or stderr
# RUN: at line 12
c:\_work\llvm-project\llvm-project\build\bin\clang.exe --driver-mode=g++ C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp -### -pg --target=amd64-unknown-freebsd -stdlib=platform 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=CHECK-PG-DEFAULT C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' --driver-mode=g++ 'C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp' '-###' -pg --target=amd64-unknown-freebsd -stdlib=platform
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefix=CHECK-PG-DEFAULT 'C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp'
# note: command had no output on stdout or stderr
# RUN: at line 14
c:\_work\llvm-project\llvm-project\build\bin\clang.exe --driver-mode=g++ C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp -### -pg --target=amd64-unknown-freebsd14.0 -stdlib=platform 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=CHECK-PG-FOURTEEN C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' --driver-mode=g++ 'C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp' '-###' -pg --target=amd64-unknown-freebsd14.0 -stdlib=platform
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefix=CHECK-PG-FOURTEEN 'C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp'
# note: command had no output on stdout or stderr
# RUN: at line 16
c:\_work\llvm-project\llvm-project\build\bin\clang.exe --driver-mode=g++ C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp -### -pg --target=amd64-unknown-freebsd10.0 -stdlib=platform 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=CHECK-PG-TEN C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' --driver-mode=g++ 'C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp' '-###' -pg --target=amd64-unknown-freebsd10.0 -stdlib=platform
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefix=CHECK-PG-TEN 'C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp'
# note: command had no output on stdout or stderr
# RUN: at line 23
c:\_work\llvm-project\llvm-project\build\bin\clang.exe --driver-mode=g++ C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp -### -fsyntax-only 2>&1 --target=amd64-unknown-freebsd --sysroot=C:\_work\llvm-project\llvm-project\clang\test\Driver/Inputs/basic_openbsd_libcxx_tree -resource-dir=C:\_work\llvm-project\llvm-project\clang\test\Driver/Inputs/resource_dir | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefix=CHECK-LIBCXX-SYSROOT C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' --driver-mode=g++ 'C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp' '-###' -fsyntax-only --target=amd64-unknown-freebsd '--sysroot=C:\_work\llvm-project\llvm-project\clang\test\Driver/Inputs/basic_openbsd_libcxx_tree' '-resource-dir=C:\_work\llvm-project\llvm-project\clang\test\Driver/Inputs/resource_dir'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefix=CHECK-LIBCXX-SYSROOT 'C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp:30:31: error: CHECK-LIBCXX-SYSROOT-SAME: expected string not found in input
# | // CHECK-LIBCXX-SYSROOT-SAME: "-internal-isystem" "[[SYSROOT]]/usr/include/c++/v1"
# | ^
# | <stdin>:7:833: note: scanning from here
# | "C:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang.exe" "-cc1" "-triple" "amd64-unknown-freebsd" "-fsyntax-only" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "freebsd.cpp" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=all" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "x86-64" "-tune-cpu" "generic" "-debugger-tuning=gdb" "-fdebug-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Driver" "-fcoverage-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Driver" "-resource-dir" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/resource_dir" "-isysroot" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/basic_openbsd_libcxx_tree" "-internal-isystem" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/basic_openbsd_libcxx_tree\\usr\\include\\c++\\v1" "-internal-isystem" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/resource_dir\\include" "-internal-externc-isystem" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/basic_openbsd_libcxx_tree/usr/include" "-fdeprecated-macro" "-ferror-limit" "19" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fcxx-exceptions" "-fexceptions" "-faddrsig" "-fdwarf2-cfi-asm" "-x" "c++" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver\\freebsd.cpp"
# | ^
# | <stdin>:7:833: note: with "SYSROOT" equal to "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/basic_openbsd_libcxx_tree"
# | "C:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang.exe" "-cc1" "-triple" "amd64-unknown-freebsd" "-fsyntax-only" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "freebsd.cpp" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=all" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "x86-64" "-tune-cpu" "generic" "-debugger-tuning=gdb" "-fdebug-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Driver" "-fcoverage-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Driver" "-resource-dir" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/resource_dir" "-isysroot" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/basic_openbsd_libcxx_tree" "-internal-isystem" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/basic_openbsd_libcxx_tree\\usr\\include\\c++\\v1" "-internal-isystem" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/resource_dir\\include" "-internal-externc-isystem" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/basic_openbsd_libcxx_tree/usr/include" "-fdeprecated-macro" "-ferror-limit" "19" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fcxx-exceptions" "-fexceptions" "-faddrsig" "-fdwarf2-cfi-asm" "-x" "c++" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver\\freebsd.cpp"
# | ^
# | <stdin>:7:834: note: possible intended match here
# | "C:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang.exe" "-cc1" "-triple" "amd64-unknown-freebsd" "-fsyntax-only" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "freebsd.cpp" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=all" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "x86-64" "-tune-cpu" "generic" "-debugger-tuning=gdb" "-fdebug-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Driver" "-fcoverage-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Driver" "-resource-dir" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/resource_dir" "-isysroot" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/basic_openbsd_libcxx_tree" "-internal-isystem" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/basic_openbsd_libcxx_tree\\usr\\include\\c++\\v1" "-internal-isystem" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/resource_dir\\include" "-internal-externc-isystem" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/basic_openbsd_libcxx_tree/usr/include" "-fdeprecated-macro" "-ferror-limit" "19" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fcxx-exceptions" "-fexceptions" "-faddrsig" "-fdwarf2-cfi-asm" "-x" "c++" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver\\freebsd.cpp"
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Driver\freebsd.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: clang version 24.0.0git (https://github.com/llvm/llvm-project 551ebf6a033dc80bc99048ee1079dc2e7e6665c3)
# | 2: Target: amd64-unknown-freebsd
# | 3: Thread model: posix
# | 4: InstalledDir: C:\_work\llvm-project\llvm-project\build\bin
# | 5: Build config: +assertions
# | 6: (in-process)
# | 7: "C:\\_work\\llvm-project\\llvm-project\\build\\bin\\clang.exe" "-cc1" "-triple" "amd64-unknown-freebsd" "-fsyntax-only" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "freebsd.cpp" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=all" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "x86-64" "-tune-cpu" "generic" "-debugger-tuning=gdb" "-fdebug-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Driver" "-fcoverage-compilation-dir=C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Driver" "-resource-dir" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/resource_dir" "-isysroot" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/basic_openbsd_libcxx_tree" "-internal-isystem" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/basic_openbsd_libcxx_tree\\usr\\include\\c++\\v1" "-internal-isystem" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/resource_dir\\include" "-internal-externc-isystem" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver/Inputs/basic_openbsd_libcxx_tree/usr/include" "-fdeprecated-macro" "-ferror-limit" "19" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fcxx-exceptions" "-fexceptions" "-faddrsig" "-fdwarf2-cfi-asm" "-x" "c++" "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Driver\\freebsd.cpp"
# | same:30'0 {
# | ...
# `---data was truncated (10240/15439) (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/212725
More information about the cfe-commits
mailing list