Linking memory issue on i386 build

Asked by Cesare Falco

I can't build Mame on i386 due to a ld memory issue:

/usr/bin/ld: failed to set dynamic section sizes: Memory exhausted

the full building log is available here:
https://launchpadlibrarian.net/232540518/buildlog_ubuntu-wily-i386.mame_0.169-0ubuntu1~ppa5~wily1_BUILDING.txt.gz

After some googling it turned out there's no way to solve this, other than giving more memory to the virtual machine.

Could this be a viable thing? Any other suggestion?

Thank you in advance,
Cesare

Question information

Language:
English Edit question
Status:
Expired
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Colin Watson (cjwatson) said :
#1

We've talked about increasing the RAM allocation from 4GiB to 8GiB, but we need to sort out some stability problems before making that kind of change.

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?

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.

Revision history for this message
Cesare Falco (c.falco) said :
#3

Thank you Colin, I've tried all the suggested options, setting hash-size as little as 2 after many attempts.

Unfortunately the issue is still present.

I've enabled the verbose mode to make command lines visible, the current build log is available here:
https://launchpad.net/~c.falco/+archive/ubuntu/alpha/+build/8920070/+files/buildlog_ubuntu-wily-i386.mame_0.170-0ubuntu1~ppa1~wily1_BUILDING.txt.gz

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Cesare Falco (c.falco) said :
#5

Update: I hoped this would happen with PPA only, so I uploaded the package to proposed for xenial.

Got the same problem, please see the following details I received with the automated e-mail from LP:

 * Source Package: mame
 * Version: 0.170-0ubuntu1
 * Architecture: i386
 * Archive: ubuntu
 * Component: multiverse
 * State: Failed to build
 * Duration: 35 minutes
 * Build Log: https://launchpad.net/ubuntu/+source/mame/0.170-0ubuntu1/+build/9010953/+files/buildlog_ubuntu-xenial-i386.mame_0.170-0ubuntu1_BUILDING.txt.gz
 * Builder: https://launchpad.net/builders/lcy01-09
 * Source: https://launchpad.net/ubuntu/+source/mame/0.170-0ubuntu1

Revision history for this message
Cesare Falco (c.falco) said :
#6

A new upstream version is out, same problem.

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.