Lachlan-Frawley wrote: I've re-done this test with the latest main, and I still get the issue.
Before fix is applied (showing bad resource paths): ``` clang version 23.0.0git (https://github.com/llvm/llvm-project.git a63a548b5ba6eeb3adf55eefcfa08ec742af8550) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: Found candidate GCC installation: /../lib/gcc/x86_64-pc-linux-gnu/15.2.1 Found candidate GCC installation: /../lib64/gcc/x86_64-pc-linux-gnu/15.2.1 Selected GCC installation: /../lib64/gcc/x86_64-pc-linux-gnu/15.2.1 Candidate multilib: .;@m64 Candidate multilib: 32;@m32 Selected multilib: .;@m64 ignoring nonexistent directory "lib/clang/23/include" ignoring nonexistent directory "/../lib64/gcc/x86_64-pc-linux-gnu/15.2.1/../../../../x86_64-pc-linux-gnu/include" ignoring nonexistent directory "/include" #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/include End of search list. my-cpp-header.h:4:10: fatal error: 'cstdint' file not found MY_CONSTEXPR_VALUE -> 0 ``` After changes here are applied (correct resource paths): ``` clang version 23.0.0git (https://github.com/llvm/llvm-project.git a63a548b5ba6eeb3adf55eefcfa08ec742af8550) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /home/workspace/workspace/libclang-bad-resource-paths/llvm-project/build/lib Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/15.2.1 Found candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/15.2.1 Selected GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/15.2.1 Candidate multilib: .;@m64 Candidate multilib: 32;@m32 Selected multilib: .;@m64 ignoring nonexistent directory "/usr/lib64/gcc/x86_64-pc-linux-gnu/15.2.1/../../../../x86_64-pc-linux-gnu/include" ignoring nonexistent directory "/include" #include "..." search starts here: #include <...> search starts here: /home/workspace/workspace/libclang-bad-resource-paths/llvm-project/build/lib/../include/x86_64-unknown-linux-gnu/c++/v1 /home/workspace/workspace/libclang-bad-resource-paths/llvm-project/build/lib/../include/c++/v1 /home/workspace/workspace/libclang-bad-resource-paths/llvm-project/build/lib/clang/23/include /home/workspace/workspace/libclang-bad-resource-paths/llvm-project/build/lib/../include/x86_64-unknown-linux-gnu /usr/local/include /usr/include End of search list. MY_CONSTEXPR_VALUE -> 6 ``` I'm also not using the python API, my MRE program is C++. https://github.com/llvm/llvm-project/pull/164234 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
