[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


            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
    The imported target "clang_shared" references the file
    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
    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:

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