Subject: Re: stdbool.h
To: James Chacon <jmc@NetBSD.org>
From: Michael L. Hitch <mhitch@lightning.msu.montana.edu>
List: port-vax
Date: 06/06/2005 12:08:53
On Mon, 6 Jun 2005, James Chacon wrote:

> Clean object tree's (i.e. no update builds)?

  I've been trying to build after completely removing the object tree.

> Build from a completly clean object and destdir and see if it's still breaking
> for you. If so, post a log snippet around the breakage.

  OK, here goes.  For my debugging purposes, I added a line to show the
target directory of where stdbool.h was going, and included the log output
from the gettext/libgrep dependall - which shows that it works for libgrep
(as well as the other gettext/lib*).  The dependall for gettext/gettext
fails to execute the stdbool.h creation.  I had also modified the related
CPPFLAGS to include an extra -I. and -I{.OBJDIR} to indicate to me that
the stuff in gettext/Makefile.inc.prog was really doing something.

  [Also, my build.sh command line may look like it's missing some options,
but they come from environment settings done outside the script that runs
the build.sh (a carryover from my build process that was pre-build.sh).

Building NOPRIV for vax
DESTDIR=/altroot/home/mhitch/NetBSD-current/DEST/vax
RELEASEDIR=/altroot/home/mhitch/NetBSD-current/REL
Mon Jun  6 06:40:04 MDT 2005
===> build.sh command: build.sh -U -D /altroot/home/mhitch/NetBSD-current/DEST/vax -R /alt
root/home/mhitch/NetBSD-current/REL release
===> build.sh started: Mon Jun  6 06:40:04 MDT 2005
===> MACHINE:          vax
===> MACHINE_ARCH:     vax
===> TOOLDIR path:     /altroot/home/mhitch/NetBSD-current/tools.i386
===> DESTDIR path:     /altroot/home/mhitch/NetBSD-current/DEST/vax
===> RELEASEDIR path:  /altroot/home/mhitch/NetBSD-current/REL
===> makewrapper:      /altroot/home/mhitch/NetBSD-current/tools.i386/bin/nbmake-vax
===> Updated /altroot/home/mhitch/NetBSD-current/tools.i386/bin/nbmake-vax
build ===> .    (with: NOPOSTINSTALL=1)
Build started at: Mon Jun  6 06:40:05 MDT 2005

...

dependall ===> gnu/usr.bin/gettext
dependall ===> gnu/usr.bin/gettext/libgrep
sed -e 's:@HAVE__BOOL@:0:g'  /altroot/home/mhitch/NetBSD-current/src/gnu/dist/gettext/gett
ext-tools/lib/stdbool_.h > stdbool.h
#    create  libgrep/dfa.d
CC=/altroot/home/mhitch/NetBSD-current/tools.i386/bin/vax--netbsdelf-gcc /altroot/home/mhi
tch/NetBSD-current/tools.i386/bin/nbmkdep -f dfa.d --      -DHAVE_CONFIG_H -I/altroot/home
/mhitch/NetBSD-current/src/gnu/usr.bin/gettext/libgrep -I/altroot/home/mhitch/NetBSD-curre
nt/src/gnu/usr.bin/gettext/libgrep/../include  -I/altroot/home/mhitch/NetBSD-current/src/g
nu/dist/gettext/gettext-tools/lib -DLOCALEDIR=\"/usr/share/locale\" -I/altroot/home/mhitch
/NetBSD-current/src/gnu/dist/gettext/gettext-tools/libgrep -I. -DHAVE_CONFIG_H -I/altroot/
home/mhitch/NetBSD-current/src/gnu/usr.bin/gettext/libgrep -I/altroot/home/mhitch/NetBSD-c
urrent/src/gnu/usr.bin/gettext/libgrep/../include  -I/altroot/home/mhitch/NetBSD-current/s
rc/gnu/dist/gettext/gettext-tools/lib -DLOCALEDIR=\"/usr/share/locale\"   -nostdinc -isyst
em /altroot/home/mhitch/NetBSD-current/DEST/vax/usr/include  /altroot/home/mhitch/NetBSD-c
urrent/src/gnu/dist/gettext/gettext-tools/libgrep/dfa.c

...

dependall ===> gnu/usr.bin/gettext/gettext
#    create  gettext/gettext.d
CC=/altroot/home/mhitch/NetBSD-current/tools.i386/bin/vax--netbsdelf-gcc /altroot/home/mhi
tch/NetBSD-current/tools.i386/bin/nbmkdep -f gettext.d --      -DHAVE_CONFIG_H -I/altroot/
home/mhitch/NetBSD-current/src/gnu/usr.bin/gettext/gettext -I/altroot/home/mhitch/NetBSD-c
urrent/src/gnu/usr.bin/gettext/gettext/../include  -I/altroot/home/mhitch/NetBSD-current/s
rc/gnu/dist/gettext/gettext-tools/lib -DLOCALEDIR=\"/usr/share/locale\"  -nostdinc -isyste
m /altroot/home/mhitch/NetBSD-current/DEST/vax/usr/include  -I/altroot/home/mhitch/NetBSD-
current/src/gnu/dist/gettext/gettext-runtime/src -I. -I. -I/altroot/home/mhitch/NetBSD-cur
rent/OBJ/vax/altroot/home/mhitch/NetBSD-current/src/gnu/usr.bin/gettext/gettext  /altroot/
home/mhitch/NetBSD-current/src/gnu/dist/gettext/gettext-runtime/src/gettext.c
/altroot/home/mhitch/NetBSD-current/src/gnu/dist/gettext/gettext-runtime/src/gettext.c:24:
 stdbool.h: No such file or directory
nbmkdep: compile failed.


  I think I'm getting a glimmer of what is going on though.  The build
boxes run with -j4, and if I do a build with -j4 or even -j1, the build
succeeds.

  The following log snippet was done without a -j option, but I had hacked
gettext/Makefile.inc.prog to add a -I/tmp and put a copy of stdbool.h in
/tmp.  This allowed the nbmkdep to succeed and the build to continue, and
shows that the creation of stdbool.h was getting done - but after it was
needed by the nbmkdep.


dependall ===> gnu/usr.bin/gettext/gettext
#    create  gettext/gettext.d
CC=/altroot/home/mhitch/NetBSD-current/tools.i386/bin/vax--netbsdelf-gcc /altroot/home/mhi
tch/NetBSD-current/tools.i386/bin/nbmkdep -f gettext.d --      -DHAVE_CONFIG_H -I/altroot/
home/mhitch/NetBSD-current/src/gnu/usr.bin/gettext/gettext -I/altroot/home/mhitch/NetBSD-c
urrent/src/gnu/usr.bin/gettext/gettext/../include  -I/altroot/home/mhitch/NetBSD-current/s
rc/gnu/dist/gettext/gettext-tools/lib -DLOCALEDIR=\"/usr/share/locale\"  -nostdinc -isyste
m /altroot/home/mhitch/NetBSD-current/DEST/vax/usr/include  -I/altroot/home/mhitch/NetBSD-
current/src/gnu/dist/gettext/gettext-runtime/src -I. -I. -I/altroot/home/mhitch/NetBSD-cur
rent/OBJ/vax/altroot/home/mhitch/NetBSD-current/src/gnu/usr.bin/gettext/gettext -I/tmp  /a
ltroot/home/mhitch/NetBSD-current/src/gnu/dist/gettext/gettext-runtime/src/gettext.c
#    create  gettext/.depend
rm -f .depend
CC=/altroot/home/mhitch/NetBSD-current/tools.i386/bin/vax--netbsdelf-gcc /altroot/home/mhi
tch/NetBSD-current/tools.i386/bin/nbmkdep -d -f .depend -s .o\ .ln gettext.d
sed -e 's:@HAVE__BOOL@:0:g'  /altroot/home/mhitch/NetBSD-current/src/gnu/dist/gettext/gett
ext-tools/lib/stdbool_.h > stdbool.h
echo "Creating stdbool.h in " /altroot/home/mhitch/NetBSD-current/OBJ/vax/altroot/home/mhi
tch/NetBSD-current/src/gnu/usr.bin/gettext/gettext
Creating stdbool.h in  /altroot/home/mhitch/NetBSD-current/OBJ/vax/altroot/home/mhitch/Net
BSD-current/src/gnu/usr.bin/gettext/gettext
rm -f .gdbinit
echo "set solib-absolute-prefix /altroot/home/mhitch/NetBSD-current/DEST/vax" > .gdbinit
#   compile  gettext/gettext.o


--
Michael L. Hitch			mhitch@montana.edu
Computer Consultant
Information Technology Center
Montana State University	Bozeman, MT	USA