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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to