This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: eglibc cross-compiling
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: Christer Solskogen <christer dot solskogen at gmail dot com>
- Cc: libc-help at sourceware dot org
- Date: Fri, 30 Sep 2011 08:49:07 -0400
- Subject: Re: eglibc cross-compiling
- References: <j64bik$b6j$1@dough.gmane.org>
On Fri, Sep 30, 2011 at 8:09 AM, Christer Solskogen
<christer.solskogen@gmail.com> wrote:
> As far as I have understood, glibc does not support to be cross-compiled, so
> I had to go for eglibc. I then tried to follow eglibs cross-compiler guide
> (http://www.eglibc.org/cgi-bin/viewcvs.cgi/trunk/libc/EGLIBC.cross-building?rev=2037&view=markup)
> but using newer tools (newest binutils and newest gcc)
>
> Building binutils was no problem, but the first gcc stage complained about
> fenv.h was missing. And as far as I know fenv.h is a part of (e)glibc. I was
> under the impression that buliding this minimal c-compiler would not use
> anything else than it's own header files, so I guess that the way gcc is
> built has changed. Or has the process changed?
You may have misconfigured the minimal C compiler build? It should be buildable.
If this is a learning exercise then by all means please playing around
and we'll be more than happy to help.
If you need to get things done now then I suggest looking at
crosstool-ng or other similar toolchain building projects.
Cheers,
Carlos.