Subject: toolchain/22045: parallel build fails in new groff tool build
To: None <gnats-bugs@gnats.netbsd.org>
From: Martin Husemann <martin@duskware.de>
List: netbsd-bugs
Date: 07/03/2003 21:43:51
>Number:         22045
>Category:       toolchain
>Synopsis:       parallel build fails in new groff tool build
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 03 19:44:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Martin Husemann
>Release:        NetBSD 1.6U
>Organization:
	
>Environment:
System: NetBSD night-porter.duskware.de 1.6U NetBSD 1.6U (PORTER) #0: Thu Jul 3 20:09:27 CEST 2003 martin@night-porter.duskware.de:/usr/src/sys/arch/i386/compile/PORTER i386
Architecture: i386
Machine: i386
>Description:

Building with -j > 1 does not work since the new groff was imported. The
"real" build works, but the src/tools/groff one fails, because libgroff.a
(the first thing created in $(LIBDIRS)) is not ready when the first program
from $(PROGDIRS) is build.

Due to the way GNU makefiles work, simply inserting a .WAIT in 
gnu/dist/groff/Makefile.in like this

ALLDIRS=$(INCDIRS) $(LIBDIRS) .WAIT $(PROGDIRS) \
  $(DEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS) $(OTHERDIRS)
EXTRADIRS=\

does not work (the .WAIT ends up in parameters for a sub-make, not a
dependency list).

>How-To-Repeat:
"build.sh -j 8 tools" or something.
>Fix:
n/a
>Release-Note:
>Audit-Trail:
>Unformatted: