Previous Thread
Next Thread
Print Thread
#109569 - 05/12/17 03:09 AM mame GIT won't build on i386, OOM  
Joined: Jul 2011
Posts: 91
TSCHAK Offline
Member
TSCHAK  Offline
Member

Joined: Jul 2011
Posts: 91
Due to platform concerns with my smart home system, I am having to build i386 versions of mame alongside amd64 versions. However, I am consistently getting virtual memory exhausted errors with GCC 5.4.1, even though I have 32GB of RAM and 32GB of swap dedicated to the build server. The i386 build server is running pae, so there should be sufficient address space...does anyone know how best to work through this problem?

-Thom

#109570 - 05/12/17 04:57 AM Re: mame GIT won't build on i386, OOM [Re: TSCHAK]  
Joined: Feb 2004
Posts: 1,826
Vas Crabb Offline
Very Senior Member
Vas Crabb  Offline
Very Senior Member

Joined: Feb 2004
Posts: 1,826
Sydney, Australia
If GCC itself is exhausting its 2GB of address space, there's nothing you can do about it really besides cross-compiling on a 64-bit box. PAE usually doesn't allow a single process to use more than 4GB of address space, and Linux generally maps 2GB of user space plus 2GB of kernel space in an application's address space. (I say "usually" because MS Windows AWE lets a 32-bit process map windows into a larger address space on 32-bit systems with PAE. SQL Server and some other applications use it.)

#109571 - 05/12/17 06:06 AM Re: mame GIT won't build on i386, OOM [Re: TSCHAK]  
Joined: Jul 2011
Posts: 91
TSCHAK Offline
Member
TSCHAK  Offline
Member

Joined: Jul 2011
Posts: 91
Yeah, didn't occur to me before, I just set up an i386 chroot inside the amd64 builder. That'll work. smile

-Thom

#109572 - 05/12/17 10:23 AM Re: mame GIT won't build on i386, OOM [Re: TSCHAK]  
Joined: Feb 2004
Posts: 1,826
Vas Crabb Offline
Very Senior Member
Vas Crabb  Offline
Very Senior Member

Joined: Feb 2004
Posts: 1,826
Sydney, Australia
On Fedora you don't even need a chroot - as long as you have the i386 -devel packages installed you can just build with make PTR64=0 and it will do a 32-bit build.

#109573 - 05/12/17 11:10 AM Re: mame GIT won't build on i386, OOM [Re: Vas Crabb]  
Joined: Jun 2001
Posts: 367
Olivier Galibert Offline
Senior Member
Olivier Galibert  Offline
Senior Member

Joined: Jun 2001
Posts: 367
somewhere else entirely
Also the chroot wouldn't work, since gcc would then be 32 bits, and you'll hit the address space exhaustion issue even when the kernel itself is 64 bits.

OG.

#109574 - 05/13/17 01:17 PM Re: mame GIT won't build on i386, OOM [Re: TSCHAK]  
Joined: Jul 2011
Posts: 91
TSCHAK Offline
Member
TSCHAK  Offline
Member

Joined: Jul 2011
Posts: 91
worked for me! smile
-Thom


Who's Online Now
0 registered members (), 15 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,411
Posts108,909
Members4,757
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.042s Queries: 15 (0.022s) Memory: 4.9655 MB (Peak: 5.1604 MB) Zlib enabled. Server Time: 2017-09-21 22:56:13 UTC