Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39071 - parallelized build for GNU flex fails
Summary: parallelized build for GNU flex fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-22 13:19 UTC by Koni
Modified: 2004-05-03 12:44 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Koni 2004-01-22 13:19:04 UTC
A dependency in the make file for flex must be overlooked, parallelized builds via "-jX" and distcc are failing. Builds fine with 'MAKEOPTS="" emerge flex'

My setup is extreme though, I am running distcc over 15 "volunteer" systems and a parallel make setting of "-j31" -- its a bit excessive since it seems very few compilations have enough independent compiles to fan out this far.

Reproducible: Always
Steps to Reproduce:
1. MAKEOPTS="-jX" emerge flex (set X large, probably >8 will do -- can't test it right now because system is busy compiling everything else)
2. Should see compile barf with "command not found" or something like that
3. MAKEOPTS="" emerge flex (this works fine)

Actual Results:  
Looks like it tries to run one of the programs its building after compiling it,
but there is a race condition with the distributed compile. 

Expected Results:  
Must be a missing dependency in the makefile -- simple bandaid would be to
disable distcc builds in the ebuild (I'm new to gentoo, I don't know how that is
done yet)

Was merging flex as part of an 'emerge system' during an install -- problem is
solely with parallelized compilation, works just fine if serialized. 

No other parallel problems with 'emerge system' though.
Comment 1 Lisa Seelye (RETIRED) gentoo-dev 2004-04-12 14:04:08 UTC
this is an issue for base-system, check /your/ ebuilds.

a good technique is to force 
MAKEOPTS='-j1' and DISTCC_HOSTS='localhost'
Comment 2 SpanKY gentoo-dev 2004-05-03 12:44:24 UTC
this has been 'fixed' in portage