Coming back to the btxld: No such file or directory installworld error

From: Garrett Cooper <yanefbsd_at_gmail.com>
Date: Sun, 27 Jun 2010 13:14:59 -0700
Hi Ruslan,
    I've run into this particular error twice now in the past couple
of weeks when building with -j24 on a memory disk and I was wondering
if there was an missing dependency / race somewhere or something
(perhaps make obj?):

===> sys/boot/i386/boot2 (install)
# ...
btxld -v -E 0x2000 -f bin -b
/usr/obj/scratch/freebsd/current/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 /scratch/freebsd/current/sys/boot/i386/boot2.
*** Error code 1

Stop in /scratch/freebsd/current/sys/boot/i386.
*** Error code 1

Stop in /scratch/freebsd/current/sys/boot.
*** Error code 1

Stop in /scratch/freebsd/current/sys.
*** Error code 1

Stop in /scratch/freebsd/current.
*** Error code 1

Stop in /scratch/freebsd/current.
*** Error code 1

Stop in /scratch/freebsd/current.
*** Error code 1

Stop in /scratch/freebsd/current.

    Same goes for zfsboot:

===> sys/boot/i386/zfsboot (install)
as  --32 -o zfsboot.o zfsboot.s
ld -static -N --gc-sections -nostdlib -m elf_i386_fbsd -Ttext 0x2000
-o zfsboot.out /usr/obj/scratch/freebsd/current/sys/boot/i386/zfsboot/../btx/lib/crt0.o
zfsboot.o sio.o /scratch/tftpboot/orangebox//usr/lib/libstand.a
objcopy -S -O binary zfsboot.out zfsboot.bin
btxld -v -E 0x2000 -f bin -b
/usr/obj/scratch/freebsd/current/sys/boot/i386/zfsboot/../btx/btx/btx
-l zfsboot.ldr  -o zfsboot.ld -P 1 zfsboot.bin
btxld: No such file or directory
*** Error code 1

Stop in /scratch/freebsd/current/sys/boot/i386/zfsboot.
*** Error code 1

Stop in /scratch/freebsd/current/sys/boot/i386.
*** Error code 1

Stop in /scratch/freebsd/current/sys/boot.
*** Error code 1

Stop in /scratch/freebsd/current/sys.
*** Error code 1

Stop in /scratch/freebsd/current.
*** Error code 1

    Running the make in the respective subdirectories, then rerunning
installworld works. Example:

btxld -v -E 0x2000 -f bin -b
/usr/obj/scratch/freebsd/current/sys/boot/i386/zfsboot/../btx/btx/btx
-l zfsboot.ldr  -o zfsboot.ld -P 1 zfsboot.bin
kernel: ver=1.02 size=690 load=9000 entry=9010 map=16M pgctl=1:1
client: fmt=bin size=602c text=0 data=0 bss=0 entry=0
output: fmt=bin size=66bc text=0 data=66bc org=0 entry=0
6468 bytes available
dd if=zfsboot.ld of=zfsboot2 obs=32768 conv=osync
51+1 records in
1+0 records out
32768 bytes transferred in 0.000062 secs (528611360 bytes/sec)
cat zfsboot1 zfsboot2 > zfsboot

Thanks,
-Garrett

PS. This has been brought up in two separate threads in the past as well:
[1]. http://lists.freebsd.org/pipermail/freebsd-amd64/2006-September/008849.html
[2]. http://lists.freebsd.org/pipermail/freebsd-amd64/2004-August/001906.html
Received on Sun Jun 27 2010 - 18:15:08 UTC

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