NetBSD Problem Report #14837
Received: (qmail 17838 invoked from network); 4 Dec 2001 11:16:10 -0000
Message-Id: <200112041115.fB4BFmM26740@siren.baea.com.au>
Date: Tue, 4 Dec 2001 21:45:48 +1030 (CST)
From: Brett Lymn (Master of the Siren) <blymn@baesystems.com.au>
Reply-To: blymn@baesystems.com.au
To: gnats-bugs@gnats.netbsd.org
Subject: build.sh fails with NBUILDJOBS > 1
X-Send-Pr-Version: 3.95
>Number: 14837
>Category: toolchain
>Synopsis: build.sh fails with NBUILDJOBS > 1
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lukem
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Dec 04 11:17:00 +0000 2001
>Closed-Date: Sun Jan 05 11:20:06 +0000 2003
>Last-Modified: Fri Dec 21 18:26:39 +0000 2012
>Originator: Brett Lymn (Master of the Siren)
>Release: 20011203
>Organization:
Brett Lymn
>Environment:
System: NetBSD siren 1.5W NetBSD 1.5W (SIREN) #3: Sun Jul 8 19:58:28 CST 2001 blymn@siren:/usr/local/src/chuq/syssrc/sys/arch/i386/compile/SIREN i386
Architecture: i386
Machine: i386
>Description:
If NBUILDJOBS in /etc/mk.conf is set to, say, 20 then build.sh
fails with the following error:
dependall ===> makewhatis
dependall ===> toolchain
install ===> toolchain
--- .install_done ---
cd: can't cd to /usr/src/tools/toolchain/obj.i386/build
*** Error code 2
1 error
nbmake: stopped in /usr/src/tools/toolchain
*** Error code 2
Stop.
nbmake: stopped in /usr/src/tools
*** Error code 1
1 error
nbmake: stopped in /usr/src
*** Error code 2
Stop.
nbmake: stopped in /usr/src
The build completes correctly if I comment out the NBUILDJOBS line
in /etc/mk.conf.
>How-To-Repeat:
Add NBUILDJOBS to /etc/mk.conf and attempt a build.
>Fix:
Unknown at the moment, it looks like make may be failing to
wait for dependent jobs to finish before doing the install.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: tv
State-Changed-When: Mon Dec 17 11:18:51 PST 2001
State-Changed-Why:
Is this still not working? This would smack of a problem in src/Makefile,
not build.sh, if there's a parallelism issue....
State-Changed-From-To: feedback->open
State-Changed-By: tv
State-Changed-When: Thu Jan 3 10:51:11 PST 2002
State-Changed-Why:
Still a problem; reported again in (closed) PR toolchain/15059.
Responsible-Changed-From-To: bin-bug-people->toolchain-manager
Responsible-Changed-By: gnats
Responsible-Changed-When: Tue Feb 12 00:57:12 PST 2002
Responsible-Changed-Why:
There is now a "toolchain-manager" which is the proper default role
account for handling problem reports in the toolchain category.
Responsible-Changed-From-To: toolchain-manager->sommerfeld
Responsible-Changed-By: sommerfeld
Responsible-Changed-When: Mon Apr 29 08:43:15 PDT 2002
Responsible-Changed-Why:
I'm hunting down parallel build bugs
From: Tyler Mitchell <fission@styrophone.net>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: toolchain/14837
Date: Mon, 13 May 2002 08:52:52 -0700 (PDT)
Hello,
Per instructions in BUILDING, I've run "./build.sh -j 2" and saved the
output for analysation. I was building with system sources from yesterday
(2002/05/13 00:55:39 UTC to be exact). I have looked through the build
log myself and can see nothing that would cause this build to break, but
that doesn't say too much. ;-) Because of their size (a whopping 13.8MB),
I've not attached the log and instead have compressed it and put it up at:
http://nucleus.styrophone.net/1.5ZC-j2-output.gz
I then ran it again with -u and got the following:
http://nucleus.styrophone.net/1.5ZC-j2-output.2.gz
Glad to see that parallel builds are being fixed; hope this helps.
--
Tyler Mitchell
"Wherever you go, there you are."
-- Douglas Adams
State-Changed-From-To: open->feedback
State-Changed-By: lukem
State-Changed-When: Wed Jan 1 23:59:50 PST 2003
State-Changed-Why:
Is this *still* an issue? There's been a lot of work in the build tree
over the last few months to ensure that "make -j >1 build" should work.
Responsible-Changed-From-To: sommerfeld->lukem
Responsible-Changed-By: lukem
Responsible-Changed-When: Wed Jan 1 23:59:50 PST 2003
Responsible-Changed-Why:
State-Changed-From-To: feedback->closed
State-Changed-By: lukem
State-Changed-When: Sun Jan 5 03:19:22 PST 2003
State-Changed-Why:
AFAICT, -j N>1 has been working OK for a while
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.