Subject: Build Shell dies on "distribution" in netbsd-2 (stable) from cvs
To: None <netbsd-users@netbsd.org>
From: None <yancm@sdf.lonestar.org>
List: netbsd-users
Date: 11/06/2005 08:53:20
I'm running NetBSD 2_Stable on i386 (P2 w/256M ram).
I'm using this box as a central server/nat/firewall for my
home/home office.
Using in-kernel raid, ipnat/ipf, dns, samba, tor...

I've been tracking the stable 2.x branch from CVS for several months.

With the 2.1 release announcement, I thought it was time to
sync everthing up.

I use the following to synchronize (in /usr):
# cvs update -dP -rnetbsd-2 src

then (in /usr/src):
# ./build.sh -O ../obj -T ../tools -u tools
# ./build.sh -O ../obj -T ../tools -u kernel=CLARITY
(clarity is my custom kernel - has raid enabled and adds
bunches of memory for custom block rules in ipf,
extra file descriptors for tor)
So far so good. I was able to boot with the new kernel showing
a build tag of:
NetBSD 2.1_STABLE (CLARITY) #15: Thu Nov 3 21:46:27 EST 2005

**BUT** When I try to make the distribution using:
# ./build.sh -O ../obj -T ../tools -u distribution

Everything grinds along for a while (20-30 minutes on my box)
It dies as follows:

depend ===> rescue/mbr
`fdisk.o' is up to date.
if [ \! -d ldconfig ]; then mkdir ldconfig; fi; cd ldconfig;  printf
".PATH: /usr/src/sbin/ldconfig\n.CURDIR:= /usr/src/sbin/ldconfig\n.include
\"\${.CURDIR}/Makefile\"\n"  | /usr/src/../tools/bin/nbmake -f-
CRUNCHEDPROG=1 DBG="-Os" depend ldconfig.o shlib.o
`ldconfig.o' is up to date.
`shlib.o' is up to date.
/usr/src/../tools/bin/nbmake -f rescue.mk rescue
#      link  rescue/rescue
/usr/src/../tools/bin/i386--netbsdelf-gcc -Wl,-nostdlib    -static -o
rescue 
-Wl,-rpath-link,/usr/src/../obj/destdir.i386/lib:/usr/src/../obj/destdir.i386/usr/lib
 -L/usr/src/../obj/destdir.i386/lib 
-B/usr/src/../obj/destdir.i386/usr/lib/
-B/usr/src/../obj/destdir.i386/usr/lib/   rescue.o cat.cro chio.cro
chmod.cro cp.cro csh.cro date.cro dd.cro df.cro domainname.cro echo.cro
ed.cro expr.cro hostname.cro kill.cro ksh.cro ln.cro ls.cro mkdir.cro
mt.cro mv.cro pax.cro ps.cro pwd.cro rcmd.cro rcp.cro rm.cro rmdir.cro
sh.cro sleep.cro stty.cro sync.cro systrace.cro test.cro atactl.cro
badsect.cro brconfig.cro ccdconfig.cro clri.cro disklabel.cro dkctl.cro
dmesg.cro dump.cro dump_lfs.cro fsck.cro fsck_ext2fs.cro fsck_ffs.cro
fsck_lfs.cro fsck_msdos.cro fsdb.cro fsirand.cro ifconfig.cro init.cro
lmcctl.cro mbrlabel.cro mknod.cro modload.cro modunload.cro mount.cro
mount_ados.cro mount_cd9660.cro mount_ext2fs.cro mount_fdesc.cro
mount_ffs.cro mount_filecore.cro mount_kernfs.cro mount_lfs.cro
mount_msdos.cro mount_nfs.cro mount_ntfs.cro mount_null.cro
mount_overlay.cro mount_portal.cro mount_procfs.cro mount_smbfs.cro
mount_umap.cro mount_union.cro newfs.cro newfs_lfs.cro newfs_msdos.cro
ping.cro ping6.cro pppoectl.cro raidctl.cro rcorder.cro reboot.cro
restore.cro rndctl.cro route.cro routed.cro rtsol.cro savecore.cro
scsictl.cro setkey.cro shutdown.cro slattach.cro swapctl.cro sysctl.cro
ttyflags.cro tunefs.cro umount.cro wdogctl.cro wsconsctl.cro bzip2.cro
ftp.cro kdump.cro ktrace.cro ktruss.cro ldd.cro chown.cro installboot.cro
gzip.cro fdisk.cro ldconfig.cro  liboverride.o -lbz2 -lcrypt -ledit
-lipsec -lkvm -ll -lm -lrmt -ltermcap -lutil -lz -levent  
-L/usr/src/../obj/destdir.i386/usr/lib
-L/usr/src/../obj/destdir.i386/usr/lib
newfs_lfs.cro(.text+0xb4): In function
`_$$hide$$newfs_lfs.cro$$lfs_vop_strategy':
: undefined reference to `reassignbuf'
newfs_lfs.cro(.text+0x102): In function
`_$$hide$$newfs_lfs.cro$$lfs_vop_bwrite':
: undefined reference to `reassignbuf'
newfs_lfs.cro(.text+0x108): In function
`_$$hide$$newfs_lfs.cro$$lfs_vop_bwrite':
: undefined reference to `brelse'
newfs_lfs.cro(.text+0x1fa): In function
`_$$hide$$newfs_lfs.cro$$ufs_bmaparray':
: undefined reference to `incore'
newfs_lfs.cro(.text+0x220): In function
`_$$hide$$newfs_lfs.cro$$ufs_bmaparray':
: undefined reference to `brelse'
newfs_lfs.cro(.text+0x238): In function
`_$$hide$$newfs_lfs.cro$$ufs_bmaparray':
: undefined reference to `getblk'
newfs_lfs.cro(.text+0x2b4): In function
`_$$hide$$newfs_lfs.cro$$ufs_bmaparray':
: undefined reference to `brelse'
newfs_lfs.cro(.text+0x5d3): In function
`_$$hide$$newfs_lfs.cro$$lfs_raw_vget':
: undefined reference to `bread'
newfs_lfs.cro(.text+0x5fc): In function
`_$$hide$$newfs_lfs.cro$$lfs_raw_vget':
: undefined reference to `brelse'
newfs_lfs.cro(.text+0x62c): In function
`_$$hide$$newfs_lfs.cro$$lfs_raw_vget':
: undefined reference to `brelse'
newfs_lfs.cro(.text+0x79c): In function `lfs_vget':
: undefined reference to `bread'
newfs_lfs.cro(.text+0x7e2): In function `lfs_vget':
: undefined reference to `brelse'
newfs_lfs.cro(.text+0x869): In function `_$$hide$$newfs_lfs.cro$$lfs_init':
newfs_lfs.cro(.text+0x1c61): In function `_$$hide$$newfs_lfs.cro$$main':
: undefined reference to `make_lfs'
collect2: ld returned 1 exit status

