Bug 9501 - GNU make breaks doing parallel builds
GNU make breaks doing parallel builds
Product: Red Hat Linux
Classification: Retired
Component: make (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Depends On:
  Show dependency treegraph
Reported: 2000-02-16 17:39 EST by Chris Seawood
Modified: 2008-05-01 11:37 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-08-30 22:30:14 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Chris Seawood 2000-02-16 17:39:11 EST
The latest version of GNU make (3.78.1) appears have seriously regressed
with regards to parallel builds.  I'm building Mozilla giving
--enable-nspr-autoconf to configure and running the build as: make
MAKE='make -j5'.  Even running just as: 'make -j5' breaks the build.  Using
the former method worked flawlessly using make 3.76.1 and 3.77.
Comment 1 Jeff Johnson 2000-07-22 08:32:16 EDT
Can you try to reproduce this with the latest make-3.79.1?
Comment 2 Chris Seawood 2000-08-09 14:45:34 EDT
Yes, I can.  To reproduce,(passwd is anonymous)

cvs -z3 -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot login
cvs -z3 -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -r
mkdir mozilla/nsprpub/obj
cd mozilla/nsprpub/obj
../configure --with-mozilla
make MAKE='make -j3'

gcc -o prfdcach.o -c   -pipe -ansi -pthread -g -fPIC  -UNDEBUG  -DUSE_AUTOCONF=1
./../../dist/include -I../../../../pr/include -I../../../../pr/include/private  
../../../pr/src/io/./prfdcach.c:19: primpl.h: No such file or directory

The error is that the source files cannot find primpl.h which comes from
nsprpub/pr/include/private/ . 
In nsprpub/pr/src/io/Makefile.in, we explicitly set INCLUDES to contain
-I$(topsrcdir)/pr/include/private which is showing up on the command line.

Now, if I downgrade to make 3.77 and do: make -C pr/src/io MAKE='make -j3'
I get no errors.

gcc -o prfdcach.o -c   -pipe -ansi -pthread -g -fPIC  -UNDEBUG  -DUSE_AUTOCONF=1
-D_NSPR_BUILD_ -I../../../dist/include -I../../../../pr/include
-I../../../../pr/include/private  ../../../../pr/src/io/prfdcach.c
Comment 3 Hans de Goede 2000-08-11 16:16:58 EDT
Hmm, make -j4 works fine for the kernel, are you sure this isn't an mozilla
Makefile bug which happens to be triggered by a newer make version?
Comment 4 Chris Seawood 2000-08-30 22:30:13 EDT
No, I'm not 100% sure.  If it is a mozilla Makefile bug, I'll gladly fix it but
I need to know what it is first. :-/

Comment 5 Chris Seawood 2001-01-08 18:56:41 EST
Turns out that this was a Mozilla (NSPR to-be specific) problem with
dependencies not being strong enough.  Marking Invalid.

Note You need to log in before you can comment on or make changes to this bug.