Re: btxld not found

From: Marek Zarychta <zarychtam_at_plan-b.pwste.edu.pl>
Date: Sat, 20 Feb 2021 08:58:54 +0100
W dniu 29.01.2020 o 16:35, Nick Hibma pisze:
>>
>>>> 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
> ...


I am still running into this occasionally on amd64 with 13.0-STABLE,
especially while updating from src and obj directories exported over
NFS, but it happens sometimes also for locally mounted src and obj.


===> stand/i386/mbr (install)
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/boot2 (install)
objcopy -S -O binary boot2.out boot2.bin
objcopy: open boot2.bin failed: Read-only file system
*** Error code 1

Running make buildworld with only one job solves the issue. I am
building with WITH_META_MODE=yes, so I work around this by subsequent
builds:
make -sj32 buildworld && make -s buildworld


-- 
Marek Zarychta


Received on Sat Feb 20 2021 - 06:59:07 UTC

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