<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/98301>98301</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
The problem with compiling the kernel
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Dir137
</td>
</tr>
</table>
<pre>
/usr/include/c++/14.1.1/bits/stl_vector.h:1130: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = llvm::SUnit; _Alloc = std::allocator<llvm::SUnit>; reference = llvm::SUnit&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
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
1. Running pass 'Function Pass Manager' on module 'ld-temp.o'.
2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@ip6_rcv_core'
#0 0x00007cfca25caec0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/lib/libLLVM.so.18.1+0x7caec0)
#1 0x00007cfca25c7e9d (/usr/lib/libLLVM.so.18.1+0x7c7e9d)
#2 0x00007cfca1850ae0 (/usr/lib/libc.so.6+0x3cae0)
#3 0x00007cfca18a8e44 (/usr/lib/libc.so.6+0x94e44)
#4 0x00007cfca1850a30 raise (/usr/lib/libc.so.6+0x3ca30)
#5 0x00007cfca18384c3 abort (/usr/lib/libc.so.6+0x244c3)
#6 0x00007cfca1ad2d60 std::chrono::_V2::system_clock::now() /usr/src/debug/gcc/gcc/libstdc++-v3/src/c++11/chrono.cc:52:5
#7 0x00007cfca3124030 llvm::ScheduleDAGSDNodes::AddSchedEdges() (/usr/lib/libLLVM.so.18.1+0x1324030)
#8 0x00007cfca311bdfe (/usr/lib/libLLVM.so.18.1+0x131bdfe)
#9 0x00007cfca3211262 llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/usr/lib/libLLVM.so.18.1+0x1411262)
#10 0x00007cfca3214699 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/usr/lib/libLLVM.so.18.1+0x1414699)
#11 0x00007cfca3216807 (/usr/lib/libLLVM.so.18.1+0x1416807)
#12 0x00007cfca3218241 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/usr/lib/libLLVM.so.18.1+0x1418241)
#13 0x00007cfca6952928 (/usr/lib/libLLVM.so.18.1+0x4b52928)
#14 0x00007cfca2b548b9 (/usr/lib/libLLVM.so.18.1+0xd548b9)
#15 0x00007cfca279aba3 llvm::FPPassManager::runOnFunction(llvm::Function&) (/usr/lib/libLLVM.so.18.1+0x99aba3)
#16 0x00007cfca279ad04 llvm::FPPassManager::runOnModule(llvm::Module&) (/usr/lib/libLLVM.so.18.1+0x99ad04)
#17 0x00007cfca279c7cf llvm::legacy::PassManagerImpl::run(llvm::Module&) (/usr/lib/libLLVM.so.18.1+0x99c7cf)
#18 0x00007cfca46da015 (/usr/lib/libLLVM.so.18.1+0x28da015)
#19 0x00007cfca46da71b llvm::lto::backend(llvm::lto::Config const&, std::function<llvm::Expected<std::unique_ptr<llvm::CachedFileStream, std::default_delete<llvm::CachedFileStream>>> (unsigned int, llvm::Twine const&)>, unsigned int, llvm::Module&, llvm::ModuleSummaryIndex&) (/usr/lib/libLLVM.so.18.1+0x28da71b)
#20 0x00007cfca46ceebb llvm::lto::LTO::runRegularLTO(std::function<llvm::Expected<std::unique_ptr<llvm::CachedFileStream, std::default_delete<llvm::CachedFileStream>>> (unsigned int, llvm::Twine const&)>) (/usr/lib/libLLVM.so.18.1+0x28ceebb)
#21 0x00007cfca46cf3b3 llvm::lto::LTO::run(std::function<llvm::Expected<std::unique_ptr<llvm::CachedFileStream, std::default_delete<llvm::CachedFileStream>>> (unsigned int, llvm::Twine const&)>, std::function<llvm::Expected<std::function<llvm::Expected<std::unique_ptr<llvm::CachedFileStream, std::default_delete<llvm::CachedFileStream>>> (unsigned int, llvm::Twine const&)>> (unsigned int, llvm::StringRef, llvm::Twine const&)>) (/usr/lib/libLLVM.so.18.1+0x28cf3b3)
#22 0x00007cfcaa31fbda lld::elf::BitcodeCompiler::compile() (/usr/lib/liblldELF.so.18.1+0x11fbda)
#23 0x00007cfcaa2a42b6 lld::elf::LinkerDriver::link(llvm::opt::InputArgList&) (/usr/lib/liblldELF.so.18.1+0xa42b6)
#24 0x00007cfcaa2892e4 lld::elf::LinkerDriver::linkerMain(llvm::ArrayRef<char const*>) (/usr/lib/liblldELF.so.18.1+0x892e4)
#25 0x00007cfcaa28aed9 lld::elf::link(llvm::ArrayRef<char const*>, llvm::raw_ostream&, llvm::raw_ostream&, bool, bool) (/usr/lib/liblldELF.so.18.1+0x8aed9)
#26 0x00007cfcaa4c1cad lld::unsafeLldMain(llvm::ArrayRef<char const*>, llvm::raw_ostream&, llvm::raw_ostream&, llvm::ArrayRef<lld::DriverDef>, bool) (/usr/lib/liblldCommon.so.18.1+0xbcad)
#27 0x0000596ab6080b34 lld_main(int, char**, llvm::ToolContext const&) (/usr/bin/ld.lld+0x2b34)
#28 0x0000596ab60802a5 main (/usr/bin/ld.lld+0x22a5)
#29 0x00007cfca1839c88 (/usr/lib/libc.so.6+0x25c88)
#30 0x00007cfca1839d4c __libc_start_main (/usr/lib/libc.so.6+0x25d4c)
#31 0x0000596ab6080305 _start (/usr/bin/ld.lld+0x2305)
make[2]: *** [scripts/Makefile.vmlinux_o:62: vmlinux.o] Ошибка 134
make[1]: *** [/run/media/dmitry/52DE98CBDE98A92D/linux-tkg/linux-src-git/Makefile:1155: vmlinux_o] Ошибка 2
make: *** [Makefile:240: __sub-make] Ошибка 2
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzcWVtv6yoW_jX0BTnCYCf2Qx6c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