Issue 54204
Summary LLD assertion failed while building LLVM
Labels new issue
Assignees
Reporter rdeterre
    Hi,

While building LLVM 13.0.0 with the LLD linker, I got the assertion failure below:

```
ld.lld: /usr/include/llvm/ADT/CachedHashString.h:40: llvm::CachedHashStringRef::CachedHashStringRef(llvm::StringRef, uint32_t): Assertion `S.size() <= std::numeric_limits<uint32_t>::max()' failed.
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
 #0 0x00007f19d64b49a6 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/lib64/libLLVM-13.so+0xb5f9a6)
 #1 0x00007f19d64b2734 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-13.so+0xb5d734)
 #2 0x00007f19d64b28b6 (/lib64/libLLVM-13.so+0xb5d8b6)
 #3 0x00007f19d556e750 __restore_rt (/lib64/libc.so.6+0x42750)
 #4 0x00007f19d55bb88c __pthread_kill_implementation (/lib64/libc.so.6+0x8f88c)
 #5 0x00007f19d556e6a6 gsignal (/lib64/libc.so.6+0x426a6)
 #6 0x00007f19d55587d3 abort (/lib64/libc.so.6+0x2c7d3)
 #7 0x00007f19d55586fb _nl_load_domain.cold (/lib64/libc.so.6+0x2c6fb)
 #8 0x00007f19d5567396 (/lib64/libc.so.6+0x3b396)
 #9 0x00007f19dbee5ebe (/lib64/liblldELF.so.13+0x1ffebe)
#10 0x00007f19dbee5ef0 (/lib64/liblldELF.so.13+0x1ffef0)
#11 0x00007f19d642ae18 (/lib64/libLLVM-13.so+0xad5e18)
#12 0x00007f19d642b1c9 (/lib64/libLLVM-13.so+0xad61c9)
#13 0x00007f19d580f5c4 (/lib64/libstdc++.so.6+0xd95c4)
#14 0x00007f19d55b9b1a start_thread (/lib64/libc.so.6+0x8db1a)
#15 0x00007f19d563e650 __GI___clone3 (/lib64/libc.so.6+0x112650)
```
I was running the build on a Fedora 35 x64 machine with the system-provided GCC (version 11) and LLD (version 13.0.0), and used the `LLVM_ENABLE_LLD` flag to use LLD instead of GNU LD.

 

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to