Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 307561 - dev-libs/boost-1.35.0-r5 does not emerge when MAKEOPTS="--jobs --load-average=3"
Summary: dev-libs/boost-1.35.0-r5 does not emerge when MAKEOPTS="--jobs --load-average=3"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-03 04:45 UTC by mehrunes
Modified: 2012-11-11 05:05 UTC (History)
1 user (show)

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


Attachments
emerge --info output (emerge--info,3.89 KB, text/plain)
2010-03-03 04:45 UTC, mehrunes
Details
unsuccessful emerge log (emerge.log,3.70 KB, text/plain)
2010-03-03 04:46 UTC, mehrunes
Details

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