Hi All,
I am hitting a problem building a gcc cross compiler toolchain for mips
with uclibc.
The target is a uclibc linux platform running a 2.6.18 kernel. I pulled
the source for this and extracted it. When I initially tested the gcc
compilation it was missing pthread.h. As I am on a mingw platform and
don't natively have pthreads.
After a little digging in the uClibc tree I modified my command line to
point to the uClibc include directory which got me further still.
I am now hitting an error
make[2]: Leaving directory `/c/cygwin/usr/src/mingw/gcc-mips/libdecnumber'
make[2]: Entering directory `/c/cygwin/usr/src/mingw/gcc-mips/gcc'
The directory that should contain system headers does not exist:
/c/cygwin/usr/src/mingw/uClibc-0.9.30.1/usr/include
the usr/include doesn't exist, and I haven't go a set of kernel headers
from the platform. This seems to be a little chicken/egg as how can you
build a kernel without a compiler and how can you make a compiler
without a kernel??
A linux tree does have a usr/include directory in it, but it only has
about 4 files in it and therefor I don't think this is the correct thing
to be looking at.
Here is my config, I hope someone can shed some light on what I've done
wrong.
# ../gcc-4.2.0/configure --target=mipsel-linux-uclibc
--with-build-sysroot=/c/cygwin/usr/src/mingw/uClibc-0.9.30.1
--disable-__cxa_atexit --enable-target-optspace --with-gnu-ld
--with-float=hard --enable-threads --with-arch=mips32
--disable-libmudflap --disable-nls --with-gnu-plts
--with-headers=/c/cygwin/usr/src/mingw/uClibc-0.9.30.1/include
--enable-languages=c
Jim