Error linking i386 build on Launchpad

Colin Watson cjwatson at
Mon Jan 11 12:40:24 UTC 2016

On Mon, Jan 11, 2016 at 11:46:24AM +0100, Cesare Falco wrote:
> I'm not able to build the current release of Mame on Launchpad due to
> memory issues:
> /usr/bin/ld: failed to set dynamic section sizes: Memory exhausted
> see full build log here:
> This only happens on i386, amd64 builds fine.
> I've been searching around, but the only solution seems to give more memory
> to the virtual machine. I've also asked for help on Launchpad itself, but
> no answer so far:
> I know the resulting binary *is* big, but there are other big project out
> there, I guess someone else may have been stumbled upon the same issue.
> Did anyone find any workaround? Is there any way to tell Launchpad I need a
> VM with more memory? Or perhaps I can force the build on a specific machine
> which has more memory?

No, all the VMs are identically-configured.

There are various linker options which can help reduce memory taken
while linking, e.g. -Wl,--no-keep-memory, -Wl,--reduce-memory-overheads,
or -Wl,--hash-size=NUMBER.  I can't quite tell what you're doing right
now because your build hides the exact command lines in use (please
reconsider that), but have you looked into those?

Colin Watson                                       [cjwatson at]

More information about the ubuntu-devel mailing list