Date: Wed, 29 Jan 2020 16:35:23 +0100 From: Nick Hibma <nick@van-laarhoven.org> To: Dimitry Andric <dim@FreeBSD.org> Cc: FreeBSD Current Mailing List <freebsd-current@FreeBSD.ORG> Subject: Re: btxld not found Message-ID: <4817FF98-E0C8-4A8F-8D56-CBD0BA5311C4@van-laarhoven.org> In-Reply-To: <D2A9700B-2EA7-4364-8E71-0590136A1F73@van-laarhoven.org> References: <8B42F93A-7B9E-4F99-9D77-43DA3BB7F045@van-laarhoven.org> <42284B22-BACD-47E7-A9E0-75B7AC5B6C9C@FreeBSD.org> <D2A9700B-2EA7-4364-8E71-0590136A1F73@van-laarhoven.org>
index | next in thread | previous in thread | raw e-mail
>
>>> 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@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@fimkjecurrent:/usr/src % date
Wed Jan 29 16:30:21 CET 2020
{e}nick@fimkjecurrent:/usr/src % make -dA
...
Global:MFLAGS = -d A
job_pipe -1 -1, maxjobs 1, tokens 1, compat 1
...
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4817FF98-E0C8-4A8F-8D56-CBD0BA5311C4>
