RE: cross compiling gcc for mips

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx]
Sent: Sunday, January 02, 2005 10:01 PM
To: Scott Parker
Cc: Mudeem Iqbal; 'linux-mips@xxxxxxxxxxxxxx'
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



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux