linux-mips
[Top] [All Lists]

RE: cross compiling gcc for mips

To: "'Stephen P. Becker'" <geoman@gentoo.org>, 'Scott Parker' <whtghst1@direcway.com>
Subject: RE: cross compiling gcc for mips
From: Mudeem Iqbal <mudeem@Quartics.com>
Date: Mon, 3 Jan 2005 09:40:03 +0500
Cc: "'linux-mips@linux-mips.org'" <linux-mips@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi,

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]: *** [libgcc_s.so] Error 1
make[2]: Leaving directory
`/home/mudeem/ashwaria_rai/build-tools/build-boot-gcc/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory
`/home/mudeem/ashwaria_rai/build-tools/build-boot-gcc/gcc'
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 ???

Mudeem


-----Original Message-----
From: Stephen P. Becker [mailto:geoman@gentoo.org]
Sent: Sunday, January 02, 2005 10:01 PM
To: Scott Parker
Cc: Mudeem Iqbal; 'linux-mips@linux-mips.org'
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 linux-mips.org)
>>

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

Steve


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