Bug#1075931: llvm-toolchain-18: Broken symbolic links in llvm packages
liuxiangyu
u122334 at gmail.com
Mon Jul 8 02:14:04 BST 2024
Source: llvm-toolchain-18
Version: 1:18.1.8-2~exp2
Severity: important
X-Debbugs-Cc: u122334 at gmail.com
Dear Maintainer,
Some of broken symbolic links are found in full installation of llvm-toolchain-18, in a sid + experimental schroot for amd64.
(In sid + experimental schroot for x86_64)
# apt-get -V -t experimental --auto-remove --purge --no-install-recommends install bolt-18 clang-18 clang-18-doc clang-18-examples clangd-18 clang-format-18 clang-tidy-18 clang-tools-18 flang-18 libbolt-18-dev libc++1-18 libc++-18-dev libc++-18-dev-wasm32 libc++abi1-18 libc++abi-18-dev libc++abi-18-dev-wasm32 libclang1-18 libclang-18-dev libclang-common-18-dev libclang-cpp18 libclang-cpp18-dev libclang-rt-18-dev libclang-rt-18-dev-wasm32 libclang-rt-18-dev-wasm64 libclc-18 libclc-18-dev libflang-18-dev libfuzzer-18-dev liblld-18 liblld-18-dev liblldb-18 liblldb-18-dev libllvm18 libllvm-18-ocaml-dev libllvmlibc-18-dev libmlir-18 libmlir-18-dev libomp-18-dev libomp-18-doc libomp5-18 libpolly-18-dev libunwind-18 libunwind-18-dev lld-18 lldb-18 llvm-18 llvm-18-dev llvm-18-doc llvm-18-examples llvm-18-linker-tools llvm-18-runtime llvm-18-tools mlir-18-tools python3-clang-18 python3-lldb-18
........
........
$ find -L /usr -type l
/usr/lib/x86_64-linux-gnu/libc++.a
/usr/lib/x86_64-linux-gnu/libc++experimental.a
/usr/lib/x86_64-linux-gnu/libc++abi.so
/usr/lib/x86_64-linux-gnu/libc++.so
find: ‘/usr/lib/ssl/private’: Permission denied
/usr/lib/python3/dist-packages/lldb/libLLVM-18.1.8.so.1
/usr/lib/python3/dist-packages/lldb/libLLVM-18.so.1
find: File system loop detected; ‘/usr/lib/llvm-18/build/Debug+Asserts’ is part of the same file system loop as ‘/usr/lib/llvm-18’.
find: File system loop detected; ‘/usr/lib/llvm-18/build/Release’ is part of the same file system loop as ‘/usr/lib/llvm-18’.
/usr/lib/llvm-18/build/lib/python3/dist-packages/lldb/libLLVM-18.1.8.so.1
/usr/lib/llvm-18/build/lib/python3/dist-packages/lldb/libLLVM-18.so.1
/usr/lib/llvm-18/lib/python3/dist-packages/lldb/libLLVM-18.1.8.so.1
/usr/lib/llvm-18/lib/python3/dist-packages/lldb/libLLVM-18.so.1
or
$ find /usr -xtype l
/usr/lib/x86_64-linux-gnu/libc++.a
/usr/lib/x86_64-linux-gnu/libc++experimental.a
/usr/lib/x86_64-linux-gnu/libc++abi.so
/usr/lib/x86_64-linux-gnu/libc++.so
/usr/lib/llvm-18/lib/python3/dist-packages/lldb/libLLVM-18.1.8.so.1
/usr/lib/llvm-18/lib/python3/dist-packages/lldb/libLLVM-18.so.1
Seems that the links in libc++abi-X.Y-dev.links.in, libc++-X.Y-dev.links.in and python3-lldb-X.Y.links.in are not pointing to the correct targets after closing #1067699, #1067005.
There should be some updates for links.in files above.
diff -Narup a/libc++abi-X.Y-dev.links.in b/libc++abi-X.Y-dev.links.in
--- a/libc++abi-X.Y-dev.links.in 2024-07-07 06:39:39.000000000 +0800
+++ b/libc++abi-X.Y-dev.links.in 2024-07-07 17:40:02.800193502 +0800
@@ -1 +1 @@
-usr/lib/llvm- at LLVM_VERSION@/lib/libc++abi.so /usr/lib/@DEB_HOST_MULTIARCH@/libc++abi.so
+usr/lib/llvm- at LLVM_VERSION@/lib/@DEB_HOST_MULTIARCH_LLVM@/libc++abi.so /usr/lib/@DEB_HOST_MULTIARCH@/libc++abi.so
diff -Narup a/libc++-X.Y-dev.links.in b/libc++-X.Y-dev.links.in
--- a/libc++-X.Y-dev.links.in 2024-07-07 06:39:39.000000000 +0800
+++ b/libc++-X.Y-dev.links.in 2024-07-07 17:41:27.170194537 +0800
@@ -1,4 +1,4 @@
-usr/lib/llvm- at LLVM_VERSION@/lib/libc++.so /usr/lib/@DEB_HOST_MULTIARCH@/libc++.so
-usr/lib/llvm- at LLVM_VERSION@/lib/libc++.a /usr/lib/@DEB_HOST_MULTIARCH@/libc++.a
+usr/lib/llvm- at LLVM_VERSION@/lib/@DEB_HOST_MULTIARCH_LLVM@/libc++.so /usr/lib/@DEB_HOST_MULTIARCH@/libc++.so
+usr/lib/llvm- at LLVM_VERSION@/lib/@DEB_HOST_MULTIARCH_LLVM@/libc++.a /usr/lib/@DEB_HOST_MULTIARCH@/libc++.a
usr/lib/llvm- at LLVM_VERSION@/include/c++/v1 /usr/include/c++/v1
-usr/lib/llvm- at LLVM_VERSION@/lib/libc++experimental.a /usr/lib/@DEB_HOST_MULTIARCH@/libc++experimental.a
+usr/lib/llvm- at LLVM_VERSION@/lib/@DEB_HOST_MULTIARCH_LLVM@/libc++experimental.a /usr/lib/@DEB_HOST_MULTIARCH@/libc++experimental.a
diff -Narup a/python3-lldb-X.Y.links.in b/python3-lldb-X.Y.links.in
--- a/python3-lldb-X.Y.links.in 2024-07-07 06:39:39.000000000 +0800
+++ b/python3-lldb-X.Y.links.in 2024-07-07 17:47:19.620198858 +0800
@@ -1,4 +1,4 @@
-usr/lib/@DEB_HOST_MULTIARCH@/libLLVM- at LLVM_VERSION_FULL@.so.1 usr/lib/llvm- at LLVM_VERSION@/lib/python3/dist-packages/lldb/libLLVM- at LLVM_VERSION_FULL@.so.1
-usr/lib/@DEB_HOST_MULTIARCH@/libLLVM- at LLVM_VERSION_FULL@.so.1 usr/lib/llvm- at LLVM_VERSION@/lib/python3/dist-packages/lldb/libLLVM- at LLVM_VERSION@.so.1
+usr/lib/@DEB_HOST_MULTIARCH@/libLLVM- at LLVM_VERSION@.so.1 usr/lib/llvm- at LLVM_VERSION@/lib/python3/dist-packages/lldb/libLLVM- at LLVM_VERSION_FULL@.so.1
+usr/lib/@DEB_HOST_MULTIARCH@/libLLVM- at LLVM_VERSION@.so.1 usr/lib/llvm- at LLVM_VERSION@/lib/python3/dist-packages/lldb/libLLVM- at LLVM_VERSION@.so.1
usr/lib/@DEB_HOST_MULTIARCH@/liblldb- at LLVM_VERSION@.so.1 usr/lib/llvm- at LLVM_VERSION@/lib/python3/dist-packages/lldb/_lldb.so
usr/lib/llvm- at LLVM_VERSION@/lib/python3/dist-packages/lldb/ usr/lib/python3/dist-packages/lldb
-- System Information:
Debian Release: 12.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'proposed-updates'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.6.35-02.custom.lfsdefaulthuge-sign (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/bash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
More information about the Pkg-llvm-team
mailing list