Hi, On 08/09/17 16:28, Sylvestre Ledru wrote: > Package: binutils > Version: 2.29-9 > Severity: important > > Dear Maintainer, > > ld is failing on an internal error linking llvm. > > See full log: > https://buildd.debian.org/status/fetch.php?pkg=llvm-toolchain-3.9&arch=mipsel&ver=1%3A3.9.1-13&stamp=1504838376&raw=0 > > > /<<PKGBUILDDIR>>/include/llvm/Support/Casting.h:183:72: warning: > ignoring attributes on template argument 'llvm::simplify_t > /usr/bin/ld: BFD (GNU Binutils for Debian) 2.29 internal error, aborting > at ../../bfd/merge.c:908 in _bfd_merged_section_of > > /usr/bin/ld: Please report this bug. I think ld is running out of memory here. If I run ld in strace, a number of mmaps fail with ENOMEM immediately before the internal error. If I add this to the g++ invocation: -Wl,--no-keep-memory -Wl,--reduce-memory-overhead then it gets a bit further but now prints: /usr/bin/ld: error: ../../lib/libLLVM-5.0.so.1(.debug_info) is too large (0x32bf8926 bytes) /usr/bin/ld: error: ../../lib/libLLVM-5.0.so.1(.debug_str) is too large (0x470b1f9 bytes) /usr/bin/ld: error: ../../lib/libLLVM-5.0.so.1(.debug_loc) is too large (0x4cbb86b bytes) Maybe the amount of debug info is just too large for ld to handle? The above sections add up to around 1GB. Thanks, James
Attachment:
signature.asc
Description: OpenPGP digital signature