Skip to content

[Packaging/LLVM20] libclang-20-dev from apt.llvm.org contains invalid symlink /usr/lib/llvm-20/lib/libclang-cpp.so.20.1 #110003

@TheRealCuran

Description

@TheRealCuran

While trying to build Mesa with LLVM 20 I encountered Mesa bug #11945, which was triggered by libclang-20-dev shipping an invalid Symlink (/usr/lib/llvm-20/lib/libclang-cpp.so.20.1) to a non-existent library (for amd64 eg. ../../x86_64-linux-gnu/libclang-cpp.so.20.1).

image

The invalid symlink switched the clover build in Mesa over to static linking. Mesa's missing static dependency will be fixed downstream, but it would be nice to be able to build Mesa with a link to clang-cpp.

The symlink should be /usr/lib/llvm-20/lib/libclang-cpp.so.20.0 pointing to ../../${DEB_HOST_MULTIARCH}/libclang-cpp.so.20.0. Please correct the build scripts accordingly.

Please note: this might be a duplicate of #109153 or the two are very likely at least closely related. Since I do install my packages from apt.llvm.org and do not use llvm.sh, I will, however, not make such presumptions. Feel free to merge the tickets, if you believe it is the same.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions