Subject: misc/5577: /usr/src/bin/sh can not be built with PARALLEL set in env
To: None <gnats-bugs@gnats.netbsd.org>
From: Craig M. Chase <chase@orac.ece.utexas.edu>
List: netbsd-bugs
Date: 06/12/1998 10:12:28
>Number:         5577
>Category:       misc
>Synopsis:       /usr/src/bin/sh can not be built with PARALLEL set in env
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 12 08:20:00 1998
>Last-Modified:
>Originator:     Craig Chase
>Organization:
Electrical and Computer Engineering, the University of Texas at Austin
>Release:        <NetBSD-current source date> June 10, 1998
>Environment:
System: NetBSD orac 1.3E NetBSD 1.3E (ORACIII) #2: Thu Jun 11 17:25:49 CDT 1998 chase@orac:/a/c3p0/home/c3p0/src/sys/arch/i386/compile/ORACIII i386


>Description:
If the PARALLEL flag is set in the environment, 
make will fail in a few directories.  /usr/src/bin/sh is the best
example, I also noted /usr/src/domestic/usr.bin/compile_et will fail.

It appears to me that the YACC rules will only work if 
a) YHEADERS is set (and the associated source files include <file>.tab.h)
or
b) neither YHEADERS nor PARALLEL are set (and files include y.tab.h)
>How-To-Repeat:
cd /usr/src/bin/sh
make cleandir
setenv PARALLEL
make
>Fix:
The fix would appear to be to make YHEADERS the default for all YACC
rules.  Use of y.tab.h is inconsistent with parallel makes.

>Audit-Trail:
>Unformatted: