Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] failed to emerge chromium: memory exhausted
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
AgBr
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2010
Posts: 112

PostPosted: Fri Apr 13, 2012 5:51 pm    Post subject: [solved] failed to emerge chromium: memory exhausted Reply with quote

Im am having problems to emerge www-client/chromium-18.0.1025.151

"ld: failed to set dynamic section sizes: Memory exhausted"

I tried this already to reduce memory usage:

build-server / # cat /etc/portage/env/www-client/chromium
CFLAGS="-O2 -march=i686 -fomit-frame-pointer -ggdb"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j1"

The box has 3GB RAM and 20GB swap.

Am I the only one having this problem? On another box with 8GB of RAM and 16GB of swap it's just running fine.


Last edited by AgBr on Sat Apr 14, 2012 3:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 30123
Location: 56N 3W

PostPosted: Fri Apr 13, 2012 9:22 pm    Post subject: Reply with quote

AgBr,

Code:
CFLAGS="-O2 -march=i686 -fomit-frame-pointer -ggdb"
thats some very odd CFLAGS.
You only have a 4G virtual address space per process on a 32 bit box, no matter how much swap/RAM you have.

There have been reports that 4G of address space is not enough for www-client/chromium
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4063
Location: Saint Amant, Acadiana

PostPosted: Fri Apr 13, 2012 9:48 pm    Post subject: Reply with quote

This one of 32-bit boxes on my LAN, running www-client/chromium-19.0.1084.15
Code:
 $ free
             total       used       free     shared    buffers     cached
Mem:       2064136    1694192     369944          0     181180    1279028
-/+ buffers/cache:     233984    1830152
Swap:       498008      50124     447884


Built using distcc ...
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
AgBr
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2010
Posts: 112

PostPosted: Fri Apr 13, 2012 9:52 pm    Post subject: Reply with quote

NeddySeagoon wrote:
AgBr,

Code:
CFLAGS="-O2 -march=i686 -fomit-frame-pointer -ggdb"
thats some very odd CFLAGS.
You only have a 4G virtual address space per process on a 32 bit box, no matter how much swap/RAM you have.

There have been reports that 4G of address space is not enough for www-client/chromium


Sorry, I should have noted that the emerge is running inside a chroot environment which builds a binary system to run on any i686 architecture, not just the box the binaries are built on (a Pentium4 HT by the way). I use two of these build-environments alternaing, as I have to be sure that I can still make configuration updates with a stable system just in case I get into trouble with an update on the other box. The second box is a Fujitsu-Siemens TX250 (double Xeon, 8GB RAM) which is running the builds fine with just the same CFLAGS. I have been building chromium on the smaller box for about two years now without any issues until some days ago.
Back to top
View user's profile Send private message
phajdan.jr
Developer
Developer


Joined: 23 Mar 2006
Posts: 1742
Location: Poland

PostPosted: Sat Apr 14, 2012 8:39 am    Post subject: Reply with quote

1. Try removing -ggdb from CFLAGS, that flag increases memory usage.
2. I'm successfully compiling chromium on a 32-bit system.
3. Try those links: http://www.mail-archive.com/webkit-dev@lists.webkit.org/msg18539.html http://forums.gentoo.org/viewtopic-t-905190-start-0.html
_________________
http://phajdan-jr.blogspot.com/
Back to top
View user's profile Send private message
AgBr
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2010
Posts: 112

PostPosted: Sat Apr 14, 2012 3:52 pm    Post subject: Reply with quote

phajdan.jr wrote:
1. Try removing -ggdb from CFLAGS, that flag increases memory usage.
2. I'm successfully compiling chromium on a 32-bit system.
3. Try those links: http://www.mail-archive.com/webkit-dev@lists.webkit.org/msg18539.html http://forums.gentoo.org/viewtopic-t-905190-start-0.html


Removing -ggdb did the trick. Thanks a lot
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum