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
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
A symlink is sufficient to resolve:
/usr/lib/llvm-18/lib# ln -s /usr/lib/LLVMgold.so
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 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
/usr/bin/ld: /usr/lib/
$dpkg -L llvm-dev | grep gold LLVMgold. so
/usr/lib/
PRETTY_NAME="Ubuntu 24.04 LTS" CODENAME= noble /www.ubuntu. com/" /help.ubuntu. com/" /bugs.launchpad .net/ubuntu/" POLICY_ URL="https:/ /www.ubuntu. com/legal/ terms-and- policies/ privacy- policy" CODENAME= noble
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
VERSION_
ID=ubuntu
ID_LIKE=debian
HOME_URL="https:/
SUPPORT_URL="https:/
BUG_REPORT_URL="https:/
PRIVACY_
UBUNTU_
LOGO=ubuntu-logo
A symlink is sufficient to resolve:
/usr/lib/ llvm-18/ lib# ln -s /usr/lib/ LLVMgold. so