Re: Bug#874674: ld: linking of llvm is failing on mipsel in _bfd_merged_section_offset
James Cowgill <[email protected]>
| Newsgroups | gmane.linux.debian.ports.mips |
|---|---|
| Message-ID | <[email protected]> |
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
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE+Ixt5DaZ6POztUwQx/FnbeotAe8FAlm6gX0ACgkQx/Fnbeot Ae8wDg/+L93+YdLn/1nevvd+2gG/xmcdlauu5v21Iqt9G4mX+jIvLRA6hOj9azWi wuilfWAH4TJIIURf7s0jPM8GEX6o5geF2cV5iWoB16S7btYRGiFnQ0l+uB/WRDhH TS1N/doG8Jyl4LSZToek8BQK+vgH3D1hIuEa+48iTnNbVeUzdEA9Ef58FVc6VNLH vE+DzwnVPC5OxEaGcy/8mV3AI9976ypqL7arwoBuWmzRZ9qhwcM5L4WSY36ZurH9 fFwtQCaTNaBHKR2sFDqkOxfAZqcwVczcGxN96NxNqbyELVqQu2AAGU81/Y7/k/Pb qw+GzZ6BsuGRitgUjyLD4NLkS6wrfpYCgfXg4kbjOmJdCxfSzdlopONRP+IFDVnc jDwmxPMq33w0pjEYlPQovVPMbAvgZ5weV3IOTP/VPYqZH9lcMnBzLuASTl+xrS+W y3QvtsQa5dIIczLwAeX89snZ+W6Ko2vs5TljVtjQEnBSa7IAxV5yZEyDevghHQPf 742fa0lNhc7uOTMGaNkYPfacUJ1oPzyEV5kyaTkzvvyCvTbqKlBNT+KErcKPGpka wgaVCx8mIz/HvAF08rGxrrn1pzXjMCNCQpnZWscM1dqktmgfI8hC8iutmNpbRHcF X2kulhu0ml91fKC6HvFm/LdZ2+AA/wqElg83lBMNa/oy4q1ROqY= =DGJT -----END PGP SIGNATURE-----