Monday, 11 January 2016

Re: Error linking i386 build on Launchpad

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:
> https://launchpadlibrarian.net/232540518/buildlog_ubuntu-wily-i386.mame_0.169-0ubuntu1~ppa5~wily1_BUILDING.txt.gz
>
> 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:
> https://answers.launchpad.net/launchpad/+question/280517
>
> 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@ubuntu.com]

--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel