From owner-freebsd-arm@FreeBSD.ORG Tue Apr 17 18:08:59 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9ECD7106566C for ; Tue, 17 Apr 2012 18:08:59 +0000 (UTC) (envelope-from gonzo@hq.bluezbox.com) Received: from hq.bluezbox.com (hq.bluezbox.com [70.38.37.145]) by mx1.freebsd.org (Postfix) with ESMTP id 5D83A8FC16 for ; Tue, 17 Apr 2012 18:08:59 +0000 (UTC) Received: from localhost ([127.0.0.1]) by hq.bluezbox.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.73 (FreeBSD)) (envelope-from ) id 1SKCpc-000E65-AY for freebsd-arm@freebsd.org; Tue, 17 Apr 2012 11:08:48 -0700 Message-ID: <4F8DB1B9.1010604@bluezbox.com> Date: Tue, 17 Apr 2012 11:08:57 -0700 From: Oleksandr Tymoshenko User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: freebsd-arm@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: gonzo@hq.bluezbox.com X-Spam-Level: ---- X-Spam-Report: Spam detection software, running on the system "hq.bluezbox.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: On 17/04/2012 11:00 AM, Alex T. wrote: > Just a quick question. What compiler do you use? When I start the kernel > compilation the gcc from my base system is used, which is gcc 4.2.1, and it > complains about armv6 target cpu: > > `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. > cc1: error: unrecognized command line option "-mlittle-endian" > sys/arm/arm/genassym.c:1: error: bad value (armv6) for -march= switch > sys/arm/arm/genassym.c:1: error: bad value (armv6) for -mtune= switch > > Do you override CC by any chance? [...] Content analysis details: (-4.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Subject: Re: beaglebone X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2012 18:08:59 -0000 On 17/04/2012 11:00 AM, Alex T. wrote: > Just a quick question. What compiler do you use? When I start the kernel > compilation the gcc from my base system is used, which is gcc 4.2.1, and it > complains about armv6 target cpu: > > `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. > cc1: error: unrecognized command line option "-mlittle-endian" > sys/arm/arm/genassym.c:1: error: bad value (armv6) for -march= switch > sys/arm/arm/genassym.c:1: error: bad value (armv6) for -mtune= switch > > Do you override CC by any chance? It's stock toolchain from projects/armv6 tree. You just need to build it first. Run make TARGET_ARCH=arm TARGET_CPUTYPE=armv6 kernel-toolchain before making buildkernel.