- To: gcc-help@xxxxxxxxxxx
- Subject: Re: gcc + uclibc
- From: Andrew Haley <aph@xxxxxxxxxx>
- Date: Mon, 02 Apr 2012 10:03:48 +0100
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- In-reply-to: <CAM2N3Efx_02kSV8vQ=-z_o9A_YZDGQYHoko+8YagWan9xPNs+g@mail.gmail.com>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1
On 04/02/2012 09:11 AM, Alberich de megres wrote:
> I'm trying to understand the toolchain creation, by building one. I
> want to learn how they work.
> I'm building one for arm, with:
> - binutils 2.22
> - kernel 3.1.8 headers
> - gcc 4.6.2
>
>
> When compiling gcc final stage I got the following error:
You need the C libraries for your target system.
Install them somewhere, and then configure --with-sysroot=
Something like this:
$ /home/aph/gcc/trunk/configure \
--target=armv7hl-redhat-linux-gnueabi \
--prefix=/home/aph/gcc/trunk/x-armv7hl-redhat-linux-gnueabi-install \
--with-sysroot=/home/aph/fedora_armv7hl_rootfs/ \
--enable-languages=c,c++
Andrew.
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]