From owner-freebsd-arm@freebsd.org Mon Oct 9 19:14:53 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AE91EE39882 for ; Mon, 9 Oct 2017 19:14:53 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1a.eu.mailhop.org (outbound1a.eu.mailhop.org [52.58.109.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4A94C77C43 for ; Mon, 9 Oct 2017 19:14:52 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 1c6773ef-ad26-11e7-a893-25625093991c X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound1.eu.mailhop.org (Halon) with ESMTPSA id 1c6773ef-ad26-11e7-a893-25625093991c; Mon, 09 Oct 2017 19:14:46 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id v99JEgKS001883; Mon, 9 Oct 2017 13:14:42 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1507576482.84167.20.camel@freebsd.org> Subject: Re: Difficulty with armv6 to v7 transition. From: Ian Lepore To: Warner Losh Cc: freebsd-arm@freebsd.org Date: Mon, 09 Oct 2017 13:14:42 -0600 In-Reply-To: References: <20171009175216.GA52497@www.zefox.net> <1507573171.84167.9.camel@freebsd.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Oct 2017 19:14:53 -0000 On Mon, 2017-10-09 at 12:37 -0600, Warner Losh wrote: > On Oct 9, 2017 12:19 PM, "Ian Lepore" 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? > -- 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.o > > rg > > " > _______________________________________________ > 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 > "