[clang] Fix libclang finding the wrong resource paths (PR #164234)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 15 11:40:38 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 53243 tests passed
* 1025 tests skipped
* 2 tests failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.Index/record-completion-invocation.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
export LSAN_OPTIONS=detect_leaks=0
# executed command: export LSAN_OPTIONS=detect_leaks=0
# note: command had no output on stdout or stderr
# RUN: at line 2
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\Index\Output\record-completion-invocation.c.tmp
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Index\Output\record-completion-invocation.c.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 3
mkdir C:\_work\llvm-project\llvm-project\build\tools\clang\test\Index\Output\record-completion-invocation.c.tmp
# executed command: mkdir 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Index\Output\record-completion-invocation.c.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 4
env CINDEXTEST_INVOCATION_EMISSION_PATH=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Index\Output\record-completion-invocation.c.tmp not c:\_work\llvm-project\llvm-project\build\bin\c-index-test.exe -code-completion-at=C:\_work\llvm-project\llvm-project\clang\test\Index\record-completion-invocation.c:10:1 "-remap-file=C:\_work\llvm-project\llvm-project\clang\test\Index\record-completion-invocation.c,C:\_work\llvm-project\llvm-project\clang\test\Index/Inputs/record-parsing-invocation-remap.c" C:\_work\llvm-project\llvm-project\clang\test\Index\record-completion-invocation.c
# executed command: env 'CINDEXTEST_INVOCATION_EMISSION_PATH=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Index\Output\record-completion-invocation.c.tmp' not 'c:\_work\llvm-project\llvm-project\build\bin\c-index-test.exe' '-code-completion-at=C:\_work\llvm-project\llvm-project\clang\test\Index\record-completion-invocation.c:10:1' '-remap-file=C:\_work\llvm-project\llvm-project\clang\test\Index\record-completion-invocation.c,C:\_work\llvm-project\llvm-project\clang\test\Index/Inputs/record-parsing-invocation-remap.c' 'C:\_work\llvm-project\llvm-project\clang\test\Index\record-completion-invocation.c'
# .---command stderr------------
# | libclang: crash detected in code completion
# | Unable to perform code completion!
# `-----------------------------
# RUN: at line 5
cat C:\_work\llvm-project\llvm-project\build\tools\clang\test\Index\Output\record-completion-invocation.c.tmp/libclang-* | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Index\record-completion-invocation.c
# executed command: cat 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Index\Output\record-completion-invocation.c.tmp/libclang-*'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Index\record-completion-invocation.c'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Index\record-completion-invocation.c:12:11: error: CHECK: expected string not found in input
# | // CHECK: {"toolchain":"{{.*}}","libclang.operation":"complete","libclang.opts":1,"args":["clang","-fno-spell-checking","{{.*}}record-completion-invocation.c","-Xclang","-detailed-preprocessing-record","-fallow-editor-placeholders"],"invocation-args":["-code-completion-at={{.*}}record-completion-invocation.c:10:1"],"unsaved_file_hashes":[{"name":"{{.*}}record-completion-invocation.c","md5":"aee23773de90e665992b48209351d70e"}]}
# | ^
# | <stdin>:1:1: note: scanning from here
# | {"toolchain":"c:\\_work\\llvm-project\\llvm-project\\build","libclang.operation":"complete","libclang.opts":1,"args":["c:\\_work\\llvm-project\\llvm-project\\build\\bin\\libclang.dll","-fno-spell-checking","C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Index\\record-completion-invocation.c","-Xclang","-detailed-preprocessing-record","-fallow-editor-placeholders"],"invocation-args":["-code-completion-at=C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Index\\record-completion-invocation.c:10:1"],"unsaved_file_hashes":[{"name":"C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Index\\record-completion-invocation.c","md5":"aee23773de90e665992b48209351d70e"}]}
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Index\record-completion-invocation.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: {"toolchain":"c:\\_work\\llvm-project\\llvm-project\\build","libclang.operation":"complete","libclang.opts":1,"args":["c:\\_work\\llvm-project\\llvm-project\\build\\bin\\libclang.dll","-fno-spell-checking","C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Index\\record-completion-invocation.c","-Xclang","-detailed-preprocessing-record","-fallow-editor-placeholders"],"invocation-args":["-code-completion-at=C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Index\\record-completion-invocation.c:10:1"],"unsaved_file_hashes":[{"name":"C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Index\\record-completion-invocation.c","md5":"aee23773de90e665992b48209351d70e"}]}
# | check:12 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.Index/record-parsing-invocation.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
export LSAN_OPTIONS=detect_leaks=0
# executed command: export LSAN_OPTIONS=detect_leaks=0
# note: command had no output on stdout or stderr
# RUN: at line 2
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\Index\Output\record-parsing-invocation.c.tmp
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Index\Output\record-parsing-invocation.c.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 3
mkdir C:\_work\llvm-project\llvm-project\build\tools\clang\test\Index\Output\record-parsing-invocation.c.tmp
# executed command: mkdir 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Index\Output\record-parsing-invocation.c.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 4
env CINDEXTEST_INVOCATION_EMISSION_PATH=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Index\Output\record-parsing-invocation.c.tmp not c:\_work\llvm-project\llvm-project\build\bin\c-index-test.exe -test-load-source all C:\_work\llvm-project\llvm-project\clang\test\Index\record-parsing-invocation.c
# executed command: env 'CINDEXTEST_INVOCATION_EMISSION_PATH=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Index\Output\record-parsing-invocation.c.tmp' not 'c:\_work\llvm-project\llvm-project\build\bin\c-index-test.exe' -test-load-source all 'C:\_work\llvm-project\llvm-project\clang\test\Index\record-parsing-invocation.c'
# .---command stderr------------
# | libclang: crash detected during parsing: {
# | 'source_filename' : '(null)'
# | 'command_line_args' : ['c:\_work\llvm-project\llvm-project\build\bin\libclang.dll', 'C:\_work\llvm-project\llvm-project\clang\test\Index\record-parsing-invocation.c'],
# | 'unsaved_files' : [],
# | 'options' : 1,
# | }
# | Unable to load translation unit!
# | Failure: libclang crashed
# `-----------------------------
# RUN: at line 5
cat C:\_work\llvm-project\llvm-project\build\tools\clang\test\Index\Output\record-parsing-invocation.c.tmp/libclang-* | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Index\record-parsing-invocation.c
# executed command: cat 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Index\Output\record-parsing-invocation.c.tmp/libclang-*'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Index\record-parsing-invocation.c'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Index\record-parsing-invocation.c:28:11: error: CHECK: expected string not found in input
# | // CHECK: {"toolchain":"{{.*}}","libclang.operation":"parse","libclang.opts":1,"args":["clang","-fno-spell-checking","{{.*}}record-parsing-invocation.c","-Xclang","-detailed-preprocessing-record","-fallow-editor-placeholders"]}
# | ^
# | <stdin>:1:1: note: scanning from here
# | {"toolchain":"c:\\_work\\llvm-project\\llvm-project\\build","libclang.operation":"parse","libclang.opts":1,"args":["c:\\_work\\llvm-project\\llvm-project\\build\\bin\\libclang.dll","-fno-spell-checking","C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Index\\record-parsing-invocation.c","-Xclang","-detailed-preprocessing-record","-fallow-editor-placeholders"]}
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Index\record-parsing-invocation.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: {"toolchain":"c:\\_work\\llvm-project\\llvm-project\\build","libclang.operation":"parse","libclang.opts":1,"args":["c:\\_work\\llvm-project\\llvm-project\\build\\bin\\libclang.dll","-fno-spell-checking","C:\\_work\\llvm-project\\llvm-project\\clang\\test\\Index\\record-parsing-invocation.c","-Xclang","-detailed-preprocessing-record","-fallow-editor-placeholders"]}
# | check:28 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | >>>>>>
# `-----------------------------
# 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/164234
More information about the cfe-commits
mailing list