Date: Wed, 29 Jan 2020 08:30:28 +0100 From: Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> To: freebsd-current@freebsd.org Subject: Re: btxld not found Message-ID: <9079b2c2-d055-f304-0744-215e2573e291@plan-b.pwste.edu.pl> In-Reply-To: <CACNAnaHNN9Xx1bEtNWCcy%2B-2tGP_ey46hk22CmpRz9Xry7KcdQ@mail.gmail.com> References: <71165653-E6AA-46F7-B7F6-B5293ADC9779.ref@yahoo.com> <71165653-E6AA-46F7-B7F6-B5293ADC9779@yahoo.com> <CACNAnaFLNPgG24AevPMYiE%2BMDxWdH3TbSQgkzDpK3ascE2NgWQ@mail.gmail.com> <CACNAnaHNN9Xx1bEtNWCcy%2B-2tGP_ey46hk22CmpRz9Xry7KcdQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --o2Acsl9JZohj43FuWj66sel8DVnStjgjR Content-Type: multipart/mixed; boundary="f0brc4kUcl1dHV9Puoe0NCqmkXd8EMEmK"; protected-headers="v1" From: Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> To: freebsd-current@freebsd.org Message-ID: <9079b2c2-d055-f304-0744-215e2573e291@plan-b.pwste.edu.pl> Subject: Re: btxld not found References: <71165653-E6AA-46F7-B7F6-B5293ADC9779.ref@yahoo.com> <71165653-E6AA-46F7-B7F6-B5293ADC9779@yahoo.com> <CACNAnaFLNPgG24AevPMYiE+MDxWdH3TbSQgkzDpK3ascE2NgWQ@mail.gmail.com> <CACNAnaHNN9Xx1bEtNWCcy+-2tGP_ey46hk22CmpRz9Xry7KcdQ@mail.gmail.com> In-Reply-To: <CACNAnaHNN9Xx1bEtNWCcy+-2tGP_ey46hk22CmpRz9Xry7KcdQ@mail.gmail.com> --f0brc4kUcl1dHV9Puoe0NCqmkXd8EMEmK Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable W dniu 28.01.2020 o=C2=A023:22, Kyle Evans pisze: > On Tue, Jan 28, 2020 at 3:28 PM Kyle Evans <kevans@freebsd.org> wrote: >> >> On Tue, Jan 28, 2020 at 2:15 PM Mark Millard <marklmi@yahoo.com> wrote= : >>> >>> Marek Zarychta zarychtam at plan-b.pwste.edu.pl wrote on >>> Tue Jan 28 19:33:45 UTC 2020 : >>> >>>> W dniu 28.01.2020 o 19:11, Dimitry Andric pisze: >>>>> On 28 Jan 2020, at 12:36, Nick Hibma <nick at van-laarhoven.org> wr= ote: >>>>>> >>>>>> Could anyone explain to me what I am doing wrong? make installworl= d 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/i38= 6.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 sta= nd/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 machi= ne'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 >>>>> >>>> >>>> I build and install on the same machine, WITH_META_MODE=3Dyes >>> . . . >>> >>> Same here on a ThreadRipper 1950X: a self hosted build and >>> install gets the issue at install time. WITH_META_MODE in use. >>> >>> Never started in single user mode. Also happens for targeting a >>> local directory tree in the install, instead of updating the >>> live system. (A directory tree used later with poudriere.) >>> >>> https://lists.freebsd.org/pipermail/freebsd-toolchain/2019-December/0= 05130.html >>> >>> has some timestamps that I observed. btxld.full was about 27 >>> seconds later in the file system than btxld.meta, btxld.debug, >>> and such (until I rebuilt). >>> >>> Looks to me more like multiple parallel builds that stomp on >>> each other. >>> >> >> I suspect y'all want something like the following: >> >=20 > Sorry, that patch is clearly wrong- here's take two. A lot of these > have dependencies on btxldr that aren't formally described in the > targets, so I missed... a lot. New version just builds btx first gated > behind a .WAIT then parallel the rest. >=20 > diff --git a/stand/i386/Makefile b/stand/i386/Makefile > index a9d402acf60..24255eefabf 100644 > --- a/stand/i386/Makefile > +++ b/stand/i386/Makefile > @@ -4,7 +4,10 @@ NO_OBJ=3Dt >=20 > .include <bsd.init.mk> >=20 > -SUBDIR.yes=3D mbr pmbr boot0 boot0sio btx boot2 cdboot gptboot \ > +# Almost everything else here relies on btxldr, so we must make sure i= t's built > +# before everything else proceeds so we don't end up building against = a stale > +# btxldr and ending up with a build-during-install scenario. > +SUBDIR.yes=3D btx .WAIT mbr pmbr boot0 boot0sio boot2 cdboot gptboo= t \ > isoboot libi386 >=20 > SUBDIR.${MK_LOADER_FIREWIRE}+=3D libfirewire > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.o= rg" >=20 I have not correctly applied the patch. I am sorry for the confusion. The world builds fine with this second patch. I am not able to reproduce the original error anymore (buildworld and installworld after that, both go fine even with unpatched stand/i386/Makefile b/stand/i386/Makefile). --=20 Marek Zarychta --f0brc4kUcl1dHV9Puoe0NCqmkXd8EMEmK-- --o2Acsl9JZohj43FuWj66sel8DVnStjgjR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEMOqvKm6wKvS1/ZeCdZ/s//1SjSwFAl4xNJcACgkQdZ/s//1S jSywBgf/UU9TnFMDdQ+FY5GG7G8QKHssnwDW2YUON1HGYVj68cYnIVCbWkV+e63G SY1ABu9AH9pFZsIAzuapNnPL30Hp83KqdKbiIOug3gopm8TI4MZXoGW01zNooenZ MbVP0Gww8vpzQ00o6LN3Qxo8YqCLChkFtjoR+oA6cAe0GJNVnUpYqhh7VJxtNTgV ALV/y+9QxF3oG0bCxIqMSEjLDPs/zGgUvjM4g8ja353HmUWKvbEXJD268SIz8cbJ LTMZ9JLJQmL8ht6vuIRVLSzIKbCI7oVv/j/HyQR+sQLs44OTnB8CxQZ+G4FpdeO2 JzwKcC1o4GBQfDem7AQk8teV4fcG+w== =W6x+ -----END PGP SIGNATURE----- --o2Acsl9JZohj43FuWj66sel8DVnStjgjR--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9079b2c2-d055-f304-0744-215e2573e291>