MozillaZine

ld taking way too much memory

Discussion of third-party/unofficial Firefox/Thunderbird/SeaMonkey builds.
.:Det:.
 
Posts: 18
Joined: November 25th, 2010, 6:48 am

Post Posted September 7th, 2011, 11:04 am

Hey all,

I'm trying to build Thunderbird 7.0b2 on a 64-bit Archlinux but I keep getting this error (http://pastebin.com/1Uy5mSLs):

Code: Select all
collect2: ld terminated with signal 9 [Killed]


When checking out dmesg it tells me that ld was terminated for consuming too much memory (I got 4GB of RAM):

Code: Select all
Out of memory: Kill process 5432 (ld) score 283 or sacrifice child


I actually have to create swap of 512MB to get past it. Is this caused by ld wanting to use _all_ of my RAM or something?

Thanks for your time

tqft

User avatar
 
Posts: 1231
Joined: April 22nd, 2003, 11:57 pm

Post Posted September 8th, 2011, 2:51 am

Do not try and build chromium on that machine unless you radically up the swap.

Linking uses a lot of memory. Why so little swap? Are you disk constrained?

I have learnt the hard way not try and build ff, chromium and a kernel at the same time.

.:Det:.
 
Posts: 18
Joined: November 25th, 2010, 6:48 am

Post Posted September 8th, 2011, 3:33 am

Well, I'm only building _Thunderbird_ and I don't want to use swap because 4GB of RAM has always been enough up and till now.

loadbang

User avatar
 
Posts: 873
Joined: November 3rd, 2003, 12:18 pm
Location: Birmingham, UK.

Post Posted September 15th, 2011, 3:27 am

I'm experiencing the same, but building Nighlty on a Mac.

ld rises to 2.8GB of memory, and swap file reaches 10GB+.

After running for 5 minutes. Swap will carry on rising.

Image

tmpname0920
 
Posts: 6
Joined: September 20th, 2011, 9:08 am

Post Posted September 20th, 2011, 9:23 am

.:Det:. wrote:Well, I'm only building _Thunderbird_ and I don't want to use swap because 4GB of RAM has always been enough up and till now.


On Windows/x64 (VS2008) a 32-bit build of Thunderbird 7 consumes a peak of 3.0GB RAM. A 64-bit build peaks at 3.6GB.

And that's for non-PGO builds. You need some serious resources to build contemporary Mozilla applications.

.:Det:.
 
Posts: 18
Joined: November 25th, 2010, 6:48 am

Post Posted September 21st, 2011, 11:34 am

tmpname0920 wrote:On Windows/x64 (VS2008) a 32-bit build of Thunderbird 7 consumes a peak of 3.0GB RAM. A 64-bit build peaks at 3.6GB.

And that's for non-PGO builds. You need some serious resources to build contemporary Mozilla applications.

Ok then. So this is not a bug - it's just how things have turned out to be these days.

.:Det:.
 
Posts: 18
Joined: November 25th, 2010, 6:48 am

Post Posted October 21st, 2011, 10:35 am

Ok, the real problem turned out to be the fact that Arch started using tmpfs.

Tmpfs is a virtual file system located in the RAM with the default maximum size of 2GB. Now, when one downloads the whole thunderbird sources and on top of this starts building it, it _really_ takes _a lot_ of space.

So if one is to build thunderbird/firefox/seamonkey/whatever it should be done outside /tmp. It's for smaller stuff more quickly accessed in your RAM.

Return to Third Party/Unofficial Builds


Who is online

Users browsing this forum: maur0 and 1 guest