Subject: port-alpha/25399: port-alpha boot floppies aren't building
To: None <gnats-bugs@gnats.NetBSD.org>
From: Eric Schnoebelen <eric@cirr.com>
List: netbsd-bugs
Date: 04/29/2004 22:27:04
>Number:         25399
>Category:       port-alpha
>Synopsis:       alpha boot floppies aren't building
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-alpha-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 30 03:28:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Eric Schnoebelen
>Release:        NetBSD 2.0_BETA (20040427)
>Organization:
Eric Schnoebelen		eric@cirr.com 		http://www.cirr.com
  Server (n.), 1. Large, extremely expensive machine that goes "Ping!".
  Measuring at least 25 cubic feet, heavy, bulky and giving of more heat
    than a nuclear power plant.  It's big, it's bad, it's beautiful and 
      makes it pretty clear what happened to this year's IT-budget.
>Environment:
    Build System:
	System: NetBSD egsner.cirr.com 1.6ZH NetBSD 1.6ZH (GENERIC.MP) #50:\ Mon Jan 26 08:09:37 CST 2004 eric@egsner.cirr.com:/work/eric/NetBSD-current/obj/i386/sys/arch/i386/compile/GENERIC.MP i386
Architecture: i386
Machine: i386

>Description:
	When cross building NetBSD 2.0/alpha on an i386, the
	installation/boot floppys do not build. The build process
	complains about the generated image being 44k to large.
	releng.netbsd.org is showing the same errors for the last two
	build cycles.

    Note:
	Due to the nature of the wrapper script, MKTOOL=no on the
	build, because they were built in the immediately preceeding
	pass (tools are built serially, while platform releases
	are built in parallel.)

===> build.sh command: /work/eric/NetBSD-2.0/src/build.sh -U -m alpha -V MKTOOLS=no -V SYSINST_FTP_DIR=pub/NetBSD/NetBSD-2.0_BETA-20040427/alpha -V SYSINST_FTP_HOST=ftp.cirr.com -V MKX11=yes -V X11SRCDIR=/work/eric/NetBSD-2.0/xsrc -T /work/eric/NetBSD-2.0/tools.i386 -O /work/eric/NetBSD-2.0/obj/alpha -D /netboot/NetBSD-2.0_BETA/alpha/ -R /home/ftp/pub/NetBSD/NetBSD-2.0_BETA-20040427 release
===> build.sh started: Tue Apr 27 09:32:18 CDT 2004
===> MACHINE:          alpha
===> MACHINE_ARCH:     alpha
===> TOOLDIR path:     /work/eric/NetBSD-2.0/tools.i386
===> DESTDIR path:     /netboot/NetBSD-2.0_BETA/alpha/
===> RELEASEDIR path:  /home/ftp/pub/NetBSD/NetBSD-2.0_BETA-20040427
===> makewrapper:      /work/eric/NetBSD-2.0/tools.i386/bin/nbmake-alpha
===> Updated /work/eric/NetBSD-2.0/tools.i386/bin/nbmake-alpha
(cd /work/eric/NetBSD-2.0/src && /work/eric/NetBSD-2.0/tools.i386/bin/nbmake NOPOSTINSTALL=1 build)
Build started at: Tue Apr 27 09:32:23 CDT 2004
[...]

#      link  ramdisk/ramdiskbin
/work/eric/NetBSD-2.0/tools.i386/bin/alpha--netbsd-gcc -Wl,-nostdlib    -static -o ramdiskbin  -Wl,-rpath-link,/netboot/NetBSD-2.0_BETA/alpha//lib:/netboot/NetBSD-2.0_BETA/alpha//usr/lib  -L/netboot/NetBSD-2.0_BETA/alpha//lib  -B/netboot/NetBSD-2.0_BETA/alpha//usr/lib/ -B/netboot/NetBSD-2.0_BETA/alpha//usr/lib/   ramdiskbin.o cat.cro chmod.cro cp.cro dd.cro df.cro ed.cro ln.cro ls.cro mkdir.cro mt.cro mv.cro pax.cro pwd.cro rm.cro sh.cro stty.cro sync.cro disklabel.cro fsck.cro fsck_ffs.cro ifconfig.cro init.cro mknod.cro mount.cro mount_cd9660.cro mount_ffs.cro mount_kernfs.cro mount_msdos.cro mount_nfs.cro newfs.cro ping.cro reboot.cro restore.cro route.cro shutdown.cro slattach.cro swapctl.cro umount.cro ftp.cro gzip.cro less.cro sed.cro tip.cro tset.cro bad144.cro chown.cro chroot.cro installboot.cro sysinst.cro progress.cro  -ledit -lbz2 -lutil -lcurses -ltermcap -lrmt -lcrypt -ll -lm -lz   -L/netboot/NetBSD-2.0_BETA/alpha//usr/lib -L/netboot/NetBSD-2.0_BETA/alpha//usr/!
 lib
