Date: Mon, 12 Dec 2022 18:36:42 -0700 From: Warner Losh <imp@bsdimp.com> To: bob prohaska <fbsd@www.zefox.net> Cc: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Subject: Re: /usr/src/Makefile.inc1 typo? Message-ID: <CANCZdfo47fOt_7X_YesKHnrSn9tiqaqWa8wfywaDwtpXsZd%2BCA@mail.gmail.com> In-Reply-To: <20221213013145.GA66502@www.zefox.net> References: <20221212203943.GA64277@www.zefox.net> <6E46C762-1409-4977-977A-37D01EB65784@yahoo.com> <CANCZdfpA1a-K7i4sbAuAJgROY5hogH3z4nNDiJMiWqPo5RDRYQ@mail.gmail.com> <20221213013145.GA66502@www.zefox.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000009eac8505efaba7f4 Content-Type: text/plain; charset="UTF-8" On Mon, Dec 12, 2022, 6:31 PM bob prohaska <fbsd@www.zefox.net> wrote: > On Mon, Dec 12, 2022 at 05:40:11PM -0700, Warner Losh wrote: > > On Mon, Dec 12, 2022, 2:21 PM Mark Millard <marklmi@yahoo.com> wrote: > > > > > On Dec 12, 2022, at 12:39, bob prohaska <fbsd@www.zefox.net> wrote: > > > > > > > It looks like there might be a typo (or nomenclature change) > > > > in armv7. > > > > > > > > Last attempt at installkernel stopped with > > > > make[1]: "/usr/src/Makefile.inc1" line 163: Unknown target > armv7:armv7 > > > > . . . > > > > > > You suffer from bad timing relative to main's [so: 14's]: > > 8-) > > > > > > > Sun, 11 Dec 2022 > > > . . . > > > ??? git: 83bf6ab56829 - main - uname: switch machine to > HW_MACHINE_ARCH > > > Piotr Kubaj > > > . . . > > > Mon, 12 Dec 2022 > > > . . . > > > ??? git: 85dd85323614 - main - Revert "uname: switch machine to > > > HW_MACHINE_ARCH" Piotr Kubaj > > > ??? Re: git: 83bf6ab56829 - main - uname: switch machine to > > > HW_MACHINE_ARCH Piotr Kubaj > > > . . . > > > > > > Having a system built from a source tree from between the 2 > > > commits one ends up with a broken default native build > > > environment with complaints about "target NAME:NAME" when the > > > correct naming for the context has 2 distinct names, such as > > > arm and armv7 in your context. (That need not be the only > > > complaint.) > > > > > > It may be that explicitly listing TARGET=arm TARGET_ARCH=armv7 > > > on either the make command line(s) or in the environment(s) > > > might allow a valid build from the messed up context. (But > > > such is untested.) I've no clue if a full rebuild-from-scratch > > > might be needed. If it works, you would likely need to be > > > explicit, even for installkernel and installworld, not just > > > for building. > > > > > Adding TARGET=arm TARGET_ARCH=armv7 to the build command line didn't > help. Removing /usr/obj/usr/ didn't help either. > > > Libc is all that's needed. Use "make MACHINE=arm" though maybe it's a > > general workaround. > > > > Maybe I overdid with rm /usr/obj/ but adding MACHINE=arm > to the make command seems to have got buildworld unstuck. It'll > take a couple of days to find out for sure 8-) > Yes. Make(1) only sets MACHINE if it's not in the environment or the command line. Warner Many thanks to all who replied! > > bob prohaska > > > --0000000000009eac8505efaba7f4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" = class=3D"gmail_attr">On Mon, Dec 12, 2022, 6:31 PM bob prohaska <<a href= =3D"mailto:fbsd@www.zefox.net">fbsd@www.zefox.net</a>> wrote:<br></div><= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">On Mon, Dec 12, 2022 at 05:40:11PM -0700, War= ner Losh wrote:<br> > On Mon, Dec 12, 2022, 2:21 PM Mark Millard <<a href=3D"mailto:markl= mi@yahoo.com" target=3D"_blank" rel=3D"noreferrer">marklmi@yahoo.com</a>>= ; wrote:<br> > <br> > > On Dec 12, 2022, at 12:39, bob prohaska <<a href=3D"mailto:fbs= d@www.zefox.net" target=3D"_blank" rel=3D"noreferrer">fbsd@www.zefox.net</a= >> wrote:<br> > ><br> > > > It looks like there might be a typo (or nomenclature change)= <br> > > > in armv7.<br> > > ><br> > > > Last attempt at installkernel stopped with<br> > > > make[1]: "/usr/src/Makefile.inc1" line 163: Unknow= n target armv7:armv7<br> > > > . . .<br> > ><br> > > You suffer from bad timing relative to main's [so: 14's]:= <br> <br> 8-)<br> <br> > ><br> > > Sun, 11 Dec 2022<br> > >=C2=A0 =C2=A0 . . .<br> > >=C2=A0 =C2=A0 =C2=A0??? git: 83bf6ab56829 - main - uname: switch m= achine to HW_MACHINE_ARCH<br> > > Piotr Kubaj<br> > > . . .<br> > > Mon, 12 Dec 2022<br> > >=C2=A0 =C2=A0 . . .<br> > >=C2=A0 =C2=A0 =C2=A0??? git: 85dd85323614 - main - Revert "un= ame: switch machine to<br> > > HW_MACHINE_ARCH" Piotr Kubaj<br> > >=C2=A0 =C2=A0 =C2=A0??? Re: git: 83bf6ab56829 - main - uname: swit= ch machine to<br> > > HW_MACHINE_ARCH Piotr Kubaj<br> > > . . .<br> > ><br> > > Having a system built from a source tree from between the 2<br> > > commits one ends up with a broken default native build<br> > > environment with complaints about "target NAME:NAME" wh= en the<br> > > correct naming for the context has 2 distinct names, such as<br> > > arm and armv7 in your context. (That need not be the only<br> > > complaint.)<br> > ><br> > > It may be that explicitly listing TARGET=3Darm TARGET_ARCH=3Darmv= 7<br> > > on either the make command line(s) or in the environment(s)<br> > > might allow a valid build from the messed up context. (But<br> > > such is untested.) I've no clue if a full rebuild-from-scratc= h<br> > > might be needed. If it works, you would likely need to be<br> > > explicit, even for installkernel and installworld, not just<br> > > for building.<br> > ><br> <br> Adding TARGET=3Darm TARGET_ARCH=3Darmv7 to the build command line didn'= t<br> help. Removing /usr/obj/usr/ didn't help either. <br> <br> > Libc is all that's needed. Use "make MACHINE=3Darm" thou= gh maybe it's a<br> > general workaround.<br> > <br> <br> Maybe I overdid with rm /usr/obj/ but adding MACHINE=3Darm<br> to the make command seems to have got buildworld unstuck. It'll<br> take a couple of days to find out for sure 8-)<br></blockquote></div></div>= <div dir=3D"auto"><br></div><div dir=3D"auto">Yes. Make(1) only sets MACHIN= E if it's not in the environment or the command line.</div><div dir=3D"= auto"><br></div><div dir=3D"auto">Warner=C2=A0</div><div dir=3D"auto"><br><= /div><div dir=3D"auto"><br></div><div dir=3D"auto"><div class=3D"gmail_quot= e"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left= :1px #ccc solid;padding-left:1ex"> Many thanks to all who replied!<br> <br> bob prohaska<br> <br> <br> </blockquote></div></div></div> --0000000000009eac8505efaba7f4--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfo47fOt_7X_YesKHnrSn9tiqaqWa8wfywaDwtpXsZd%2BCA>