installworld problem in sys/boot/i386/boot2 ($PATH?)

Doug Barton dougb at FreeBSD.org
Wed Aug 17 02:13:36 GMT 2005


Howdy,

Since Sunday I've been having the following problem. With unmodified 
sources, I get this:

===> sys/boot/i386/boot2 (install)
as  -o boot2.o boot2.s
ld -static -N --gc-sections -nostdlib -Ttext 0x2000 -o boot2.out /usr/local/obj/
usr/local/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/local/obj/usr/local/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

If I add btxld to the list of programs for the distributworld target in 
src/Makfile.inc1, I get:

===> sys/boot/i386/boot2 (install)
btxld -v -E 0x2000 -f bin -b /usr/local/obj/usr/local/src/sys/boot/i386/boot2/..
/btx/btx/btx -l boot2.ldr  -o boot2.ld -P 1 boot2.bin
kernel: ver=1.01 size=780 load=9000 entry=9010 map=16M pgctl=1:1
client: fmt=bin size=14b5 text=0 data=0 bss=0 entry=0
output: fmt=bin size=1d49 text=114 data=1c35 org=0 entry=0
ls: not found
arithmetic expression: syntax error: "7680-"
*** Error code 2

So the problem seems to the PATH at this point in the process. I added
an echo in the Makefile, and this is what it says:

PATH in sh is: 
/usr/obj/usr/local/src/tmp/legacy/usr/sbin:/usr/obj/usr/local/src/tmp/legacy/usr/bin:/usr/obj/usr/local/src/tmp/legacy/usr/games:/usr/obj/usr/local/src/tmp/usr/sbin:/usr/obj/usr/local/src/tmp/usr/bin:/usr/obj/usr/local/src/tmp/usr/games:/tmp/install.1pfQmq1 


In /usr/obj:
find . -name ls -type f
./usr/local/src/bin/ls/ls

So I'm at a loss here.

The only way I've found around this is to cd to /usr/src, then do 'make 
install ; make installworld' which completes successfully.

Doug

-- 

     This .signature sanitized for your protection



More information about the freebsd-current mailing list