Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Dec 2022 17:31:45 -0800
From:      bob prohaska <fbsd@www.zefox.net>
To:        freebsd-arm@freebsd.org
Cc:        bob prohaska <fbsd@www.zefox.net>
Subject:   Re: /usr/src/Makefile.inc1 typo?
Message-ID:  <20221213013145.GA66502@www.zefox.net>
In-Reply-To: <CANCZdfpA1a-K7i4sbAuAJgROY5hogH3z4nNDiJMiWqPo5RDRYQ@mail.gmail.com>
References:  <20221212203943.GA64277@www.zefox.net> <6E46C762-1409-4977-977A-37D01EB65784@yahoo.com> <CANCZdfpA1a-K7i4sbAuAJgROY5hogH3z4nNDiJMiWqPo5RDRYQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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-)

Many thanks to all who replied!

bob prohaska




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20221213013145.GA66502>