Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Oct 2017 12:37:26 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Ian Lepore <ian@freebsd.org>
Cc:        bob prohaska <fbsd@www.zefox.net>, freebsd-arm@freebsd.org
Subject:   Re: Difficulty with armv6 to v7 transition.
Message-ID:  <CANCZdfrMaxL5fJrtiTMD__7OPDR0EbRNw-BNXoJwa-JdyFNomQ@mail.gmail.com>
In-Reply-To: <1507573171.84167.9.camel@freebsd.org>
References:  <20171009175216.GA52497@www.zefox.net> <1507573171.84167.9.camel@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Oct 9, 2017 12:19 PM, "Ian Lepore" <ian@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


-- 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@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org
> "
_______________________________________________
freebsd-arm@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"



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