[Top] [All Lists]

RE: cross compiling gcc for mips

To: "'Stephen P. Becker'" <>, 'Scott Parker' <>
Subject: RE: cross compiling gcc for mips
From: Mudeem Iqbal <>
Date: Mon, 3 Jan 2005 09:40:03 +0500
Cc: "''" <>
Original-recipient: rfc822;

Initially I was configuring gcc by

../gcc-3.4.3/configure --target=mipsel-linux --prefix=${PREFIX}
--without-headers --with-newlib --enable-languages=c

I looked up a bit and found --disable-threads option, so when I configure
gcc using --disbale-threads option I don't get the the initial threads
related errors but i just get

/home/mudeem/ashwaria_rai/tools/mipsel-linux/bin/ld: crti.o: No such file:
No such file or directory
collect2: ld returned 1 exit status
make[2]: *** [] Error 1
make[2]: Leaving directory
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory
make: *** [all-gcc] Error 2

Steve, if I am specifying --without-headers flag, that means not using
headers at all right??? Actaully I am following the instructions from the
O'Reilly's book "building Embedded Linux Systems" It is written that
--without-headers option is broken in gcc 3.2 and subsequent 3.2.1 releases.
Has it been fixed in gcc 3.4.3 ???


-----Original Message-----
From: Stephen P. Becker []
Sent: Sunday, January 02, 2005 10:01 PM
To: Scott Parker
Cc: Mudeem Iqbal; ''
Subject: Re: cross compiling gcc for mips

Scott Parker wrote:
> How did you configure GCC?
> Mudeem Iqbal wrote:
>> Hi,
>> I am building a toolchain for mips platform. I am using
>> binutils-2.15
>> gcc-3.4.3
>> glibc-2.3.3
>> linux-2.6.9    (from

Try using 2.4 headers instead.  I haven't had much success using 2.6 
headers to build a mips (cross)toolchain.


<Prev in Thread] Current Thread [Next in Thread>