*** Failed target:  rescue
*** Failed command: /usr/src/../tools/bin/i386--netbsdelf-gcc
-Wl,-nostdlib -static -o rescue
-Wl,-rpath-link,/usr/src/../obj/destdir.i386/lib:/usr/src/../obj/destdir.i386/usr/lib
-L/usr/src/../obj/destdir.i386/lib -B/usr/src/../obj/destdir.i386/usr/lib/
-B/usr/src/../obj/destdir.i386/usr/lib/ rescue.o cat.cro chio.cro
chmod.cro cp.cro csh.cro date.cro dd.cro df.cro domainname.cro echo.cro
ed.cro expr.cro hostname.cro kill.cro ksh.cro ln.cro ls.cro mkdir.cro
mt.cro mv.cro pax.cro ps.cro pwd.cro rcmd.cro rcp.cro rm.cro rmdir.cro
sh.cro sleep.cro stty.cro sync.cro systrace.cro test.cro atactl.cro
badsect.cro brconfig.cro ccdconfig.cro clri.cro disklabel.cro dkctl.cro
dmesg.cro dump.cro dump_lfs.cro fsck.cro fsck_ext2fs.cro fsck_ffs.cro
fsck_lfs.cro fsck_msdos.cro fsdb.cro fsirand.cro ifconfig.cro init.cro
lmcctl.cro mbrlabel.cro mknod.cro modload.cro modunload.cro mount.cro
mount_ados.cro mount_cd9660.cro mount_ext2fs.cro mount_fdesc.cro
mount_ffs.cro mount_filecore.cro mount_kernfs.cro mount_lfs.cro
mount_msdos.cro mount_nfs.cro mount_ntfs.cro mount_null.cro
mount_overlay.cro mount_portal.cro mount_procfs.cro mount_smbfs.cro
mount_umap.cro mount_union.cro newfs.cro newfs_lfs.cro newfs_msdos.cro
ping.cro ping6.cro pppoectl.cro raidctl.cro rcorder.cro reboot.cro
restore.cro rndctl.cro route.cro routed.cro rtsol.cro savecore.cro
scsictl.cro setkey.cro shutdown.cro slattach.cro swapctl.cro sysctl.cro
ttyflags.cro tunefs.cro umount.cro wdogctl.cro wsconsctl.cro bzip2.cro
ftp.cro kdump.cro ktrace.cro ktruss.cro ldd.cro chown.cro installboot.cro
gzip.cro fdisk.cro ldconfig.cro liboverride.o -lbz2 -lcrypt -ledit -lipsec
-lkvm -ll -lm -lrmt -ltermcap -lutil -lz -levent
-L/usr/src/../obj/destdir.i386/usr/lib
-L/usr/src/../obj/destdir.i386/usr/lib
*** Error code 1

Stop.
nbmake: stopped in /usr/obj/rescue

*** Failed target:  rescue.strip
*** Failed command: /usr/src/../tools/bin/nbmake -f rescue.mk rescue
*** Error code 1

Stop.
nbmake: stopped in /usr/obj/rescue

*** Failed target:  rescue
*** Failed command: RESCUEDIR=/rescue /usr/src/../tools/bin/nbmake -f
rescue.mk rescue.crunched
*** Error code 1

Stop.
nbmake: stopped in /usr/src/rescue

*** Failed target:  dependall
*** Failed command: cd /usr/src/rescue; /usr/src/../tools/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/rescue

*** Failed target:  dependall-rescue
*** Failed command: targ=dependall;dir=rescue; case "$dir" in /*) echo
"$targ ===> $dir"; cd "$dir"; /usr/src/../tools/bin/nbmake
"_THISDIR_=$dir/" $targ; ;; *) echo "$targ ===> $dir"; cd "/usr/src/$dir";
/usr/src/../tools/bin/nbmake "_THISDIR_=$dir/" $targ; ;; esac
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  do-build
*** Failed command: (cd /usr/src && /usr/src/../tools/bin/nbmake dependall
BUILD_tools=no BUILD_lib=no)
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  build
*** Failed command: (cd /usr/src && /usr/src/../tools/bin/nbmake do-build)
*** Error code 1

Stop.
nbmake: stopped in /usr/src

*** Failed target:  distribution
*** Failed command: (cd /usr/src && /usr/src/../tools/bin/nbmake
NOPOSTINSTALL=1 build)
*** Error code 1

Stop.
nbmake: stopped in /usr/src

ERROR: Failed to make distribution
*** BUILD ABORTED ***
#########################################################################
## What if anything am I doing wrong?

Thanks,
gene