error building zfsboot
Goran Lowkrantz
goran.lowkrantz at ismobile.com
Tue May 26 08:20:16 UTC 2009
On a system cvsuped Tue May 26 08:30 CEST 2009 and only
LOADER_ZFS_SUPPORT=yes in the make.conf, I get the following error:
===> sys/boot/i386/zfsboot (all)
objcopy -S -O binary zfsldr.out zfsboot1
cp /dev/null zfsboot.ldr
cc -Os -g -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 -mno-sse3 -DB
OOT2 -DFLAGS=0x80 -DSIOPRT=0x3f8 -DSIOFMT=0x3 -DSIOSPD=9600
-I/usr/src/sys/boot/i386/zfsboot/../../zfs
-I/usr/src/sys/boot/i386/zfsboot/../../../cddl/boot/zfs -I/u
sr/src/sys/boot/i386/zfsboot/../btx/lib -I.
-I/usr/src/sys/boot/i386/zfsboot/../boot2 -Wall -Waggregate-return
-Wbad-function-cast -Wcast-align -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow
-Wstrict-prototypes -Wwrite-strings -Winline --param
max-inline-insns-single=100 -ffreestanding -mpreferr
ed-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -m32
-march=i386 -S -o zfsboot.s.tmp /usr/src/sys/boot/i386/zfsboot/zfsboot.c
In file included from /usr/src/sys/boot/i386/zfsboot/zfsboot.c:276:
/usr/src/sys/boot/i386/zfsboot/../../zfs/zfsimpl.c: In function
'vdev_init_from_nvlist':
/usr/src/sys/boot/i386/zfsboot/../../zfs/zfsimpl.c:474: warning: assignment
discards qualifiers from pointer target type
/usr/src/sys/boot/i386/zfsboot/../../zfs/zfsimpl.c:476: warning: assignment
discards qualifiers from pointer target type
sed -e '/align/d' -e '/nop/d' < zfsboot.s.tmp > zfsboot.s
rm -f zfsboot.s.tmp
as --32 -o zfsboot.o zfsboot.s
cc -Os -g -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 -mno-sse3 -DB
OOT2 -DFLAGS=0x80 -DSIOPRT=0x3f8 -DSIOFMT=0x3 -DSIOSPD=9600
-I/usr/src/sys/boot/i386/zfsboot/../../zfs
-I/usr/src/sys/boot/i386/zfsboot/../../../cddl/boot/zfs -I/u
sr/src/sys/boot/i386/zfsboot/../btx/lib -I.
-I/usr/src/sys/boot/i386/zfsboot/../boot2 -Wall -Waggregate-return
-Wbad-function-cast -Wcast-align -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow
-Wstrict-prototypes -Wwrite-strings -Winline --param
max-inline-insns-single=100 -ffreestanding -mpreferr
ed-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -m32
-march=i386 -c /usr/src/sys/boot/i386/zfsboot/../boot2/sio.S
ld -static -N --gc-sections -nostdlib -m elf_i386_fbsd -Ttext 0x2000 -o
zfsboot.out /usr/obj/usr/src/sys/boot/i386/zfsboot/../btx/lib/crt0.o
zfsboot.o sio.o /usr/obj/usr/
src/tmp/usr/lib/libstand.a
objcopy -S -O binary zfsboot.out zfsboot.bin
btxld -v -E 0x2000 -f bin -b
/usr/obj/usr/src/sys/boot/i386/zfsboot/../btx/btx/btx -l zfsboot.ldr -o
zfsboot.ld -P 1 zfsboot.bin
btxld: zfsboot.ldr: Invalid argument
*** Error code 2
Stop in /usr/src/sys/boot/i386/zfsboot.
*** Error code 1
Looking in the directory, zfsboot.ldr is empty:
# cd /usr/obj/usr/src/sys/boot/i386/zfsboot/
# ls
.depend sio.o zfsboot.h zfsboot.o zfsboot.s zfsldr.o
machine zfsboot.bin zfsboot.ldr zfsboot.out zfsboot1 zfsldr.out
# btxld -v -E 0x2000 -f bin -b
/usr/obj/usr/src/sys/boot/i386/zfsboot/../btx/btx/btx -l zfsboot.ldr -o
zfsboot.ld -P 1 zfsboot.bin
btxld: zfsboot.ldr: Invalid argument
# file zfsboot.ldr
zfsboot.ldr: empty
Any pointers?
Cheers, Göran
................................................... the future isMobile
Goran Lowkrantz <goran.lowkrantz at ismobile.com>
System Architect, isMobile AB
Sandviksgatan 81, PO Box 58, S-971 03 Luleå, Sweden
Mobile: +46(0)70-587 87 82
http://www.ismobile.com ...............................................
More information about the freebsd-stable
mailing list