Re: btxld not found

From: Nick Hibma <nick_at_van-laarhoven.org>
Date: Wed, 29 Jan 2020 16:35:23 +0100
> 
>>> Could anyone explain to me what I am doing wrong? make installworld fails each time with the following error
>>> 
>>> ===> stand/i386/libi386 (install)
>>> ===> stand/i386/loader_4th (install)
>>> strip -R .comment -R .note -o loader_4th.bin loader_4th.sym
>>> btxld -v -f aout -e 0x200000 -o loader_4th -l /usr/obj/usr/src/i386.i386/stand/i386/btx/btxldr/btxldr  -b /usr/obj/usr/src/i386.i386/stand/i386/btx/btx/btx loader_4th.bin
>>> make[6]: exec(btxld) failed (No such file or directory)
>>> *** Error code 1
>>> 
>>> This is with source of last week. I had this problem before (from old sources) and fixed it by specifying the full path to btxld in the stand/i386/*/Makefile.
>> 
>> Yes, this is most likely your clock(s) being off.  At installworld time,
>> it should *not* start rebuilding your loader.
>> 
>> Usually this happens if you build on one machine, and install on
>> another, while the install machine's time is behind the build machine's
>> time.  But it can also happens on one machine, for instance if you
>> start in single user mode, and the clock is not yet synchronized.
>> 
>> -Dimitry
>> 
> Dimitry, 
> 
> My VirtualBox VMs do have a tendency to lag when I am not using them for a while. I've adjusted time and started ntpd. In the past that would not fix the time lag permanently.
> 
> I'll do a fresh buildworld and see whether that completes.
> 
> Nick

Nope, make buildworld && make installworld results in, so I guess the job ordering suggestion is a better one (VM with 2 processors on a variably loaded laptop, no -j option, time accurate):

install   -o root -g wheel -m 444   mbr /boot/mbr
===> stand/i386/pmbr (install)
install   -o root -g wheel -m 444   pmbr /boot/pmbr
===> stand/i386/boot0 (install)
install   -o root -g wheel -m 444   boot0 /boot/boot0
===> stand/i386/boot0sio (install)
install   -o root -g wheel -m 444   boot0 /boot/boot0sio
===> stand/i386/btx (install)
===> stand/i386/btx/btx (install)
===> stand/i386/btx/btxldr (install)
===> stand/i386/btx/lib (install)
===> stand/i386/boot2 (install)
objcopy -S -O binary boot1.out boot1
objcopy -S -O binary boot2.out boot2.bin
btxld -v -E 0x2000 -f bin -b /usr/obj/usr/src/i386.i386/stand/i386/btx/btx/btx -l boot2.ldr  -o boot2.ld -P 1 boot2.bin
make[6]: exec(btxld) failed (No such file or directory)
*** Error code 1

...

{e}nick_at_fimkjecurrent:/usr/src % sudo find / -name btxld -type f -ls
1908308       48 -r-xr-xr-x    1 root                             wheel                               22988 Jan 27 23:37 /usr/sbin/btxld
3441268       52 -rwxr-xr-x    1 root                             wheel                               25816 Jan 29 16:09 /usr/obj/usr/src/i386.i386/usr.sbin/btxld/btxld
{e}nick_at_fimkjecurrent:/usr/src % date
Wed Jan 29 16:30:21 CET 2020
{e}nick_at_fimkjecurrent:/usr/src % make -dA
...
Global:MFLAGS =   -d A
job_pipe -1 -1, maxjobs 1, tokens 1, compat 1
...
Received on Wed Jan 29 2020 - 14:35:34 UTC

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