Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Apr 2012 11:08:57 -0700
From:      Oleksandr Tymoshenko <gonzo@bluezbox.com>
To:        freebsd-arm@freebsd.org
Subject:   Re: beaglebone
Message-ID:  <4F8DB1B9.1010604@bluezbox.com>
In-Reply-To: <CABt%2Bj0==MY1N8esvF0vdX5XHkigcjj_v1f1DJdot8KKxC_-dDA@mail.gmail.com>
References:  <FE86500B-9B6F-458E-A74B-9D3BC4530BAC@freebsd.org> <CABt%2Bj0==MY1N8esvF0vdX5XHkigcjj_v1f1DJdot8KKxC_-dDA@mail.gmail.com>

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



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