Bug#1068225: llvm-18-linker-tools: lacks LLVMgold-18.so , failed to configure with CMake.
Kyuma Ohta
whatisthis.sowhat at gmail.com
Tue Apr 2 08:51:43 BST 2024
Package: llvm-18-linker-tools
Version: 1:18.1.2-1+b1
Severity: important
Dear Maintainer,
After updating to 1:18.1.2 , configuring C++ program with cmake fails.
This will be built with Link-Time-Optimization.So, CMAKE_CXX_FLAGS has
"-flto".
Error is With below messages :
--- BEGIN ---
-- The C compiler identification is Clang 18.1.2
-- The CXX compiler identification is Clang 18.1.2
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /usr/bin/clang-18
-- Check for working C compiler: /usr/bin/clang-18 - broken
CMake Error at
/usr/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"/usr/bin/clang-18"
is not able to compile a simple test program.
It fails with the following output:
Change Dir:
'/home/xxxx/src/common_source_project-fm7/source/build/CMakeFiles/CMakeScratch/TryCompile-3HpiTf'
Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1
/usr/bin/gmake -f Makefile cmTC_b7f7a/fast
/usr/bin/gmake -f CMakeFiles/cmTC_b7f7a.dir/build.make
CMakeFiles/cmTC_b7f7a.dir/build
gmake[1]: Entering directory
'/home/xxxx/src/common_source_project-fm7/source/build/CMakeFiles/CMakeScratch/TryCompile-3HpiTf'
Building C object CMakeFiles/cmTC_b7f7a.dir/testCCompiler.c.o
/usr/bin/clang-18 -O3 -flto -msse -msse2
-Wreserved-user-defined-literal -gdwarf -gz -MD -MT
CMakeFiles/cmTC_b7f7a.dir/testCCompiler.c.o -MF
CMakeFiles/cmTC_b7f7a.dir/testCCompiler.c.o.d -o
CMakeFiles/cmTC_b7f7a.dir/testCCompiler.c.o -c
/home/xxxx/src/common_source_project-fm7/source/build/CMakeFiles/CMakeScratch/TryCompile-3HpiTf/testCCompiler.c
Linking C executable cmTC_b7f7a
/usr/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_b7f7a.dir/link.txt --verbose=1
/usr/bin/clang-18 -O3 -flto -msse -msse2
-Wreserved-user-defined-literal -gdwarf -gz -rdynamic
CMakeFiles/cmTC_b7f7a.dir/testCCompiler.c.o -o cmTC_b7f7a
/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
clang-18: error: linker command failed with exit code 1 (use -v to
see invocation)
gmake[1]: *** [CMakeFiles/cmTC_b7f7a.dir/build.make:100:
cmTC_b7f7a] Error 1
gmake[1]: Leaving directory
'/home/xxxx/src/common_source_project-fm7/source/build/CMakeFiles/CMakeScratch/TryCompile-3HpiTf'
gmake: *** [Makefile:127: cmTC_b7f7a/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:17 (project)
--- END ---
I checked /usr/lib/llvm-18/lib , updated package don't have
LLVMgold.so , this is LTO plugin with ld.gold .
Before 18.1.1 , this plugin exitsed.
Regards,
Ohta.
-- System Information:
Debian Release: trixie/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-security'), (500, 'oldstable-security'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.8.2-homebrew-15.0-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages llvm-18-linker-tools depends on:
ii libc6 2.37-15.1
ii libllvm18 1:18.1.2-1+b1
ii libstdc++6 14-20240330-1
llvm-18-linker-tools recommends no packages.
llvm-18-linker-tools suggests no packages.
-- debconf-show failed
More information about the Pkg-llvm-team
mailing list