Skip site navigation (1)Skip section navigation (2)
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 &lt;<a href=
=3D"mailto:fbsd@www.zefox.net">fbsd@www.zefox.net</a>&gt; 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>
&gt; On Mon, Dec 12, 2022, 2:21 PM Mark Millard &lt;<a href=3D"mailto:markl=
mi@yahoo.com" target=3D"_blank" rel=3D"noreferrer">marklmi@yahoo.com</a>&gt=
; wrote:<br>
&gt; <br>
&gt; &gt; On Dec 12, 2022, at 12:39, bob prohaska &lt;<a href=3D"mailto:fbs=
d@www.zefox.net" target=3D"_blank" rel=3D"noreferrer">fbsd@www.zefox.net</a=
>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; It looks like there might be a typo (or nomenclature change)=
<br>
&gt; &gt; &gt; in armv7.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Last attempt at installkernel stopped with<br>
&gt; &gt; &gt; make[1]: &quot;/usr/src/Makefile.inc1&quot; line 163: Unknow=
n target armv7:armv7<br>
&gt; &gt; &gt; . . .<br>
&gt; &gt;<br>
&gt; &gt; You suffer from bad timing relative to main&#39;s [so: 14&#39;s]:=
<br>
<br>
8-)<br>
<br>
&gt; &gt;<br>
&gt; &gt; Sun, 11 Dec 2022<br>
&gt; &gt;=C2=A0 =C2=A0 . . .<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0??? git: 83bf6ab56829 - main - uname: switch m=
achine to HW_MACHINE_ARCH<br>
&gt; &gt; Piotr Kubaj<br>
&gt; &gt; . . .<br>
&gt; &gt; Mon, 12 Dec 2022<br>
&gt; &gt;=C2=A0 =C2=A0 . . .<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0??? git: 85dd85323614 - main - Revert &quot;un=
ame: switch machine to<br>
&gt; &gt; HW_MACHINE_ARCH&quot; Piotr Kubaj<br>
&gt; &gt;=C2=A0 =C2=A0 =C2=A0??? Re: git: 83bf6ab56829 - main - uname: swit=
ch machine to<br>
&gt; &gt; HW_MACHINE_ARCH Piotr Kubaj<br>
&gt; &gt; . . .<br>
&gt; &gt;<br>
&gt; &gt; Having a system built from a source tree from between the 2<br>
&gt; &gt; commits one ends up with a broken default native build<br>
&gt; &gt; environment with complaints about &quot;target NAME:NAME&quot; wh=
en the<br>
&gt; &gt; correct naming for the context has 2 distinct names, such as<br>
&gt; &gt; arm and armv7 in your context. (That need not be the only<br>
&gt; &gt; complaint.)<br>
&gt; &gt;<br>
&gt; &gt; It may be that explicitly listing TARGET=3Darm TARGET_ARCH=3Darmv=
7<br>
&gt; &gt; on either the make command line(s) or in the environment(s)<br>
&gt; &gt; might allow a valid build from the messed up context. (But<br>
&gt; &gt; such is untested.) I&#39;ve no clue if a full rebuild-from-scratc=
h<br>
&gt; &gt; might be needed. If it works, you would likely need to be<br>
&gt; &gt; explicit, even for installkernel and installworld, not just<br>
&gt; &gt; for building.<br>
&gt; &gt;<br>
<br>
Adding TARGET=3Darm TARGET_ARCH=3Darmv7 to the build command line didn&#39;=
t<br>
help. Removing /usr/obj/usr/ didn&#39;t help either. <br>
<br>
&gt; Libc is all that&#39;s needed. Use &quot;make MACHINE=3Darm&quot; thou=
gh maybe it&#39;s a<br>
&gt; general workaround.<br>
&gt; <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&#39;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&#39;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>