Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 289909

Summary: sys-devel/gcc-4.3.4 uses several GB RAM when compiling dev-libs/boehm-gc-7.1 with -funroll-loops
Product: Gentoo Linux Reporter: Mike Nelson <miken700>
Component: New packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED WONTFIX    
Severity: normal CC: SebastianLuther
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description Mike Nelson 2009-10-20 20:16:31 UTC
emerge -1 dev-libs/boehm-gc
fails,
# grep ^CFLAGS /etc/make.conf
# CFLAGS='-O3 -march=pentium4  -fprefetch-loop-arrays -pipe' emerge -1 dev-libs/boehm-gc

works. Seems like -funroll-loops needs to be stripped for this.

See my original forum post for details on error,
http://forums.gentoo.org/viewtopic-p-6022008.html#6022008


Reproducible: Always

Steps to Reproduce:
1.emerge -1 dev-libs/boehm-gc
Comment 1 Mike Nelson 2009-10-20 20:19:05 UTC
Created attachment 207732 [details]
emerge --info
Comment 2 Sebastian Luther (few) 2009-10-20 20:24:01 UTC
That looks more like, the option would make gcc consume all your memory. How much ram does this machine have?
Comment 3 Mike Nelson 2009-10-20 21:55:39 UTC
(In reply to comment #2)
> That looks more like, the option would make gcc consume all your memory. How
> much ram does this machine have?
> 

Exactly. It's running with 4G RAM and 1G of swap.
Comment 4 Sebastian Luther (few) 2009-10-21 06:57:41 UTC
That sounds like a gcc bug.
Comment 5 Mike Nelson 2009-10-21 15:00:15 UTC
Note, to fix this for me I created the file /etc/portage/env/dev-libs/boehm-gc with this line,

CFLAGS=${CFLAGS/-funroll-loops/}
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2011-07-01 05:34:52 UTC
If using non-standard flags breaks things then don't use them.  Give 4.3.6 or later a try.