Skip to content

Missing /usr/lib/llvm-14/lib/libclang-14.so.14.0.0 after installation #51163

@carlosgalvezp

Description

@carlosgalvezp
Bugzilla Link 51821
Resolution FIXED
Resolved on Oct 11, 2021 07:23
Version unspecified
OS Linux
CC @viccie30

Extended Description

Hi,

Currently on clang trunk bionic (14~%2b%2b20210910063816%2b14afbe9448d5-1exp120210910164619.2666) the following file is missing after installation:

/usr/lib/llvm-14/libclang-14.so.14.0.0

Indeed:

find /usr/ -iname libclang-14*.so*

/usr/lib/x86_64-linux-gnu/libclang-14.so.14.0.0
/usr/lib/x86_64-linux-gnu/libclang-14.so
/usr/lib/x86_64-linux-gnu/libclang-14.so.1
/usr/lib/x86_64-linux-gnu/libclang-14.so.13
/usr/lib/llvm-14/lib/libclang-14.so
/usr/lib/llvm-14/lib/libclang-14.so.1
/usr/lib/llvm-14/lib/libclang-14.0.0.so

This causes trouble building packages that use CMake to find Clang, for example "include-what-you-use":

CMake Error at /usr/lib/llvm-14/lib/cmake/clang/ClangTargets.cmake:709 (message):
The imported target "libclang" references the file

 "/usr/lib/llvm-14/lib/libclang-14.so.14.0.0"

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-14/lib/cmake/clang/ClangTargets.cmake"

but not all the files it references.

Call Stack (most recent call first):
/usr/lib/cmake/clang-14/ClangConfig.cmake:20 (include)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions