Problem building boot2 amd64->i386

From: Martin Laabs <mailinglists_at_martinlaabs.de>
Date: Sun, 08 Sep 2013 21:49:51 +0200
Hi,

I currently try to build the boot2 part of the bootloader on my amd64 for
i386. I tried the crochet building script for the i386 and this script run
into the problem. How to repeat:

# cd head/sys/boot/i386/boot2
# make TARGET_ARCH=i386
Warning: Object directory not changed from original
/usr/home/martin/Rasperry/head/sys/boot/i386/boot2
cc -Os  -fno-guess-branch-probability  -fomit-frame-pointer
-fno-unit-at-a-time  -mno-align-long-strings  -mrtd  -mregparm=3
-DUSE_XREAD  -DUFS1_AND_UFS2  -DFLAGS=0x80  -DSIOPRT=0x3f8  -DSIOFMT=0x3
-DSIOSPD=9600
-I/usr/home/martin/Rasperry/head/sys/boot/i386/boot2/../../common
-I/usr/home/martin/Rasperry/head/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  -Winline --param
max-inline-insns-single=100   -march=i386 -ffreestanding
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-mno-sse3 -msoft-float -m32 -std=gnu99     -m32 -c boot1.S
ld -static -N --gc-sections -nostdlib -m elf_i386_fbsd -e start -Ttext
0x7c00 -o boot1.out boot1.o
objcopy -S -O binary boot1.out boot1
dd if=/dev/zero of=boot2.ldr bs=512 count=1
1+0 records in
1+0 records out
512 bytes transferred in 0.000123 secs (4161790 bytes/sec)
make: don't know how to make
/usr/home/martin/Rasperry/head/sys/boot/i386/boot2/../btx/lib/crt0.o. Stop


Don't get confused that the head source is in a directory named raspberry -
I just want to build a reference i386 system to see if a problem with the
kerberos also occurs on i386 systems.

Is there a way to build the boot2 part the right way? In this case I would
like to update the crochet script.

Thank you,
 Martin Laabs
Received on Sun Sep 08 2013 - 18:02:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:41 UTC