Bug#1118649: LLVM 21 ftbfs on x32 using the lld linker

Matthias Klose doko at debian.org
Thu Oct 23 14:37:04 BST 2025


Package: src:llvm-toolchain-21
Version: 1:21.1.4-2
Severity: important
Tags: sid forky
X-Debbugs-CC: debian-x32 at lists.debian.org

LLVM 21 ftbfs on x32 using the lld linker. The build log points to an 
issue in LLVM 19, however filing the issue for rechecking in 21.

Trying to build using the BFD linker now.

[...]
     cmakeVariables:
       CMAKE_CXX_FLAGS: "-fstack-protector-strong -Wformat 
-Werror=format-security -fcf-protection 
-Wno-unused-command-line-argument -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2"
       CMAKE_CXX_FLAGS_RELEASE: "-O3 -DNDEBUG"
       CMAKE_EXE_LINKER_FLAGS: "-Wl,-z,relro -Wl,--build-id -fuse-ld=lld"
       CMAKE_MODULE_PATH: 
"/build/reproducible-path/llvm-toolchain-21-21.1.4/llvm/cmake;/build/reproducible-path/llvm-toolchain-21-21.1.4/llvm/cmake/modules;/build/reproducible-path/llvm-toolchain-21-21.1.4/llvm/../cmake/Modules"
     buildResult:
       variable: "CXX_SUPPORTS_CUSTOM_LINKER"
       cached: true
       stdout: |
         Change Dir: 
'/build/reproducible-path/llvm-toolchain-21-21.1.4/build-llvm/CMakeFiles/CMakeScratch/TryCompile-uj58Ld'

         Run Build Command(s): /usr/bin/ninja -v cmTC_053c9
         [1/2] /usr/bin/g++ -DCXX_SUPPORTS_CUSTOM_LINKER 
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -fstack-protector-strong -Wformat 
-Werror=format-security -fcf-protection 
-Wno-unused-command-line-argument -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2  -O3 -DNDEBUG 
-std=c++17 -o CMakeFiles/cmTC_053c9.dir/src.cxx.o -c 
/build/reproducible-path/llvm-toolchain-21-21.1.4/build-llvm/CMakeFiles/CMakeScratch/TryCompile-uj58Ld/src.cxx
         [2/2] : && /usr/bin/g++ -fstack-protector-strong -Wformat 
-Werror=format-security -fcf-protection 
-Wno-unused-command-line-argument -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2  -O3 -DNDEBUG 
-Wl,-z,relro -Wl,--build-id -fuse-ld=lld 
CMakeFiles/cmTC_053c9.dir/src.cxx.o -o cmTC_053c9  -lm && :
         FAILED: cmTC_053c9
         : && /usr/bin/g++ -fstack-protector-strong -Wformat 
-Werror=format-security -fcf-protection 
-Wno-unused-command-line-argument -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2  -O3 -DNDEBUG 
-Wl,-z,relro -Wl,--build-id -fuse-ld=lld 
CMakeFiles/cmTC_053c9.dir/src.cxx.o -o cmTC_053c9  -lm && :
         PLEASE submit a bug report to 
https://github.com/llvm/llvm-project/issues/ and include the crash 
backtrace.
         Stack dump without symbol names (ensure you have 
llvm-symbolizer in your PATH or set the environment var 
`LLVM_SYMBOLIZER_PATH` to point to it):
         0  libLLVM.so.19.1 0xf124b048 
llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
         1  libLLVM.so.19.1 0xf1248c07 llvm::sys::RunSignalHandlers() + 87
         2  libLLVM.so.19.1 0xf124b751
         3  libc.so.6       0xf02c2c90
         4  libLLVM.so.19.1 0xf1127ab1
         collect2: fatal error: ld terminated with signal 11 
[Segmentation fault]
         compilation terminated.
         ninja: build stopped: subcommand failed.



More information about the Pkg-llvm-team mailing list