[uClibc] Building uClibc gcc for a target

Chris Verges squirrel at headnut.org
Sat Oct 2 03:58:32 UTC 2004


Howdy all,

Since cross compiling some programs can just be an absolute pain,
I wanted to build a target development environment and just
build everything inside of it.  So I grabbed a copy of the
toolchain builder and created me a nice i386 uclibc cross
compiler.

As we all know, however, that is meant to run on the build
platform, in this case an i686 glibc.  I wanted to create a
compiler that could run natively on an i386 uclibc.  So I grabbed
a copy of the GCC sources and tried to do a compile ... which
failed miserably.  I passed it CC=${CROSS_PREFIX}gcc and
--host=i386-linux, and yet during the second stage of the
./configure script (one of the sub dirs), it said the host/target
system was i686-pc-linux-gnu (the build system).

So, in a nutshell, how do I build a copy of gcc that will
actually run on the target platform?

Thanks!

Chris Verges
-- 
http://headnut.org
squirrel at headnut.org



More information about the uClibc mailing list