Date: Sat, 14 Mar 2009 17:07:55 +0700 (ICT) From: Olivier Nicole <on@cs.ait.ac.th> To: freebsd-questions@freebsd.org Subject: make installworld fails on RELEASE6.4 amd64 Message-ID: <200903141007.n2EA7tO6053641@banyan.cs.ait.ac.th>
next in thread | raw e-mail | index | archive | help
Hi, I am facing a problem that I cannot solve when trying to reinstall wolrd on 6.4 amd 64. On a brand new machine (Dell powerEdge 2950) I install RELEASE 6.4 amd64: FreeBSD ufo2.cs.ait.ac.th 6.4-RELEASE FreeBSD 6.4-RELEASE #0: Wed Nov 26 08:37:42 UTC 2008 root@palmer.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP amd64 Then I buildworld. Reboot in single user, adjkerntz -i Then make installworld and it fails with: ===> sys/boot/i386/boot2 (install) cc -Os -fno-guess-branch-probability -fomit-frame-pointer -fno-unit-at-a-time -mno-align-long-strings -mrtd -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -DUFS1_AND_UFS2 -DFLAGS=0x80 -DSIOPRT=0x3f8 -DSIOFMT=0x3 -DSIOSPD=9600 -I/usr/src/sys/boot/i386/boot2/../../common -I/usr/src/sys/boot/i386/boot2/../btx/lib -I. -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings -ffreestanding -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -m32 -march=i386 -S -o boot2.s.tmp /usr/src/sys/boot/i386/boot2/boot2.c sed -e '/align/d' -e '/nop/d' < boot2.s.tmp > boot2.s rm -f boot2.s.tmp as --32 -o boot2.o boot2.s ld -static -N --gc-sections -nostdlib -m elf_i386_fbsd -Ttext 0x2000 -o boot2.out /usr/obj/usr/src/sys/boot/i386/boot2/../btx/lib/crt0.o boot2.o sio.o objcopy -S -O binary boot2.out boot2.bin btxld -v -E 0x2000 -f bin -b /usr/obj/usr/src/sys/boot/i386/boot2/../btx/btx/btx -l boot2.ldr -o boot2.ld -P 1 boot2.bin btxld:No such file or directory *** Error code 1 Stop in /usr/src/sys/boot/i386/boot2. *** Error code 1 I don't see any reason why installworld is trying to rebuild boot2.s Below are extracts of what has been going on... -------------- Part of buildworld ===> sys/boot/i386/boot2 (all) objcopy -S -O binary boot1.out boot1 dd if=/dev/zero of=boot2.ldr bs=276 count=1 1+0 records in 1+0 records out 276 bytes transferred in 0.000044 secs (6291456 bytes/sec) cc -Os -fno-guess-branch-probability -fomit-frame-pointer -fno-unit-at-a-time -mno-align-long-strings -mrtd -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -DUFS1_AND_UFS2 -DFLAGS=0x80 -DSIOPRT=0x3f8 -DSIOFMT=0x3 -DSIOSPD=9600 -I/usr/src/sys/boot/i386/boot2/../../common -I/usr/src/sys/boot/i386/boot2/../btx/lib -I. -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings -ffreestanding -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -m32 -march=i386 -S -o boot2.s.tmp /usr/src/sys/boot/i386/boot2/boot2.c sed -e '/align/d' -e '/nop/d' < boot2.s.tmp > boot2.s rm -f boot2.s.tmp as --32 -o boot2.o boot2.s cc -Os -fno-guess-branch-probability -fomit-frame-pointer -fno-unit-at-a-time -mno-align-long-strings -mrtd -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -DUFS1_AND_UFS2 -DFLAGS=0x80 -DSIOPRT=0x3f8 -DSIOFMT=0x3 -DSIOSPD=9600 -I/usr/src/sys/boot/i386/boot2/../../common -I/usr/src/sys/boot/i386/boot2/../btx/lib -I. -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings -ffreestanding -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -m32 -march=i386 -c /usr/src/sys/boot/i386/boot2/sio.S ld -static -N --gc-sections -nostdlib -m elf_i386_fbsd -Ttext 0x2000 -o boot2.out /usr/obj/usr/src/sys/boot/i386/boot2/../btx/lib/crt0.o boot2.o sio.o objcopy -S -O binary boot2.out boot2.bin btxld -v -E 0x2000 -f bin -b /usr/obj/usr/src/sys/boot/i386/boot2/../btx/btx/btx -l boot2.ldr -o boot2.ld -P 1 boot2.bin kernel: ver=1.02 size=680 load=9000 entry=9010 map=16M pgctl=1:1 client: fmt=bin size=14f9 text=0 data=0 bss=0 entry=0 output: fmt=bin size=1c8d text=114 data=1b79 org=0 entry=0 371 bytes available dd if=boot2.ld of=boot2 obs=7680 conv=osync 14+1 records in 1+0 records out 7680 bytes transferred in 0.000061 secs (125829120 bytes/sec) cat boot1 boot2 > boot produces the files in /usr/obj/usr/src/sys/boot/i386/boot2: total 94 lrwxr-xr-x 1 root wheel 50 Mar 14 15:26 machine -> /usr/src/sys/boot/i386/boot2/../../../i386/include -rw-r--r-- 1 root wheel 23 Mar 14 15:26 boot2.h -rwxr-xr-x 1 root wheel 2345 Mar 14 15:26 boot1.out -rw-r--r-- 1 root wheel 2316 Mar 14 15:26 boot1.o -rw-r--r-- 1 root wheel 2056 Mar 14 15:26 .depend -rw-r--r-- 1 root wheel 1028 Mar 14 15:39 sio.o -rw-r--r-- 1 root wheel 26549 Mar 14 15:39 boot2.s -rwxr-xr-x 1 root wheel 8059 Mar 14 15:39 boot2.out -rw-r--r-- 1 root wheel 9080 Mar 14 15:39 boot2.o -rw-r--r-- 1 root wheel 276 Mar 14 15:39 boot2.ldr -rw-r--r-- 1 root wheel 7309 Mar 14 15:39 boot2.ld -rwxr-xr-x 1 root wheel 5369 Mar 14 15:39 boot2.bin -rw-r--r-- 1 root wheel 7680 Mar 14 15:39 boot2 -rwxr-xr-x 1 root wheel 512 Mar 14 15:39 boot1 -rw-r--r-- 1 root wheel 8192 Mar 14 15:39 boot after the buildworld the date is: Sat Mar 14 16:05:57 ICT 2009 ----------------- Reboot as single user after reboot as single user the date is: Sat Mar 14 23:11:02 ICT 2009 Sat Mar 14 16:11:02 UTC 2009 ----------------- Adjkerntz -i after adjkerntz -i the date is: Sat Mar 14 16:11:23 ICT 2009 Sat Mar 14 09:11:23 UTC 2009 ------------------ Make installworld: I checked that the files used to make boot2.s are not changing: /usr/src/sys/boot/common/ufsread.c /usr/src/sys/boot/i386/boot2/boot2.c /usr/obj//usr/src/sys/boot/i386/boot2/boot2.h make install produces the following output: ===> sys/boot/i386/boot2 (install) cc -Os -fno-guess-branch-probability -fomit-frame-pointer -fno-unit-at-a-time -mno-align-long-strings -mrtd -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -DUFS1_AND_UFS2 -DFLAGS=0x80 -DSIOPRT=0x3f8 -DSIOFMT=0x3 -DSIOSPD=9600 -I/usr/src/sys/boot/i386/boot2/../../common -I/usr/src/sys/boot/i386/boot2/../btx/lib -I. -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings -ffreestanding -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -m32 -march=i386 -S -o boot2.s.tmp /usr/src/sys/boot/i386/boot2/boot2.c sed -e '/align/d' -e '/nop/d' < boot2.s.tmp > boot2.s rm -f boot2.s.tmp as --32 -o boot2.o boot2.s Note: it does not try to rebuild sio.o ld -static -N --gc-sections -nostdlib -m elf_i386_fbsd -Ttext 0x2000 -o boot2.out /usr/obj/usr/src/sys/boot/i386/boot2/../btx/lib/crt0.o boot2.o sio.o objcopy -S -O binary boot2.out boot2.bin btxld -v -E 0x2000 -f bin -b /usr/obj/usr/src/sys/boot/i386/boot2/../btx/btx/btx -l boot2.ldr -o boot2.ld -P 1 boot2.bin btxld:No such file or directory after make installworld fails, the directory /usr/obj/usr/src/sys/boot/i386/boot2 contains: total 188 lrwxr-xr-x 1 root wheel 50 Mar 14 15:26 machine -> /usr/src/sys/boot/i386/boot2/../../../i386/include -rw-r--r-- 1 root wheel 23 Mar 14 15:26 boot2.h -rwxr-xr-x 1 root wheel 2345 Mar 14 15:26 boot1.out -rw-r--r-- 1 root wheel 2316 Mar 14 15:26 boot1.o -rw-r--r-- 1 root wheel 2056 Mar 14 15:26 .depend -rw-r--r-- 1 root wheel 1028 Mar 14 15:39 sio.o -rw-r--r-- 1 root wheel 276 Mar 14 15:39 boot2.ldr -rw-r--r-- 1 root wheel 7309 Mar 14 15:39 boot2.ld -rw-r--r-- 1 root wheel 7680 Mar 14 15:39 boot2 -rwxr-xr-x 1 root wheel 512 Mar 14 15:39 boot1 -rw-r--r-- 1 root wheel 8192 Mar 14 15:39 boot -rw-r--r-- 1 root wheel 26549 Mar 14 16:14 boot2.s -rwxr-xr-x 1 root wheel 8059 Mar 14 16:14 boot2.out -rw-r--r-- 1 root wheel 9080 Mar 14 16:14 boot2.o -rwxr-xr-x 1 root wheel 5369 Mar 14 16:14 boot2.bin --------------- TIA Olivier
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903141007.n2EA7tO6053641>