Difficulty with armv6 to v7 transition.
Warner Losh
imp at bsdimp.com
Mon Oct 9 19:15:59 UTC 2017
On Mon, Oct 9, 2017 at 1:14 PM, Ian Lepore <ian at freebsd.org> wrote:
> On Mon, 2017-10-09 at 12:37 -0600, Warner Losh wrote:
> > On Oct 9, 2017 12:19 PM, "Ian Lepore" <ian at freebsd.org> wrote:
> >
> > On Mon, 2017-10-09 at 10:52 -0700, bob prohaska wrote:
> > >
> > > On an RPI2 model B, invoking
> > > make -j4 -DNO_CLEAN MACHINE_ARCH=armv7 buildworld > buildworld.log
> > Never set MACHINE_ARCH when building, use TARGET_ARCH. Be sure to
> > set
> > TARGET_ARCH when installing as well.
> >
> >
> >
> > That was a specific work around...
> >
> > But the real issue is the system compiler does need to be rebuilt..
> >
> > Warner
> >
> >
>
> Which means when upgrading from self-hosted armv6 to armv7, you're
> really doing a full crossbuild (just like when we did the armv6hf->v6
> dance), so TARGET_ARCH= actually is the right answer?
It should be the right answer. This was a specific workaround for a
specific bug that I think we're past...
Warner
> > -- Ian
> >
> > >
> > > (after a cleandir)
> > > the log promptly reports
> > > make[1]: "/usr/src/Makefile.inc1" line 162: SYSTEM_COMPILER:
> > > Determined that CC=cc matches the source tree. Not bootstrapping a
> > > cross-compiler.
> > > make[1]: "/usr/src/Makefile.inc1" line 450: To cross-build, set
> > > TARGET_ARCH.
> > > *** [buildworld] Error code 1
> > >
> > > make: stopped in /usr/src
> > >
> > > The kernel is r322520, sources are at 324424. Kernel r324342 does
> > > likewise.
> > >
> > > Thanks for reading, and any suggestions.
> > >
> > > bob prohaska
> > >
> > > _______________________________________________
> > > freebsd-arm at freebsd.org mailing list
> > > https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> > > To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.o
> > > rg
> > > "
> > _______________________________________________
> > freebsd-arm at freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> > To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org
> > "
> > _______________________________________________
> > freebsd-arm at freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> > To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org
> > "
>
More information about the freebsd-arm
mailing list