Description
latest linux-next kernel (6.16.0-rc4+) from git and LLD 21.0.0 on fedora rawhide
$ make LLVM=1 -j4
LD vmlinux.o
[...]
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: ld.lld -m elf_x86_64 -mllvm -import-instr-limit=5 -z noexecstack -r -o vmlinux.o -T .tmp_initcalls.lds --whole-archive vmlinux.a --no-whole-archive --start-group --end-group
-
Running pass 'Function Pass Manager' on module 'ld-temp.o'.
-
Running pass 'Expand large div/rem' on function '@connector_id_show'
#0 0x00007feb9146b559 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/lib64/libLLVM.so.21.0pre20250630.g613222ec332bb6+0x506b559)
#1 0x00007feb9146ba7d (/lib64/libLLVM.so.21.0pre20250630.g613222ec332bb6+0x506ba7d)
#2 0x00007feb8be28bf0 __restore_rt (/lib64/libc.so.6+0x19bf0)
#3 0x00007feb90dd19a2 (/lib64/libLLVM.so.21.0pre20250630.g613222ec332bb6+0x49d19a2)
#4 0x00007feb909f9a49 llvm::FPPassManager::runOnFunction(llvm::Function&) (/lib64/libLLVM.so.21.0pre20250630.g613222ec332bb6+0x45f9a49)
#5 0x00007feb909f9303 llvm::FPPassManager::runOnModule(llvm::Module&) (/lib64/libLLVM.so.21.0pre20250630.g613222ec332bb6+0x45f9303)
#6 0x00007feb909f59e8 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/lib64/libLLVM.so.21.0pre20250630.g613222ec332bb6+0x45f59e8)
#7 0x00007feb922663bd (/lib64/libLLVM.so.21.0pre20250630.g613222ec332bb6+0x5e663bd)
#8 0x00007feb92265641 llvm::lto::backend(llvm::lto::Config const&, std::function<llvm::Expected<std::unique_ptr<llvm::CachedFileStream, std::default_deletellvm::CachedFileStream>> (unsigned int, llvm::Twine const&)>, unsigned int, llvm::Module&, llvm::ModuleSummaryIndex&) (/lib64/libLLVM.so.21.0pre20250630.g613222ec332bb6+0x5e65641)
#9 0x00007feb92250532 llvm::lto::LTO::runRegularLTO(std::function<llvm::Expected<std::unique_ptr<llvm::CachedFileStream, std::default_deletellvm::CachedFileStream>> (unsigned int, llvm::Twine const&)>) (/lib64/libLLVM.so.21.0pre20250630.g613222ec332bb6+0x5e50532)
#10 0x00007feb9224fa51 llvm::lto::LTO::run(std::function<llvm::Expected<std::unique_ptr<llvm::CachedFileStream, std::default_deletellvm::CachedFileStream>> (unsigned int, llvm::Twine const&)>, llvm::FileCache) (/lib64/libLLVM.so.21.0pre20250630.g613222ec332bb6+0x5e4fa51)
#11 0x00007feb951ce5d0 lld::elf::BitcodeCompiler::compile() (/lib64/liblldELF.so.21.0pre20250630.g613222ec332bb6+0x1ce5d0)
#12 0x00007feb95126c33 (/lib64/liblldELF.so.21.0pre20250630.g613222ec332bb6+0x126c33)
#13 0x00007feb95108b45 lld::elf::LinkerDriver::linkerMain(llvm::ArrayRef<char const*>) (/lib64/liblldELF.so.21.0pre20250630.g613222ec332bb6+0x108b45)
#14 0x00007feb95105378 lld::elf::link(llvm::ArrayRef<char const*>, llvm::raw_ostream&, llvm::raw_ostream&, bool, bool) (/lib64/liblldELF.so.21.0pre20250630.g613222ec332bb6+0x105378)
#15 0x00007feb9535c5fc lld::unsafeLldMain(llvm::ArrayRef<char const*>, llvm::raw_ostream&, llvm::raw_ostream&, llvm::ArrayReflld::DriverDef, bool) (/lib64/liblldCommon.so.21.0pre20250630.g613222ec332bb6+0x155fc)
#16 0x00005651aa8f6a2b lld_main(int, char**, llvm::ToolContext const&) (/usr/bin/lld+0x3a2b)
#17 0x00005651aa8f68c0 main (/usr/bin/lld+0x38c0)
#18 0x00007feb8be125b5 __libc_start_call_main (/lib64/libc.so.6+0x35b5)
#19 0x00007feb8be12668 __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x3668)
#20 0x00005651aa8f6b75 _start (/usr/bin/lld+0x3b75)
make[2]: *** [scripts/Makefile.vmlinux_o:72: vmlinux.o] Error 139
make[1]: *** [/home/cam/linux/Makefile:1217: vmlinux_o] Error 2
make: *** [Makefile:248: __sub-make] Error 2
on second try it succeeded so i may not be able to reproduce