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

Bug 373173

Summary: =dev-db/mongodb-1.8.2 fails to build by gcc-4.5.2
Product: Gentoo Linux Reporter: Mu Qiao (RETIRED) <qiaomuf>
Component: New packagesAssignee: Lance Albertson (RETIRED) <ramereth>
Status: RESOLVED INVALID    
Severity: major CC: ultrabug
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
the build log

Description Mu Qiao (RETIRED) gentoo-dev 2011-06-27 07:17:09 UTC
Created attachment 278319 [details]
emerge --info

My 4G memory is eaten up while building.
Comment 1 Mu Qiao (RETIRED) gentoo-dev 2011-06-27 07:28:07 UTC
Created attachment 278321 [details]
the build log

The build log contains information before I typed control-c
Comment 2 Ultrabug gentoo-dev 2011-06-27 12:44:57 UTC
Hi,

Your MAKEOPTS="-j24" seems a bit too much and could cause this (I don't have your problem with 4GB RAM and -j4 using gcc-4.5.2 aswell)

Could you try with MAKEOPTS="-j1" please and report back ?

Thanks
Comment 3 Mu Qiao (RETIRED) gentoo-dev 2011-06-27 13:39:28 UTC
Yes I think it's the problem. I have eight cores with hyper-threading and -j16 has the memory problem too. I figured one gcc process may eat up 300+MB at most. Then -j8 works fine for me. Close it now. Thanks.