Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289909 - sys-devel/gcc-4.3.4 uses several GB RAM when compiling dev-libs/boehm-gc-7.1 with -funroll-loops
Summary: sys-devel/gcc-4.3.4 uses several GB RAM when compiling dev-libs/boehm-gc-7.1 ...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-20 20:16 UTC by Mike Nelson
Modified: 2011-07-01 05:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,4.32 KB, text/plain)
2009-10-20 20:19 UTC, Mike Nelson
Details

Note You need to log in before you can comment on or make changes to this bug.
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.