<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/68929>68929</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
LLVM ERROR: Broken module found, compilation aborted! when building Firefox with full LTO
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
glandium
</td>
</tr>
</table>
<pre>
This didn't happen before 8840da2db237cd714d975c199d5992945d2b71e9.
STR:
- Download https://drive.google.com/file/d/1eTOTaCkLfmShfSDF9OAF77sgxeJ-fgqT/view?usp=sharing
(unfortunately large, this is Firefox)
- Extract
- Run: `cd repr; ld.lld @response.txt`
```
llvm.dbg.declare has larger fragment size than alloca size
call void @llvm.dbg.declare(metadata ptr %8, metadata !26454674, metadata !DIExpression()), !dbg !26454731
llvm.dbg.declare has larger fragment size than alloca size
call void @llvm.dbg.declare(metadata ptr %17, metadata !26462027, metadata !DIExpression()), !dbg !26462037
llvm.dbg.declare has larger fragment size than alloca size
call void @llvm.dbg.declare(metadata ptr %8, metadata !26468121, metadata !DIExpression()), !dbg !26468178
llvm.dbg.declare has larger fragment size than alloca size
call void @llvm.dbg.declare(metadata ptr %17, metadata !26475461, metadata !DIExpression()), !dbg !26475471
llvm.dbg.declare has larger fragment size than alloca size
call void @llvm.dbg.declare(metadata ptr %8, metadata !26481438, metadata !DIExpression()), !dbg !26481495
llvm.dbg.declare has larger fragment size than alloca size
call void @llvm.dbg.declare(metadata ptr %17, metadata !26488783, metadata !DIExpression()), !dbg !26488793
llvm.dbg.declare has larger fragment size than alloca size
call void @llvm.dbg.declare(metadata ptr %8, metadata !26494766, metadata !DIExpression()), !dbg !26494823
llvm.dbg.declare has larger fragment size than alloca size
call void @llvm.dbg.declare(metadata ptr %17, metadata !26502101, metadata !DIExpression()), !dbg !26502111
llvm.dbg.declare has larger fragment size than alloca size
call void @llvm.dbg.declare(metadata ptr %8, metadata !26508252, metadata !DIExpression()), !dbg !26508309
llvm.dbg.declare has larger fragment size than alloca size
call void @llvm.dbg.declare(metadata ptr %18, metadata !26516098, metadata !DIExpression()), !dbg !26516124
LLVM ERROR: Broken module found, compilation aborted!
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: /tmp/gecko/clang/bin/ld.lld @response.txt
#0 0x00007f765d87c8a7 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/tmp/gecko/clang/bin/../lib/libLLVM-18git.so+0x28398a7)
#1 0x00007f765d87cd8b SignalHandler(int) Signals.cpp:0:0
#2 0x00007f765ab7bfd0 (/lib/x86_64-linux-gnu/libc.so.6+0x3bfd0)
#3 0x00007f765abcad3c __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
#4 0x00007f765ab7bf32 raise ./signal/../sysdeps/posix/raise.c:27:6
#5 0x00007f765ab66472 abort ./stdlib/abort.c:81:7
#6 0x00007f765d818698 llvm::report_fatal_error(llvm::Twine const&, bool) (/tmp/gecko/clang/bin/../lib/libLLVM-18git.so+0x27d5698)
#7 0x00007f765cb90bd5 (/tmp/gecko/clang/bin/../lib/libLLVM-18git.so+0x1b4dbd5)
#8 0x00007f765d96b097 (/tmp/gecko/clang/bin/../lib/libLLVM-18git.so+0x2928097)
#9 0x00007f765e47c6ed llvm::detail::PassModel<llvm::Module, llvm::VerifierPass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) LTOBackend.cpp:0:0
#10 0x00007f765d555bdc llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/tmp/gecko/clang/bin/../lib/libLLVM-18git.so+0x2512bdc)
#11 0x00007f765e477af4 llvm::lto::opt(llvm::lto::Config const&, llvm::TargetMachine*, unsigned int, llvm::Module&, bool, llvm::ModuleSummaryIndex*, llvm::ModuleSummaryIndex const*, std::vector<unsigned char, std::allocator<unsigned char>> const&) (/tmp/gecko/clang/bin/../lib/libLLVM-18git.so+0x3434af4)
#12 0x00007f765e479594 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&) (/tmp/gecko/clang/bin/../lib/libLLVM-18git.so+0x3436594)
#13 0x00007f765e46f30f llvm::lto::LTO::runRegularLTO(std::function<llvm::Expected<std::unique_ptr<llvm::CachedFileStream, std::default_delete<llvm::CachedFileStream>>> (unsigned int, llvm::Twine const&)>) (/tmp/gecko/clang/bin/../lib/libLLVM-18git.so+0x342c30f)
#14 0x00007f765e46eb73 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&)>) (/tmp/gecko/clang/bin/../lib/libLLVM-18git.so+0x342bb73)
#15 0x00005582ad0e6860 lld::elf::BitcodeCompiler::compile() (/tmp/gecko/clang/bin/ld.lld+0x25d860)
#16 0x00005582ad040549 lld::elf::LinkerDriver::link(llvm::opt::InputArgList&) (/tmp/gecko/clang/bin/ld.lld+0x1b7549)
#17 0x00005582ad02fa34 lld::elf::LinkerDriver::linkerMain(llvm::ArrayRef<char const*>) (/tmp/gecko/clang/bin/ld.lld+0x1a6a34)
#18 0x00005582ad02dfe0 lld::elf::link(llvm::ArrayRef<char const*>, llvm::raw_ostream&, llvm::raw_ostream&, bool, bool) (/tmp/gecko/clang/bin/ld.lld+0x1a4fe0)
#19 0x00005582acf72845 lld::unsafeLldMain(llvm::ArrayRef<char const*>, llvm::raw_ostream&, llvm::raw_ostream&, llvm::ArrayRef<lld::DriverDef>, bool) (/tmp/gecko/clang/bin/ld.lld+0xe9845)
#20 0x00005582acf70182 lld_main(int, char**, llvm::ToolContext const&) (/tmp/gecko/clang/bin/ld.lld+0xe7182)
#21 0x00005582acf7004e main (/tmp/gecko/clang/bin/ld.lld+0xe704e)
#22 0x00007f765ab671ca __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:74:3
#23 0x00007f765ab67285 call_init ./csu/../csu/libc-start.c:128:20
#24 0x00007f765ab67285 __libc_start_main ./csu/../csu/libc-start.c:347:5
#25 0x00005582acf71b72 _start (/tmp/gecko/clang/bin/ld.lld+0xe8b72)
```
Cc: @nikic
(It's also unfortunate that it doesn't tell what specific module is broken)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzcWV1P6zrW_jXmxqJy7CR2LrgoH9W7X4HYAnRuK8d2Ug-u3WM7UObXj5yU0pQeDruDZqMjlZL6Y_l51rPsrKzwEHRrlToDxTkoLk94FxfOn7WGW6m75Unt5MvZw0IHKLW0ANMIF3y1UhbWqnFeQcZyJDmWNSZUSJrlsqKFyKpKFlWFq7yQuKaZqiYAXQI0Hb7vH-4A2Vyfwkv3bI3jEi5iXIXUgWcAz6TXT2rSOtcaNRFuCfCs0UalHoBnmXq4feAXj9fN8n7R3F_OqtvpjNLQrtX_nzbtnw8Az560egZk1oUVIJdhwb227QYGZp1tnI-d5VGZF2i4bxXAFzAmrjrAmfaqcWuAq1eYV-vouYivP-86C8gUghIJCb1aeUDOoZETYyQEOfIqrJwNahLXEZRol336OXz6n8Y8LSeybidSCcO9ggseBjweNp63S2UjDPrfCsYFt5Ab4wQfGgYDEApuDHxyul953x7AbKkilzxyuIoeAlywxHTbCHCGy7zIS5rvt1_-uFqvvApBOwswS95In4vUJ-t2O5WS7LeRyegBNiVG-F3759iUGBH6raQpWYazI8mwjLLvJQ0t8vJINrTI6e8LtEPSsCwn79o_R4ZleVV8L2kYo4wcyYb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