llvm-dev installs LLVMgold.so symlink only - dangling to no target

Bug #2071575 reported by Daniel Black
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
llvm-toolchain-18 (Ubuntu)
New
Undecided
Unassigned

Bug Description

While compiling with clang

cd /build/libservices && /usr/bin/clang -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/source/wsrep-lib/include -I/source/wsrep-lib/wsrep-API/v26 -I/build/include -I/source/include -O2 -g -DNDEBUG -U_FORTIFY_SOURCE -fsanitize=address -fPIC -fsanitize=undefined -fno-sanitize=alignment -U_FORTIFY_SOURCE -DWITH_UBSAN -fno-omit-frame-pointer -DDBUG_OFF -Wall -Wdeclaration-after-statement -Wenum-compare -Wenum-conversion -Wextra -Wformat-security -Winconsistent-missing-override -Wno-format-truncation -Wno-init-self -Wno-null-conversion -Wno-unused-parameter -Wno-unused-private-field -Wnon-virtual-dtor -Woverloaded-virtual -Wsuggest-override -Wvla -Wwrite-strings -std=gnu99 -fPIC -MD -MT libservices/CMakeFiles/mysqlservices.dir/debug_sync_service.c.o -MF CMakeFiles/mysqlservices.dir/debug_sync_service.c.o.d -o CMakeFiles/mysqlservices.dir/debug_sync_service.c.o -c /source/libservices/debug_sync_service.c
/usr/bin/ld: /usr/lib/llvm-18/bin/../lib/LLVMgold.so: error loading plugin: /usr/lib/llvm-18/bin/../lib/LLVMgold.so: cannot open shared object file: No such file or directory

$dpkg -L llvm-dev | grep gold
/usr/lib/LLVMgold.so
$ ls -la /usr/lib/LLVMgold.so
lrwxrwxrwx. 1 root root 23 Mar 30 11:19 /usr/lib/LLVMgold.so -> llvm-18/lib/LLVMgold.so

PRETTY_NAME="Ubuntu 24.04 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

description: updated
summary: - llvm-dev installs LLVMgold.so in wrong location
+ llvm-dev installs LLVMgold.so symlink only - dangling to no target
Revision history for this message
Daniel Black (daniel-black) wrote :

llvm-18-linker-tools from the llvm-toolchain-18 source appears to be the one responsible for the installed based on the other linker-tools packages.

affects: llvm-defaults (Ubuntu) → llvm-toolchain-18 (Ubuntu)
Revision history for this message
Shengjing Zhu (zhsj) wrote :

Duplicated with https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-18/+bug/2064187
The fix is waiting to be released to noble.

Revision history for this message
Daniel Black (daniel-black) wrote :

Thank you.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.