[llvm-dev] lld out of memory

Itaru Kitayama via llvm-dev llvm-dev at lists.llvm.org
Sun Feb 2 15:01:04 PST 2020


Hi,
I am seeing an LLVM build failure with recent LLD on x86 like:

[...]
   lib/libLLVMCodeGen.a  lib/libLLVMBitWriter.a  lib/libLLVMScalarOpts.a
 lib/libLLVMAgg
ressiveInstCombine.a  lib/libLLVMInstCombine.a  lib/libLLVMTransformUtils.a
 lib/libLLVMDebugInfoDWARF.a  lib/lib
LLVMMCDisassembler.a  lib/libLLVMExecutionEngine.a  lib/libLLVMTarget.a
 lib/libLLVMAnalysis.a  lib/libLLVMProfil
eData.a  lib/libLLVMRuntimeDyld.a  lib/libLLVMObject.a
 lib/libLLVMMCParser.a  lib/libLLVMMC.a  lib/libLLVMDebugI
nfoCodeView.a  lib/libLLVMDebugInfoMSF.a  lib/libLLVMBitReader.a
 lib/libLLVMCore.a  lib/libLLVMRemarks.a  lib/li
bLLVMBitstreamReader.a  lib/libLLVMTextAPI.a  lib/libLLVMBinaryFormat.a
 lib/libLLVMSupport.a  /usr/lib64/libz.so
  -lrt  -ldl  -ltinfo  -lpthread  -lm  lib/libLLVMDemangle.a && :
LLVM ERROR: out of memory
Stack dump:
0.      Program arguments: /home/usr4/c74014i/opt/clang/stable/bin/ld.lld
@/tmp/response-5051e9.txt
LLVM ERROR: out of memory
clang-11: error: unable to execute command: Aborted
clang-11: error: linker command failed due to signal (use -v to see
invocation)
[32/492] Building CXX object
tools/llvm-cov/CMakeFiles/llvm-cov.dir/gcov.cpp.o

As reported on Discord, switching back to ld works around this issue.
On my system a process gets a 6 GB of memory max can be used, and I use
ninja -j16.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200203/dcc39115/attachment.html>


More information about the llvm-dev mailing list