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

Bug 307561

Summary: dev-libs/boost-1.35.0-r5 does not emerge when MAKEOPTS="--jobs --load-average=3"
Product: Gentoo Linux Reporter: mehrunes <mehrunes_dagon>
Component: [OLD] DevelopmentAssignee: C++ Team [disbanded] <cpp+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: cpp+disabled
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info output
unsuccessful emerge log

Description mehrunes 2010-03-03 04:45:16 UTC
emerge process stalled for more than 8 hours, showing no activity, after printing lines

Skipping build of:  ./build_all  <build>no in common properties
...patience...
...patience...
...found 4875 targets...
...updating 1162 targets...

setting MAKEOPTS to -j1 solves the problem: 

Reproducible: Always

Steps to Reproduce:
1. MAKEOPTS="--jobs --load-average=3" emerge =dev-libs/boost-1.35.0-r5
2. watch for hang after line "...updating 1162 targets..." and stops


Actual Results:  
emerge hangs forever, not doing anything

Expected Results:  
successful emerge
Comment 1 mehrunes 2010-03-03 04:45:57 UTC
Created attachment 221901 [details]
emerge --info output
Comment 2 mehrunes 2010-03-03 04:46:49 UTC
Created attachment 221903 [details]
unsuccessful emerge log
Comment 3 mehrunes 2010-03-19 08:20:31 UTC
with my MAKEOPTS bjam-1_35 gets command-line options

-j --load-average=3

could this be the reason for the eternal sleep?
Comment 4 Łukasz Michalik 2010-03-19 08:27:29 UTC
Boost ebuild does some magic to figure out number of jobs to run with, as it doesn't use makefiles, so MAKEOPTS isn't picked up.  The algo used somewhat evolved in more recent versions, but doesn't seem to be backported.
Comment 5 mehrunes 2010-03-19 08:58:04 UTC
(In reply to comment #4)
> Boost ebuild does some magic to figure out number of jobs to run with, as it
> doesn't use makefiles, so MAKEOPTS isn't picked up.  The algo used somewhat
> evolved in more recent versions, but doesn't seem to be backported.
> 
i did not say that bjam checks for MAKEOPTS

in my post no.3 i meant to say that with my value of MAKEOPTS ebuild gives bjam command-line options 

-j --load-average=3

and my question was whether these options are valid
Comment 6 Łukasz Michalik 2010-03-19 09:26:41 UTC
> i did not say that bjam checks for MAKEOPTS

I didn't say that either.

> in my post no.3 i meant to say that with my value of MAKEOPTS ebuild gives bjam
> command-line options 

Ebuild isn't giving bjam your MAKEOPTS.  It's trying to find out number of jobs by looking at it and then uses it with bjam.  Fact that bjam and make use '-j N' to denote number of jobs to run in parallel is a pure coincidence.

> -j --load-average=3
> 
> and my question was whether these options are valid

Hack used in 1.35 possibly does not catch that case so no.
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-11-11 05:05:36 UTC
This _should_ be fixed now.