Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The imported target "clang-cpp" references the file [cmake] [cmake] "/usr/lib/llvm-20/lib/libclang-cpp.so.20.0" [cmake] [cmake] but this file does not exist. #109153

Closed
Zingam opened this issue Sep 18, 2024 · 3 comments

Comments

@Zingam
Copy link
Contributor

Zingam commented Sep 18, 2024

Configuring libc++ fails when using LLVM20 installed by llvm.sh on Ubuntu 24.04 Noble.

[cmake] CMake Error at /usr/lib/llvm-20/lib/cmake/clang/ClangTargets.cmake:847 (message):
[cmake] The imported target "clang-cpp" references the file
[cmake]
[cmake] "/usr/lib/llvm-20/lib/libclang-cpp.so.20.0"
[cmake]
[cmake] but this file does not exist. Possible reasons include:
[cmake]
[cmake] * The file was deleted, renamed, or moved to another location.
[cmake]
[cmake] * An install or uninstall procedure did not complete successfully.
[cmake]
[cmake] * The installation package was faulty and contained
[cmake]
[cmake] "/usr/lib/llvm-20/lib/cmake/clang/ClangTargets.cmake"

This is the latest issue in a series of issues related to LLVM19/20:
#107116
#99819
#108995

@kimgr
Copy link
Contributor

kimgr commented Sep 29, 2024

We're using the following workaround in IWYU CI: https://github.com/include-what-you-use/include-what-you-use/blob/5ac52caf1529630e6aa7932e0ea9382fca206fb4/.github/workflows/ci.yml#L50

@kimgr
Copy link
Contributor

kimgr commented Oct 6, 2024

This is fixed for both 19 and 20 as far as I can tell from the consuming side.

@sylvestre
Copy link
Collaborator

Yes. Thanks
Forgot to close it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants