I just tried building some portions of -current, using "build.sh -u" on
a much older object tree, and I ended up with the following error.
Now I'm not really up to date on building -current -- the old build
directories were last used just under a year ago (August 20, 2008), but
I kinda expected all the automated dependency maintenance to get
everything right regardless.
I guess that things might build properly if I nuke my old build
directories and start from scratch, but it seems to me there's a
dependency missing somewhere in the tools target, since "build.sh -t"
does complete cleanly.
I'll try a clean build from scratch next....
dependall ===> lib/csu
dependall ===> lib/csu/i386_elf
# compile i386_elf/crt0.o
/rest/build/woods/once/current-i386-i386-tools/bin/i486--netbsdelf-gcc -O2 -g
-DLOCKDEBUG -fno-unit-at-a-time -pipe -fPIC -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional
-Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Werror -O2
-I/rest/work/woods/m-NetBSD-current/lib/csu/i386_elf -DLIBC_SCCS -DPIC
-DDYNAMIC -DELFSIZE=32 -I/rest/work/woods/m-NetBSD-current/libexec/ld.elf_so
-I/rest/work/woods/m-NetBSD-current/lib/csu/i386_elf/../common_elf
-I/rest/work/woods/m-NetBSD-current/lib/libc/dlfcn -DDWARF2_EH -DJCR
-DDSO_HANDLE -nostdinc -isystem
/rest/build/woods/once/current-i386-ppro-destdir/usr/include -c -DCRT0
/rest/work/woods/m-NetBSD-current/lib/csu/i386_elf/crt0.c -o crt0.o.o
/rest/build/woods/once/current-i386-i386-tools/bin/i486--netbsdelf-ld -x -r -o
crt0.o crt0.o.o
sh: /rest/build/woods/once/current-i386-i386-tools/bin/i486--netbsdelf-ld: not
found
*** Failed target: crt0.o
*** Failed command:
/rest/build/woods/once/current-i386-i386-tools/bin/i486--netbsdelf-ld -x -r -o
crt0.o crt0.o.o
*** Error code 127
I see there are some i386 and some i486 tools now. Perhaps they should
all be "i486" tools? But the "build.sh -t" finished cleanly!
$ l /rest/build/woods/once/current-i386-i386-tools/bin
i386--netbsdelf-addr2line* nbfile*
i386--netbsdelf-ar* nbgenassym*
i386--netbsdelf-as* nbgencat*
i386--netbsdelf-c++* nbgmake*
i386--netbsdelf-c++filt* nbgroff*
i386--netbsdelf-cpp* nbhexdump*
i386--netbsdelf-dbsym* nbhost-mkdep*
i386--netbsdelf-fdisk* nbindxbib*
i386--netbsdelf-g++* nbinfo*
i386--netbsdelf-gcc* nbinfokey*
i386--netbsdelf-gcc-4.1.3* nbinstall-info*
i386--netbsdelf-gccbug* nbinstallboot*
i386--netbsdelf-gcov* nbjoin*
i386--netbsdelf-install* nblex*
i386--netbsdelf-ld* nblorder*
i386--netbsdelf-lint* nbm4*
i386--netbsdelf-mdsetimage* nbmake*
i386--netbsdelf-nm* nbmake-i386*
i386--netbsdelf-objcopy* nbmakefs*
i386--netbsdelf-objdump* nbmakeinfo*
i386--netbsdelf-ranlib* nbmakewhatis*
i386--netbsdelf-readelf* nbmenuc*
i386--netbsdelf-size* nbmkcsmapper*
i386--netbsdelf-strings* nbmkdep*
i386--netbsdelf-strip* nbmkesdb*
i486--netbsdelf-c++* nbmklocale*
i486--netbsdelf-cpp* nbmknod*
i486--netbsdelf-dbsym* nbmktemp*
i486--netbsdelf-fdisk* nbmsgc*
i486--netbsdelf-g++* nbmtree*
i486--netbsdelf-gcc* nbnroff*
i486--netbsdelf-gcc-4.1.3* nbpax*
i486--netbsdelf-gccbug* nbpaxctl*
i486--netbsdelf-gcov* nbpic*
i486--netbsdelf-install* nbpwd_mkdb*
i486--netbsdelf-lint* nbrefer*
i486--netbsdelf-mdsetimage* nbrpcgen*
nbasn1_compile* nbsed*
nbatf-compile* nbsoelim*
nbawk* nbstat*
nbcap_mkdb* nbstrfile*
nbcat* nbsunlabel*
nbcksum* nbtbl*
nbcompile_et* nbtexi2dvi*
nbconfig* nbtexi2pdf*
nbcrunchgen* nbtexindex*
nbctags* nbtsort*
nbdb* nbuudecode*
nbdisklabel-i386* nbyacc*
nbeqn* nbzic*
Here's the full details of my build environment. I note there's no
mention of "i486" anywhere in this output:
$ ./myupdate.sh -v -d
myupdate.sh: TARGET_MACHINE was not set from environ or cmd-line, using: i386
===> build.sh command: ./build.sh -j 6 -N 2 -m i386 -V
MAKECONF=${NETBSDSRCDIR}/etc/mk.conf -u -U -D
/rest/build/woods/once/current-i386-ppro-destdir -R
/rest/build/woods/once/current-i386-ppro-release -T
/rest/build/woods/once/current-i386-i386-tools -M
/rest/build/woods/once/current-i386-i386-ppro-obj params
===> build.sh started: Mon Jul 20 14:50:39 EDT 2009
===> NetBSD version: 5.99.15
===> MACHINE: i386
===> MACHINE_ARCH: i386
===> Build platform: NetBSD 4.0_STABLE i386
===> HOST_SH: /bin/sh
===> TOOLDIR path: /rest/build/woods/once/current-i386-i386-tools
===> DESTDIR path: /rest/build/woods/once/current-i386-ppro-destdir
===> RELEASEDIR path: /rest/build/woods/once/current-i386-ppro-release
===> makewrapper:
/rest/build/woods/once/current-i386-i386-tools/bin/nbmake-i386
===> Updated /rest/build/woods/once/current-i386-i386-tools/bin/nbmake-i386
--- params ---
params ===> etc
--- params ---
BSDOBJDIR = '/usr/obj'
BSDSRCDIR = '/usr/src'
BUILDID = (undefined)
DESTDIR = '/rest/build/woods/once/current-i386-ppro-destdir'
EXTERNAL_TOOLCHAIN = (undefined)
HAVE_GCC = '4'
HAVE_GDB = '6'
INSTALLWORLDDIR = (undefined)
KERNARCHDIR = 'arch/i386'
KERNCONFDIR = '/rest/work/woods/m-NetBSD-current/sys/arch/i386/conf'
KERNOBJDIR =
'/rest/build/woods/once/current-i386-i386-ppro-obj/rest/work/woods/m-NetBSD-current/sys/arch/i386/compile'
KERNSRCDIR = '/rest/work/woods/m-NetBSD-current/sys'
MACHINE = 'i386'
MACHINE_ARCH = 'i386'
MAKE =
'/rest/build/woods/once/current-i386-i386-tools/bin/nbmake'
MAKECONF = '/rest/work/woods/m-NetBSD-current/etc/mk.conf'
MAKEFLAGS = ' -d e -m /rest/work/woods/m-NetBSD-current/share/mk -j
6 -J 15,16 HOST_OSTYPE=NetBSD-4.0_STABLE-i386 MKOBJDIRS=yes USETOOLS=yes
_SRC_TOP_=/rest/work/woods/m-NetBSD-current
_SRC_TOP_OBJ_=/rest/build/woods/once/current-i386-i386-ppro-obj/rest/work/woods/m-NetBSD-current
_THISDIR_=etc/'
MAKEOBJDIR = (undefined)
MAKEOBJDIRPREFIX = '/rest/build/woods/once/current-i386-i386-ppro-obj'
MAKEVERBOSE = '2'
MKBFD = 'yes'
MKCATPAGES = 'yes'
MKCRYPTO = 'yes'
MKCRYPTO_IDEA = 'yes'
MKCRYPTO_MDC2 = 'yes'
MKCRYPTO_RC5 = 'yes'
MKCVS = 'yes'
MKDEBUG = 'yes'
MKDEBUGLIB = 'yes'
MKDOC = 'yes'
MKDYNAMICROOT = 'no'
MKGCC = 'yes'
MKGCCCMDS = 'yes'
MKGDB = 'yes'
MKHESIOD = 'no'
MKHOSTOBJ = (undefined)
MKHTML = 'no'
MKIEEEFP = 'yes'
MKINET6 = 'no'
MKINFO = 'yes'
MKIPFILTER = 'yes'
MKKERBEROS = 'no'
MKLDAP = 'yes'
MKLINKLIB = 'yes'
MKLINT = 'yes'
MKMAN = 'yes'
MKMANZ = 'no'
MKNLS = 'yes'
MKNVI = (undefined)
MKOBJ = 'yes'
MKOBJDIRS = 'yes'
MKPAM = 'no'
MKPF = 'yes'
MKPIC = 'yes'
MKPICINSTALL = 'yes'
MKPICLIB = 'yes'
MKPOSTFIX = 'no'
MKPROFILE = 'yes'
MKSHARE = 'yes'
MKSKEY = 'yes'
MKSOFTFLOAT = 'no'
MKSTATICLIB = 'yes'
MKUNPRIVED = 'yes'
MKUPDATE = 'yes'
MKX11 = 'yes'
MKYP = 'no'
NBUILDJOBS = (undefined)
NETBSDSRCDIR = '/rest/work/woods/m-NetBSD-current'
NOCLEANDIR = (undefined)
NODISTRIBDIRS = (undefined)
NOINCLUDES = (undefined)
OBJMACHINE = (undefined)
RELEASEDIR = '/rest/build/woods/once/current-i386-ppro-release'
RELEASEMACHINEDIR = 'i386'
TOOLCHAIN_MISSING = 'no'
TOOLDIR = '/rest/build/woods/once/current-i386-i386-tools'
USE_HESIOD = 'no'
USE_INET6 = 'no'
USE_JEMALLOC = 'yes'
USE_KERBEROS = 'no'
USE_LDAP = 'yes'
USE_PAM = 'no'
USE_SKEY = 'no'
USE_YP = 'no'
USETOOLS = 'yes'
USR_OBJMACHINE = (undefined)
X11SRCDIR = '/usr/xsrc-current'
X11FLAVOUR = 'Xorg'
===> Successful make params
===> build.sh ended: Mon Jul 20 14:50:41 EDT 2009
===> Summary of results:
build.sh command: ./build.sh -j 6 -N 2 -m i386 -V
MAKECONF=${NETBSDSRCDIR}/etc/mk.conf -u -U -D
/rest/build/woods/once/current-i386-ppro-destdir -R
/rest/build/woods/once/current-i386-ppro-release -T
/rest/build/woods/once/current-i386-i386-tools -M
/rest/build/woods/once/current-i386-i386-ppro-obj params
build.sh started: Mon Jul 20 14:50:39 EDT 2009
NetBSD version: 5.99.15
MACHINE: i386
MACHINE_ARCH: i386
Build platform: NetBSD 4.0_STABLE i386
HOST_SH: /bin/sh
TOOLDIR path: /rest/build/woods/once/current-i386-i386-tools
DESTDIR path: /rest/build/woods/once/current-i386-ppro-destdir
RELEASEDIR path: /rest/build/woods/once/current-i386-ppro-release
makewrapper:
/rest/build/woods/once/current-i386-i386-tools/bin/nbmake-i386
Updated /rest/build/woods/once/current-i386-i386-tools/bin/nbmake-i386
Successful make params
build.sh ended: Mon Jul 20 14:50:41 EDT 2009
===> .
rm -rf /rest/build/woods/once/current-i386-ppro-destdir
rm -rf /rest/build/woods/once/current-i386-ppro-release
sh ./build.sh -j 6 -N 2 -m i386 -V MAKECONF=${NETBSDSRCDIR}/etc/mk.conf -u -U
-D /rest/build/woods/once/current-i386-ppro-destdir -R
/rest/build/woods/once/current-i386-ppro-release -T
/rest/build/woods/once/current-i386-i386-tools -M
/rest/build/woods/once/current-i386-i386-ppro-obj release
--
Greg A. Woods
+1 416 218-0098 VE3TCP RoboHack
<woods%robohack.ca@localhost>
Planix, Inc. <woods%planix.com@localhost> Secrets of the Weird
<woods%weird.com@localhost>
Attachment:
pgpOlGRedSC2O.pgp
Description: PGP signature