[uClibc]MIPSEL compile problems

Jay Carlson nop at nop.com
Wed Sep 11 00:43:01 UTC 2002


On Tuesday, August 13, 2002, at 10:33 AM, Erik Andersen wrote:

> On Tue Aug 13, 2002 at 08:23:21AM -0600, cliffwood wrote:
>> I tried to compile the Aug 12th version by ftping the
>> gcc-3.1.1-uclibc-20020812.src.tar.gz
>> untar'd it, selected ARCH:=mipsel, unselected ARCH:=i386, and 
>> executed make.
>>
>> This seemed to be working fine until it got to the point of wget'ing
>> uClibc-0.9.14.tar.bz2.  After it retried numerous times, I ftp'd it 
>> manually
>> and put it in gcc-3.1.1/sources/dl.
>>
>> I then did a make clean, and then make.  The process worked until the 
>> ld
>> command gave the following error.  "could not read symbols: Archive 
>> has no
>> index; run ranlib to add one"
>>
>> Does this mean that the archive wasn't built correctly?  The 
>> stdout/stderr
>> output for the make is included below.
>
> Hmm.  I have a mipsel test system sitting right next to me, but
> I've not tried building this thing recently for mipsel.
>
> Looks like for some reason gcc is failing to run ranlib on
> libgcc.

gcc is running "ranlib" on libgcc.  But an i386 ranlib isn't good 
enough for mips.

As I mentioned previously, it looks like this is a misdesign in gcc's 
cross-build process.  Run the gcc build process as "$(MAKE) 
AR_FOR_TARGET=/absolute/path/to/mipsel-linux-ar 
RANLIB_FOR_TARGET=/absolute/path/to/mipsel-linux-ranlib" or whatever 
filename is appropriate for the target.

Jay




More information about the uClibc mailing list