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

Bug 514960

Summary: MAKEOPTS=-j65 does not work with 2 processors and 2 gigabytes RAM
Product: Gentoo Linux Reporter: tharvik
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
emerge -pqv
build log
build.log -- better
emerge --info -- better
emerge -pqv -- better

Description tharvik 2014-06-24 20:40:21 UTC
dev-libs/boost-1.52.0-r6 fail with MAKEOPTS=-jN with N > 64. 64 was choose based on trials and errors, and is given as a lower bound.

Reproducible: Always

Steps to Reproduce:
1. MAKEOPTS=-j65 emerge '=dev-libs/boost-1.52.0-r6'
Actual Results:  
/var/tmp/portage/dev-libs/boost-1.52.0-r6/temp/environment: line 1015: 24967 Segmentation fault      b2 "$@"

Expected Results:  
Emerge correctly.

As it may not be a common situation, it easily happend if you have a MAKEOPTS base on load as MAKEOPTS="-j -l4".
Comment 1 tharvik 2014-06-24 20:41:11 UTC
Created attachment 379620 [details]
emerge --info
Comment 2 tharvik 2014-06-24 20:41:27 UTC
Created attachment 379622 [details]
emerge -pqv
Comment 3 tharvik 2014-06-24 20:41:43 UTC
Created attachment 379624 [details]
build log
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-06-24 21:13:55 UTC
You have two gigabytes of memory and what looks like two processors, and no distcc, and you are surprised you ran out of RAM?
Comment 5 tharvik 2014-06-24 21:48:15 UTC
Nope, not resolved, tested on 4 cpu and 4G (and max memory usage ~100MB).
Comment 6 tharvik 2014-06-24 21:50:14 UTC
Created attachment 379628 [details]
build.log -- better
Comment 7 tharvik 2014-06-24 21:50:27 UTC
Created attachment 379630 [details]
emerge --info -- better
Comment 8 tharvik 2014-06-24 21:50:45 UTC
Created attachment 379632 [details]
emerge -pqv -- better