Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Feb 2002 13:19:31 -0800
From:      Lopaka Delp <lopaka@ic.ucsb.edu>
To:        Tom Glover <tomg@egg.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: make buildworld failing - more info
Message-ID:  <3C72C163.8020609@ic.ucsb.edu>
References:  <Pine.BSF.4.40.0202191237390.318-100000@enema.egg.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Tom,

Do you have /usr/bin/m4 working?  It says that it can't find m4, and if 
it can't find it, them boot2 is just an empty file.  I had this happen 
to me and found out the /usr/bin/m4 was renamed to /usr/bin/m4.old. 
Still don't know why. But I just renamed it back to /usr/bin/m4.

Hope this helps.

			--> Lopaka


Tom Glover wrote:

> More curious. I finally gave up trying to get to 4.5 and decided to revert
> to 4.2 (my current versiomn). So I removed (renamed) everything in
> /usr/src. Removed /usr/obj. Did a cvsup for 4.2-RELEASE. Rebuilt a kernel
> and rebooted. Then tried a make buildworld again. Same problem. Am I
> missing something here?
> 
> dd if=/dev/zero of=boot2.ldr bs=512 count=1 2>/dev/null
> cc -elf -I/usr/src/sys/boot/i386/boot2/../btx/lib -I.  -Os -fno-builtin
> -fforce-addr -fdata-sections  -malign-functions=0 -malign-jumps=0
> -malign-loops=0 -mrtd  -mpreferred-stack-boundary=2  -Wall
> -Waggregate-return -Wbad-function-cast -Wcast-align
> -Wmissing-declarations -Wmissing-prototypes -Wnested-externs
> -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings
> -I/usr/obj/usr/src/i386/usr/include -c
> /usr/src/sys/boot/i386/boot2/boot2.c
> as  --defsym SIOPRT=0x3f8  --defsym SIOFMT=0x3  --defsym SIOSPD=9600
> /usr/src/sys/boot/i386/boot2/sio.s -o sio.o
> ld -nostdlib -static -N -Ttext 0x1000 -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 0x1000 -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: /usr/obj/usr/src/sys/boot/i386/boot2/../btx/btx/btx: Not a BTX
> kernel
> *** Error code 1
> 
> Stop in /usr/src/sys/boot/i386/boot2.
> *** Error code 1
> 
> Stop in /usr/src/sys/boot/i386.
> *** Error code 1
> 
> Stop in /usr/src/sys/boot.
> *** Error code 1
> 
> Stop in /usr/src/sys.
> *** Error code 1
> 
> Stop in /usr/src.
> *** Error code 1
> 
> Stop in /usr/src.
> *** Error code 1
> 
> Stop in /usr/src.
> enema#
> 
> 
> 
> On Mon, 18 Feb 2002, Tom Glover wrote:
> 
> 
>>Trying to build the latest stable and it fails as per below. Does not seem
>>to be anything in the mailing list archives to point me in the right
>>direction.
>>
>>Current version is version 4.2
>>
>>Any ideas?
>>
>>-----------------------------------------------------------------------------------------------------------------------
>>
>>building static ficl library
>>ranlib libficl.a
>>===> sys/boot/i386
>>===> sys/boot/i386/mbr
>>as  -o mbr.o /usr/src/sys/boot/i386/mbr/mbr.s
>>ld -N -e start -Ttext 0x600 -o mbr.out mbr.o
>>objcopy -S -O binary mbr.out mbr
>>===> sys/boot/i386/boot0
>>as  --defsym FLAGS=0xf --defsym TICKS=0xb6  /usr/src/sys/boot/i386/boot0/boot0.s -o boot0.o
>>ld -N -e start -Ttext 0x600 -o boot0.out boot0.o
>>objcopy -S -O binary boot0.out boot0
>>===> sys/boot/i386/kgzldr
>>(cd /usr/src/sys/boot/i386/kgzldr; m4  -DSIOPRT=0x3f8 /usr/src/sys/boot/i386/kgzldr/start.s) | as  -o start.o
>>m4: not found
>>cc -fno-builtin -Os -DKZIP -mpreferred-stack-boundary=2   -I/usr/obj/usr/src/i386/usr/include  -c /usr/src/sys/boot/i386/kgzldr/boot.c
>>cc -fno-builtin -Os -DKZIP -mpreferred-stack-boundary=2   -I/usr/obj/usr/src/i386/usr/include  -c /usr/src/sys/boot/i386/kgzldr/../../../kern/inflate.c
>>cc -fno-builtin -Os -DKZIP -mpreferred-stack-boundary=2   -I/usr/obj/usr/src/i386/usr/include  -c /usr/src/sys/boot/i386/kgzldr/lib.c
>>(cd /usr/src/sys/boot/i386/kgzldr; m4  -DSIOPRT=0x3f8 /usr/src/sys/boot/i386/kgzldr/crt.s) | as  -o crt.o
>>m4: not found
>>(cd /usr/src/sys/boot/i386/kgzldr; m4  -DSIOPRT=0x3f8 /usr/src/sys/boot/i386/kgzldr/sio.s) | as  -o sio.o
>>m4: not found
>>cc -nostdlib -static -r -o kgzldr.o start.o boot.o inflate.o lib.o crt.o sio.o
>>===> sys/boot/i386/btx
>>===> sys/boot/i386/btx/btx
>>(cd /usr/src/sys/boot/i386/btx/btx; m4  btx.s) |  as  --defsym BTX_FLAGS=0x0 -o btx.o
>>m4: not found
>>ld -N -e start -Ttext 0x9000 -o btx.out btx.o
>>/usr/obj/usr/src/i386/usr/libexec/elf/ld: warning: cannot find entry symbol start; defaulting to 00009000
>>objcopy -S -O binary btx.out btx
>>===> sys/boot/i386/btx/btxldr
>>(cd /usr/src/sys/boot/i386/btx/btxldr; m4 -DLOADER_ADDRESS=0x200000 btxldr.s ) |  as  -o btxldr.o
>>m4: not found
>>ld -N -e start -Ttext 0x200000 -o btxldr.out btxldr.o
>>/usr/obj/usr/src/i386/usr/libexec/elf/ld: warning: cannot find entry symbol start; defaulting to 00200000
>>objcopy -S -O binary btxldr.out btxldr
>>===> sys/boot/i386/btx/lib
>>as  -elf -o btxcsu.o /usr/src/sys/boot/i386/btx/lib/btxcsu.s
>>as  -elf -o btxsys.o /usr/src/sys/boot/i386/btx/lib/btxsys.s
>>as  -elf -o btxv86.o /usr/src/sys/boot/i386/btx/lib/btxv86.s
>>ld  -elf -i -o crt0.o btxcsu.o btxsys.o btxv86.o
>>===> sys/boot/i386/boot2
>>as  --defsym FLAGS=0x80 /usr/src/sys/boot/i386/boot2/boot1.s -o boot1.o
>>ld -nostdlib -static -N -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 2>/dev/null
>>nm -t d boot1.out | awk '/([0-9])+ T xread/  { x = $1 - ORG1; printf("#define XREADORG 0x7%x\n", x) }'  ORG1=`printf "%d" 0x7c00` > boot2.h
>>cc -elf -I/usr/src/sys/boot/i386/boot2/../btx/lib -I.  -Os -fno-builtin -fforce-addr -fdata-sections  -malign-functions=0 -malign-jumps=0 -malign-loops=0 -mrtd  -mpreferred-stack-boundary=2  -Wall -Waggregate-return -Wbad-function-cast -Wcast-align  -Wmissing-declarations -Wmissing-prototypes -Wnested-externs  -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings -mpreferred-stack-boundary=2   -I/usr/obj/usr/src/i386/usr/include  -c /usr/src/sys/boot/i386/boot2/boot2.c
>>as  --defsym SIOPRT=0x3f8  --defsym SIOFMT=0x3  --defsym SIOSPD=9600  /usr/src/sys/boot/i386/boot2/sio.s -o sio.o
>>ld -nostdlib -static -N -Ttext 0x1000 -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 0x1000 -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: /usr/obj/usr/src/sys/boot/i386/boot2/../btx/btx/btx: Not a BTX kernel
>>*** Error code 1
>>
>>Stop in /usr/src/sys/boot/i386/boot2.
>>*** Error code 1
>>
>>Stop in /usr/src/sys/boot/i386.
>>*** Error code 1
>>
>>Stop in /usr/src/sys/boot.
>>*** Error code 1
>>
>>Stop in /usr/src/sys.
>>*** Error code 1
>>
>>Stop in /usr/src.
>>*** Error code 1
>>
>>Stop in /usr/src.
>>*** Error code 1
>>
>>Stop in /usr/src.
>>
>>
>>
> 
> --
> Tom Glover
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message
> 


-- 
   Lopaka K. Delp                e-mail:  lopaka@ic.ucsb.edu
   UNIX Systems Administrator    phone :  (805)893-4561
   Instructional Computing       cell  :  (805)895-9257
   University of California,     WWW   :  http://www.ic.ucsb.edu/~lopaka
      Santa Barbara


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C72C163.8020609>