Issue |
83986
|
Summary |
[LLVM18 Packaging] Incorrect symlinks to shared libraries
|
Labels |
new issue
|
Assignees |
|
Reporter |
kledom
|
**Description:**
I'm compiling include-what-you-use against LLVM 18 inside a docker container. The llvm-toolchain is installed using apt. Since Monday I am seeing errors when running iwyu:
```
> include-what-you-use --version
include-what-you-use: error while loading shared libraries: libclang-cpp.so.18.1: cannot open shared object file: No such file or directory
```
The problem is probably that the symlinks within `/usr/lib/x86_64-linux-gnu/` have to be adapted for version 18.1:
```
dpkg --contents ./libclang-cpp18_1%3a18.1.0~++20240302042158+461274b81d86-1~exp1~20240302162229.64_amd64.deb
drwxr-xr-x root/root 0 2024-03-02 16:22 ./
drwxr-xr-x root/root 0 2024-03-02 16:22 ./usr/
drwxr-xr-x root/root 0 2024-03-02 16:22 ./usr/lib/
drwxr-xr-x root/root 0 2024-03-02 16:22 ./usr/lib/llvm-18/
drwxr-xr-x root/root 0 2024-03-02 16:22 ./usr/lib/llvm-18/lib/
-rw-r--r-- root/root 65946936 2024-03-02 16:22 ./usr/lib/llvm-18/lib/libclang-cpp.so.18.1
drwxr-xr-x root/root 0 2024-03-02 16:22 ./usr/lib/x86_64-linux-gnu/
drwxr-xr-x root/root 0 2024-03-02 16:22 ./usr/share/
drwxr-xr-x root/root 0 2024-03-02 16:22 ./usr/share/doc/
drwxr-xr-x root/root 0 2024-03-02 16:22 ./usr/share/doc/libclang-cpp18/
-rw-r--r-- root/root 64007 2024-03-02 16:22 ./usr/share/doc/libclang-cpp18/changelog.Debian.gz
-rw-r--r-- root/root 6897 2024-03-02 16:21 ./usr/share/doc/libclang-cpp18/copyright
lrwxrwxrwx root/root 0 2024-03-02 16:22 ./libclang-cpp.so.18 -> ../llvm-18/lib/libclang-cpp.so.18
```
**Affected packages:**
```
apt-cache show llvm-18-dev | grep "Version"
Version: 1:18.1.0~++20240302042158+461274b81d86-1~exp1~20240302162229.64
```
```
apt-cache show libclang-cpp18 | grep "Version"
Version: 1:18.1.0~++20240302042158+461274b81d86-1~exp1~20240302162229.64
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs