[llvm-bugs] [Bug 42432] New: clang_shared target refers to non-existent file
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jun 28 03:03:58 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42432
Bug ID: 42432
Summary: clang_shared target refers to non-existent file
Product: Packaging
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: deb packages
Assignee: unassignedbugs at nondot.org
Reporter: kim.grasman at gmail.com
CC: llvm-bugs at lists.llvm.org
Using `find_package(Clang)` with the clang-9 package from https://apt.llvm.org
consistently fails with:
CMake Error at /usr/lib/llvm-9/lib/cmake/clang/ClangTargets.cmake:565
(message):
The imported target "clang_shared" references the file
"/usr/lib/llvm-9/lib/libclang_shared.so.9"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/llvm-9/lib/cmake/clang/ClangTargets.cmake"
but not all the files it references.
I've managed to work around this by patching out the clang_shared target from
the CLang config files:
https://github.com/include-what-you-use/include-what-you-use/pull/692/commits/f7a1cfd6b7ad52fc5e628f17e272e05e3866b18c
This bug renders the Clang package unusable for tools using CMake, so it would
be nice to either strip out the target or include the binary (in the clang
package, because that's where the .cmake modules are).
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190628/88455179/attachment.html>
More information about the llvm-bugs
mailing list