Subject: Compiling NetBSD current
To: None <tech-toolchain@NetBSD.org>
From: Brendon Costa <bcosta@avdat.com.au>
List: tech-toolchain
Date: 04/18/2006 11:41:07
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

For the last week or so I have been doing cvs updates to try and
compile the latest copy of NetBSD current. I was going to test a patch
that was submitted recently for the ldexp function on the amd64 port,
however the build fails at the point of trying to create a set of
build tools.

I am compiling on a host i386 box running NetBSD 3.0 for a target
amd64 box. I am issuing the following build command in the netbsd src
directory:

./build.sh -U -u -m amd64 -B Brendon -O
/usr/netbsd/build/netbsd-current-2006_04_10_11_42/amd64/obj -D
/usr/netbsd/build/netbsd-current-2006_04_10_11_42/amd64/build -R
/usr/netbsd/build/netbsd-current-2006_04_10_11_42/amd64/release -T
/usr/netbsd/build/netbsd-current-2006_04_10_11_42/amd64/toolchain-l386
tools


When I issue the above command I get a bunch of errors that look like:

===> build.sh started: Mon Apr 10 17:24:53 EST 2006
nbmake: "/usr/netbsd/src/Makefile" line 175: Malformed conditional
(${HAVE_GCC} == "3")
nbmake: "/usr/netbsd/src/Makefile" line 175: Need an operator
nbmake: "/usr/netbsd/src/Makefile" line 180: if-less else
nbmake: "/usr/netbsd/src/Makefile" line 180: Need an operator
nbmake: "/usr/netbsd/src/Makefile" line 182: if-less endif
nbmake: "/usr/netbsd/src/Makefile" line 182: Need an operator
nbmake: "/usr/netbsd/src/Makefile" line 203: Malformed conditional
((${HAVE_GCC} == "3" || ${HAVE_GCC} == "4"))
nbmake: "/usr/netbsd/src/Makefile" line 203: Missing dependency operator
nbmake: "/usr/netbsd/src/Makefile" line 207: if-less endif
nbmake: "/usr/netbsd/src/Makefile" line 207: Need an operator
nbmake: Fatal errors encountered -- cannot continue
nbmake: "/usr/netbsd/src/share/mk/bsd.own.mk" line 99: warning: "cd
/usr/netbsd/src &&
/usr/netbsd/build/netbsd-current-2006_04_10_11_42/amd64/toolchain-l386/bin/nbmake
- -V .OBJDIR" returned non-zero status


Some other information that may be useful to know:

cvs status of the Makefile mentioned above gives:

File: Makefile         	Status: Up-to-date

   Working revision:	1.244
   Repository revision:	1.244	/cvsroot/src/Makefile,v
   Sticky Tag:		(none)
   Sticky Date:		(none)
   Sticky Options:	(none)


The contents of the Makefile is exactly as that in the repository. I.e. :

Lines 171 - 216:

171: #
172: # Targets (in order!) called by "make build".
173: #
174: .if ${USE_TOOLS_TOOLCHAIN} == "no"
175: . if ${HAVE_GCC} == "3"
176: LIBGCC_EXT=3
177: . else
178: LIBGCC_EXT=4
179: . endif
170: .else
181: LIBGCC_EXT=
182: .endif
183:
184: BUILDTARGETS+=	check-tools
185: .if ${MKUPDATE} == "no" && !defined(NOCLEANDIR)
186: BUILDTARGETS+=	cleandir
187: .endif
188: .if ${MKOBJDIRS} != "no"
189: BUILDTARGETS+=	obj
190: .endif
191: .if ${USETOOLS} == "yes"
192: BUILDTARGETS+=	do-tools
193: .endif
194: .if !defined(NODISTRIBDIRS)
195: BUILDTARGETS+=	do-distrib-dirs
196: .endif
197: .if !defined(NOINCLUDES)
198: BUILDTARGETS+=	includes
199: .endif
200: BUILDTARGETS+=	do-tools-compat
201: BUILDTARGETS+=	do-lib-csu
202: .if ${MKGCC} != "no"
203: .if (${HAVE_GCC} == "3" || ${HAVE_GCC} == "4")
204: BUILDTARGETS+=	do-gnu-lib-crtstuff${LIBGCC_EXT}
205: .endif
206: BUILDTARGETS+=	do-gnu-lib-libgcc${LIBGCC_EXT}
207: .endif
208: BUILDTARGETS+=	do-lib-libc
209: BUILDTARGETS+=	do-lib do-gnu-lib
210: BUILDTARGETS+=	do-ld.so
211: BUILDTARGETS+=	do-build
212: .if ${MKX11} != "no"
213: BUILDTARGETS+=	do-x11
214: .endif
215: BUILDTARGETS+=	do-obsolete


Any ideas as to what may be the problem? Has the usage of the build.sh
script changed since 3.0?

Thanks,
Brendon.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEREOzPfREiUgoLqwRAmYLAKCpLQZ6TEwY+PCX2D7gFqB2XzM++gCfeVCJ
0rSyZ47wPkr6yXHZOMzqmP0=
=/omV
-----END PGP SIGNATURE-----