From nobody Tue Dec 13 01:36:42 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NWLh75Sqyz4kN45 for ; Tue, 13 Dec 2022 01:36:55 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NWLh74ZYMz3l0D for ; Tue, 13 Dec 2022 01:36:55 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x62f.google.com with SMTP id x22so32948528ejs.11 for ; Mon, 12 Dec 2022 17:36:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=let/Mrk96xpKxsjMRjBYrGQXsBx7e+Kz7fiibjKeKyk=; b=7yh8WnkHxT4MXKYhZTKN6583zeg2pG/VFuFjGJqbW7UpuIf5JBQZ3TP6BbQ9Nk1hLt MjrLKgpa5VmJgL675q7GLqRmlXcpH1hP/Hj75It/4gQkFHgOiU8w443PpVYLHo79T8BU WRwC60VggOyS8x7gPZlYSyiknBZpFhm/tDqoGA3N0nUpa2iQ8UzllbGWCZvfa2C8xq2g M9J4Y8OqgkTYp1P9+h1k+bRI7TexlwE/+2X/2yPGkXAIsGIFo8qsY40AL9iHawT9dZgX s469IpKOgecN9Vx8NkKRMEe0VeJCxap2YVfHAcgwR7NKvoY2fLBYuDpFfqvZGzouu0d0 +FAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=let/Mrk96xpKxsjMRjBYrGQXsBx7e+Kz7fiibjKeKyk=; b=Lyxb3vdWJ8eN95j7JI+McVeYoh+GuRPBFd8gYHFW80TkUwpm44dK+IFWBljBLksgNl RFs1AiNe2o5tv5rARhDi7iIDKmYR8cp3rMOKXAixmhm1a+w2cP2K96huCODtTB/BQaSM pIg0UVZby4UQVjnmjz0SZQKCOYtO2LYIoi21o6CkUBKx1tJt5mwQ5baY5dxujio+3d1a EThCwvVnDiuWHmbAuC8xQENOCqn7c5vGC/xQyArDT+TSuh5ZCGsF7uH1Ezk5wSeAYnrs pSjMwEizy0LM72r2049HqRAF0Ib4/qLQniWNYDB6gbT6zuZdf/GTE4x8iBgFnK5d9tlg 3vsA== X-Gm-Message-State: ANoB5pn596QVwTLJo64YkitWXSkiCvNnQGxgBO21rJKgHb0pmVbNFezO hBuveXtIxu504TP9lHezo5oH8Ji1hTFYO359aJPZgjFJ/EJvwg== X-Google-Smtp-Source: AA0mqf72JCevdHalTjce7FXtSGFn0u7tTcM+mnHSqdlEmR+bmW3tbOLSfWaN4wBRGe7+R+QBdrhFjM2t7yBJ2wsOKkM= X-Received: by 2002:a17:906:49a:b0:7b9:631b:7dfb with SMTP id f26-20020a170906049a00b007b9631b7dfbmr245445eja.32.1670895414186; Mon, 12 Dec 2022 17:36:54 -0800 (PST) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 References: <20221212203943.GA64277@www.zefox.net> <6E46C762-1409-4977-977A-37D01EB65784@yahoo.com> <20221213013145.GA66502@www.zefox.net> In-Reply-To: <20221213013145.GA66502@www.zefox.net> From: Warner Losh Date: Mon, 12 Dec 2022 18:36:42 -0700 Message-ID: Subject: Re: /usr/src/Makefile.inc1 typo? To: bob prohaska Cc: "freebsd-arm@freebsd.org" Content-Type: multipart/alternative; boundary="0000000000009eac8505efaba7f4" X-Rspamd-Queue-Id: 4NWLh74ZYMz3l0D X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --0000000000009eac8505efaba7f4 Content-Type: text/plain; charset="UTF-8" On Mon, Dec 12, 2022, 6:31 PM bob prohaska wrote: > On Mon, Dec 12, 2022 at 05:40:11PM -0700, Warner Losh wrote: > > On Mon, Dec 12, 2022, 2:21 PM Mark Millard wrote: > > > > > On Dec 12, 2022, at 12:39, bob prohaska 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


On Mon, Dec 12, 2022, 6:31 PM bob prohaska <fbsd@www.zefox.net> wrote:
<= 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:
> 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: Unknow= n target armv7:armv7
> > > . . .
> >
> > You suffer from bad timing relative to main's [so: 14's]:=

8-)

> >
> > Sun, 11 Dec 2022
> >=C2=A0 =C2=A0 . . .
> >=C2=A0 =C2=A0 =C2=A0??? git: 83bf6ab56829 - main - uname: switch m= achine to HW_MACHINE_ARCH
> > Piotr Kubaj
> > . . .
> > Mon, 12 Dec 2022
> >=C2=A0 =C2=A0 . . .
> >=C2=A0 =C2=A0 =C2=A0??? git: 85dd85323614 - main - Revert "un= ame: switch machine to
> > HW_MACHINE_ARCH" Piotr Kubaj
> >=C2=A0 =C2=A0 =C2=A0??? Re: git: 83bf6ab56829 - main - uname: swit= ch 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" wh= en 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=3Darm TARGET_ARCH=3Darmv= 7
> > 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-scratc= h
> > might be needed. If it works, you would likely need to be
> > explicit, even for installkernel and installworld, not just
> > for building.
> >

Adding TARGET=3Darm TARGET_ARCH=3Darmv7 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=3Darm" thou= gh maybe it's a
> general workaround.
>

Maybe I overdid with rm /usr/obj/ but adding MACHINE=3Darm
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 MACHIN= E if it's not in the environment or the command line.

Warner=C2=A0

<= /div>

Many thanks to all who replied!

bob prohaska


--0000000000009eac8505efaba7f4--