Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Feb 2021 08:58:54 +0100
From:      Marek Zarychta <zarychtam@plan-b.pwste.edu.pl>
To:        freebsd-current@freebsd.org
Subject:   Re: btxld not found
Message-ID:  <e178adbb-d7bc-6ef8-59d1-b7a2a6844570@plan-b.pwste.edu.pl>
In-Reply-To: <4817FF98-E0C8-4A8F-8D56-CBD0BA5311C4@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> <4817FF98-E0C8-4A8F-8D56-CBD0BA5311C4@van-laarhoven.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--s97QTe7D1gHshkIWy2tAmwH0TVq6v908C
Content-Type: multipart/mixed; boundary="QRu5HtMwsQiWjl0hl0HAKin8f7sol05hX";
 protected-headers="v1"
From: Marek Zarychta <zarychtam@plan-b.pwste.edu.pl>
To: freebsd-current@freebsd.org
Message-ID: <e178adbb-d7bc-6ef8-59d1-b7a2a6844570@plan-b.pwste.edu.pl>
Subject: Re: btxld not found
References: <8B42F93A-7B9E-4F99-9D77-43DA3BB7F045@van-laarhoven.org>
 <42284B22-BACD-47E7-A9E0-75B7AC5B6C9C@FreeBSD.org>
 <D2A9700B-2EA7-4364-8E71-0590136A1F73@van-laarhoven.org>
 <4817FF98-E0C8-4A8F-8D56-CBD0BA5311C4@van-laarhoven.org>
In-Reply-To: <4817FF98-E0C8-4A8F-8D56-CBD0BA5311C4@van-laarhoven.org>

--QRu5HtMwsQiWjl0hl0HAKin8f7sol05hX
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

W dniu 29.01.2020 o=C2=A016:35, Nick Hibma pisze:
>>
>>>> Could anyone explain to me what I am doing wrong? make installworld =
fails each time with the following error
>>>>
>>>> =3D=3D=3D> stand/i386/libi386 (install)
>>>> =3D=3D=3D> 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/i3=
86/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 ol=
d 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 ti=
me,
>>> 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,=20
>>
>> My VirtualBox VMs do have a tendency to lag when I am not using them f=
or a while. I've adjusted time and started ntpd. In the past that would n=
ot fix the time lag permanently.
>>
>> I'll do a fresh buildworld and see whether that completes.
>>
>> Nick
>=20
> Nope, make buildworld && make installworld results in, so I guess the j=
ob ordering suggestion is a better one (VM with 2 processors on a variabl=
y loaded laptop, no -j option, time accurate):
>=20
> install   -o root -g wheel -m 444   mbr /boot/mbr
> =3D=3D=3D> stand/i386/pmbr (install)
> install   -o root -g wheel -m 444   pmbr /boot/pmbr
> =3D=3D=3D> stand/i386/boot0 (install)
> install   -o root -g wheel -m 444   boot0 /boot/boot0
> =3D=3D=3D> stand/i386/boot0sio (install)
> install   -o root -g wheel -m 444   boot0 /boot/boot0sio
> =3D=3D=3D> stand/i386/btx (install)
> =3D=3D=3D> stand/i386/btx/btx (install)
> =3D=3D=3D> stand/i386/btx/btxldr (install)
> =3D=3D=3D> stand/i386/btx/lib (install)
> =3D=3D=3D> 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
>=20
> ...
>=20
> {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.i=
386/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 =3D   -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.


=3D=3D=3D> stand/i386/mbr (install)
install   -o root -g wheel -m 444   mbr /boot/mbr
=3D=3D=3D> stand/i386/pmbr (install)
install   -o root -g wheel -m 444   pmbr /boot/pmbr
=3D=3D=3D> stand/i386/boot0 (install)
install   -o root -g wheel -m 444   boot0 /boot/boot0
=3D=3D=3D> stand/i386/boot0sio (install)
install   -o root -g wheel -m 444   boot0 /boot/boot0sio
=3D=3D=3D> 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=3Dyes, so I work around this by subsequent
builds:
make -sj32 buildworld && make -s buildworld


--=20
Marek Zarychta


--QRu5HtMwsQiWjl0hl0HAKin8f7sol05hX--

--s97QTe7D1gHshkIWy2tAmwH0TVq6v908C
Content-Type: application/pgp-signature; name="OpenPGP_signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="OpenPGP_signature"

-----BEGIN PGP SIGNATURE-----

wsB5BAABCAAjFiEEMOqvKm6wKvS1/ZeCdZ/s//1SjSwFAmAwwT4FAwAAAAAACgkQdZ/s//1SjSzb
dggApazNRvkZ8CyrUwU6CzNydFsR+KkGEO5/VJBXArvsHCc6SDqBcm/IBEpU25iUYxvUrZd5yB2B
5mcDosfJ4wDSDHxg45c6pNEyLe9HNyUYn/7iowcq4AfiCkHI0KE20WEbuV9UQv37DZc2O2b1UXH+
vXN9wEWBK20PijlznLiIUqUz/a9w2OZ1bLYI1SdxxTMvxrpx7CS+h4friQ5JZmB0FSd7kRvHDBO+
43deUJM/GyuSg5HpXGhJs1bKa7bfU7NzRey6y2BPqSgdKi8dYEnqnJJKDr7hxALdCLZoQx9V25vp
b2RNQ9YFcGq4G5neayv+8ttFEEGZle8mOsgYRQQ/Iw==
=cMIk
-----END PGP SIGNATURE-----

--s97QTe7D1gHshkIWy2tAmwH0TVq6v908C--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e178adbb-d7bc-6ef8-59d1-b7a2a6844570>