/work/eric/NetBSD-2.0/tools.i386/lib/gcc-lib/alpha--netbsd/3.3.3/../../../../alpha--netbsd/bin/ld: Warning: size of symbol `erasechar' changed from 4 in tset.cro to 56 in /netboot/NetBSD-2.0_BETA/alpha//usr/lib/libcurses.a(tty.o)
/work/eric/NetBSD-2.0/tools.i386/lib/gcc-lib/alpha--netbsd/3.3.3/../../../../alpha--netbsd/bin/ld: Warning: type of symbol `erasechar' changed from 1 to 2 in /netboot/NetBSD-2.0_BETA/alpha//usr/lib/libcurses.a(tty.o)
/work/eric/NetBSD-2.0/tools.i386/lib/gcc-lib/alpha--netbsd/3.3.3/../../../../alpha--netbsd/bin/ld: Warning: size of symbol `raw' changed from 4 in umount.cro to 200 in /netboot/NetBSD-2.0_BETA/alpha//usr/lib/libcurses.a(tty.o)
/work/eric/NetBSD-2.0/tools.i386/lib/gcc-lib/alpha--netbsd/3.3.3/../../../../alpha--netbsd/bin/ld: Warning: type of symbol `raw' changed from 1 to 2 in /netboot/NetBSD-2.0_BETA/alpha//usr/lib/libcurses.a(tty.o)
/work/eric/NetBSD-2.0/tools.i386/lib/gcc-lib/alpha--netbsd/3.3.3/../../../../alpha--netbsd/bin/ld: Warning: size of symbol `killchar' changed from 4 in tset.cro to 56 in /netboot/NetBSD-2.0_BETA/alpha//usr/lib/libcurses.a(tty.o)
/work/eric/NetBSD-2.0/tools.i386/lib/gcc-lib/alpha--netbsd/3.3.3/../../../../alpha--netbsd/bin/ld: Warning: type of symbol `killchar' changed from 1 to 2 in /netboot/NetBSD-2.0_BETA/alpha//usr/lib/libcurses.a(tty.o)
stripping ramdiskbin
rm -f devices.spec devices.spec.tmp
MACHINE=alpha MACHINE_ARCH=alpha  sh /work/eric/NetBSD-2.0/obj/alpha/etc/MAKEDEV -s minimal  | sed -e 's,^\.,./dev,' > devices.spec.tmp  && sort -o devices.spec devices.spec.tmp
rm -f work.spec work.spec.tmp
( for i in /work/eric/NetBSD-2.0/src/distrib/common/mtree.common devices.spec; do	 cat $i ;		 echo "/unset all" ;	 done ) >> work.spec.tmp
INSTALLNOTES=/work/eric/NetBSD-2.0/obj/alpha/distrib/notes/alpha/INSTALL.more TOOL_PWD_MKDB=/work/eric/NetBSD-2.0/tools.i386/bin/nbpwd_mkdb NETBSDSRCDIR=/work/eric/NetBSD-2.0/src  CRUNCHBIN=ramdiskbin  CURDIR=/work/eric/NetBSD-2.0/src/distrib/alpha/instkernel/ramdisk  DESTDIR=/netboot/NetBSD-2.0_BETA/alpha/  DISTRIBDIR=/work/eric/NetBSD-2.0/src/distrib  MACHINE=alpha  MACHINE_ARCH=alpha  MAKE=/work/eric/NetBSD-2.0/tools.i386/bin/nbmake  OBJDIR=/work/eric/NetBSD-2.0/obj/alpha/distrib/alpha/instkernel/ramdisk TARGETDIR=/work/eric/NetBSD-2.0/obj/alpha/distrib/alpha/instkernel/ramdisk/work awk -f /work/eric/NetBSD-2.0/src/distrib/common/parselist.awk -v mode=mtree /work/eric/NetBSD-2.0/src/distrib/alpha/instkernel/ramdisk/list /work/eric/NetBSD-2.0/src/distrib/common/list.sysinst >> work.spec.tmp  && mv work.spec.tmp work.spec
[ "ramdiskbin /work/eric/NetBSD-2.0/src/distrib/alpha/instkernel/ramdisk/disktab.preinstall /work/eric/NetBSD-2.0/src/distrib/alpha/instkernel/ramdisk/dot.hdprofile /work/eric/NetBSD-2.0/src/distrib/alpha/instkernel/ramdisk/dot.profile /work/eric/NetBSD-2.0/src/distrib/alpha/instkernel/ramdisk/install.sh /work/eric/NetBSD-2.0/src/distrib/alpha/instkernel/ramdisk/upgrade.sh /netboot/NetBSD-2.0_BETA/alpha//usr/mdec/boot /netboot/NetBSD-2.0_BETA/alpha//usr/mdec/bootxx_ffs /netboot/NetBSD-2.0_BETA/alpha//usr/share/misc/termcap /work/eric/NetBSD-2.0/src/distrib/utils/script-installer/dot.commonutils /work/eric/NetBSD-2.0/src/distrib/utils/script-installer/dot.instutils /work/eric/NetBSD-2.0/src/etc/group /work/eric/NetBSD-2.0/src/etc/master.passwd /work/eric/NetBSD-2.0/src/etc/netconfig /work/eric/NetBSD-2.0/src/etc/protocols /work/eric/NetBSD-2.0/src/etc/services /work/eric/NetBSD-2.0/obj/alpha/distrib/notes/alpha/INSTALL.more work.spec /work/eric/NetBSD-2.0/src/distrib/common/p!
 arselist.awk /work/eric/NetBSD-2.0/src/distrib/alpha/instkernel/ramdisk/list /work/eric/NetBSD-2.0/src/distrib/common/list.sysinst" = ramdiskbin -a -f work.built -a work.built -nt ramdiskbin ]  || {  echo "Building tree into work";  rm -rf work work.built;  mkdir -m 755 work &&   /work/eric/NetBSD-2.0/tools.i386/bin/nbmtree -def work.spec -p work/ -UW &&  INSTALLNOTES=/work/eric/NetBSD-2.0/obj/alpha/distrib/notes/alpha/INSTALL.more TOOL_PWD_MKDB=/work/eric/NetBSD-2.0/tools.i386/bin/nbpwd_mkdb NETBSDSRCDIR=/work/eric/NetBSD-2.0/src  CRUNCHBIN=ramdiskbin  CURDIR=/work/eric/NetBSD-2.0/src/distrib/alpha/instkernel/ramdisk  DESTDIR=/netboot/NetBSD-2.0_BETA/alpha/  DISTRIBDIR=/work/eric/NetBSD-2.0/src/distrib  MACHINE=alpha  MACHINE_ARCH=alpha  MAKE=/work/eric/NetBSD-2.0/tools.i386/bin/nbmake  OBJDIR=/work/eric/NetBSD-2.0/obj/alpha/distrib/alpha/instkernel/ramdisk TARGETDIR=/work/eric/NetBSD-2.0/obj/alpha/distrib/alpha/instkernel/ramdisk/work awk -f /work/eric/NetBSD-2.0/src/dist!
 rib/common/parselist.awk -v mode=populate /work/eric/NetBSD-2.!
 0/src/di
strib/alpha/instkernel/ramdisk/list /work/eric/NetBSD-2.0/src/distrib/common/list.sysinst |  sh -e   && touch work.built ;  }
Building tree into work
missing: ./bin (created)
missing: ./dev (created)
missing: ./etc (created)
missing: ./mnt (created)
missing: ./mnt2 (created)
missing: ./kern (created)
missing: ./sbin (created)
missing: ./tmp (created)
missing: ./usr (created)
missing: ./usr/bin (created)
missing: ./usr/mdec (created)
missing: ./usr/sbin (created)
missing: ./usr/share (created)
missing: ./usr/share/misc (created)
missing: ./var (created)
missing: ./var/db (created)
missing: ./var/run (created)
missing: ./var/log (created)
missing: ./var/spool (created)
missing: ./var/spool/lock (created)
[ "work.built" = work.built -a -f ramdisk.fs -a ! ramdisk.fs -ot work.built ]  || {  echo "Creating image into ramdisk.fs...";  rm -f ramdisk.fs ramdisk.fs.tmp;  /work/eric/NetBSD-2.0/tools.i386/bin/nbmakefs -t ffs -B le -s 4480k -F work.spec  -N /work/eric/NetBSD-2.0/src/etc -o bsize=4096,fsize=512  -o optimization=space,minfree=0  -o density=5k ramdisk.fs.tmp work  && mv -f ramdisk.fs.tmp ramdisk.fs;  }
Creating image into ramdisk.fs...
Calculated size of `ramdisk.fs.tmp': 4587520 bytes, 289 inodes
Extent size set to 4096
ramdisk.fs.tmp: 4.4MB (8960 sectors) block size 4096, fragment size 512
	using 1 cylinder groups of 4.38MB, 1120 blks, 896 inodes.
super-block backups (for fsck -b #) at:
 32,
Populating `ramdisk.fs.tmp'
Image `ramdisk.fs.tmp' complete
all ===> alpha/instkernel/instkernel
mdsetimage: /work/eric/NetBSD-2.0/obj/alpha/sys/arch/alpha/compile/INSTALL/netbsd
      with: /work/eric/NetBSD-2.0/obj/alpha/distrib/alpha/instkernel/ramdisk/ramdisk.fs
      into: netbsd
/work/eric/NetBSD-2.0/tools.i386/bin/alpha--netbsd-mdsetimage -v netbsd.tmp /work/eric/NetBSD-2.0/obj/alpha/distrib/alpha/instkernel/ramdisk/ramdisk.fs
got symbols from netbsd.tmp
mapped netbsd.tmp
copying image /work/eric/NetBSD-2.0/obj/alpha/distrib/alpha/instkernel/ramdisk/ramdisk.fs into netbsd.tmp
done copying image
exiting
/work/eric/NetBSD-2.0/tools.i386/bin/alpha--netbsd-nm netbsd.tmp | gzip -9 > netbsd.symbols.gz
/work/eric/NetBSD-2.0/tools.i386/bin/alpha--netbsd-strip netbsd.tmp
rm -f netbsd.gz
gzip -9c netbsd > netbsd.gz
all ===> alpha/instkernel/fdset
Copying /netboot/NetBSD-2.0_BETA/alpha//usr/mdec/ustarboot to boot
Copying /work/eric/NetBSD-2.0/obj/alpha/distrib/alpha/instkernel/instkernel/netbsd.gz to netbsd
Creating disk1of2 from: boot netbsd
PAX=/work/eric/NetBSD-2.0/tools.i386/bin/nbpax sh /work/eric/NetBSD-2.0/src/distrib/common/buildfloppies.sh  -i "/work/eric/NetBSD-2.0/tools.i386/bin/nbinstallboot -v -m alpha -t raw -b 17 @IMAGE@ /netboot/NetBSD-2.0_BETA/alpha//usr/mdec/ustarboot"   -m 2 -s of2  disk 2880 boot netbsd
Running instboot: /work/eric/NetBSD-2.0/tools.i386/bin/nbinstallboot -v -m alpha -t raw -b 17 floppy.3816.tar /netboot/NetBSD-2.0_BETA/alpha//usr/mdec/ustarboot
File system:         floppy.3816.tar
File system type:    raw (blocksize 8192, needswap 0)
Primary bootstrap:   /netboot/NetBSD-2.0_BETA/alpha//usr/mdec/ustarboot
Bootstrap start sector:  17
Bootstrap sector count:  75
New boot block checksum: 0x5c
Writing bootstrap
Writing boot block
buildfloppies.sh: Image is 45056 bytes (44 KB) too big to fit on 2 disks

*** Failed target:  disk1of2
*** Failed command: PAX=/work/eric/NetBSD-2.0/tools.i386/bin/nbpax sh /work/eric/NetBSD-2.0/src/distrib/common/buildfloppies.sh -i "/work/eric/NetBSD-2.0/tools.i386/bin/nbinstallboot -v -m alpha -t raw -b 17 @IMAGE@ /netboot/NetBSD-2.0_BETA/alpha//usr/mdec/ustarboot" -m 2 -s of2 disk 2880 boot netbsd
*** Error code 1

Stop.
[...]

ERROR: Failed to make release
*** BUILD ABORTED ***

>How-To-Repeat:
	(cross) build NetBSD 2.0 for the alpha processor
>Fix:
	Unknown.

	A "native" (alpha to alpha) build will be attempted, but no
	improvement is expected.
>Release-Note:
>Audit-Trail:
>Unformatted: