i386 build issue: "virtual memory exhausted: Operation not permitted"

Bug #1695903 reported by Cesare Falco
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
launchpad-buildd
Invalid
Undecided
Unassigned

Bug Description

I'm trying to build Mame new upstream release (0.186) and I'm getting the error

virtual memory exhausted: Operation not permitted

Please find the buildlog in attachment and on my PPA here:
https://launchpad.net/~c.falco/+archive/ubuntu/alpha/+build/12684501/+files/buildlog_ubuntu-zesty-i386.mame_0.186-1~ppa1~zesty1_BUILDING.txt.gz

The issue is limited to i386 arch.

Revision history for this message
Cesare Falco (c.falco) wrote :
Revision history for this message
Colin Watson (cjwatson) wrote :

This isn't really an issue with Launchpad or its builders as such. A 32-bit x86 process running on a 64-bit kernel (the configuration we use for i386 builds) can only address up to 4GiB of memory in a single process, regardless of how much RAM and swap is available to it. In this case it looks as though a particular C++ file is especially fat and causes g++ to try to allocate more than that amount of memory. There's nothing we can do about that from the Launchpad side of things.

You will have to investigate compiler flags that might cause it to use less memory (e.g. decreasing optimisation for that file) or working with upstream to split it up into smaller compilation units.

affects: launchpad → launchpad-buildd
Changed in launchpad-buildd:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.