[Top] [All Lists]

Re: Help in cross-compiler--gcc3.2-7.1 error

To: Chien-Lung Wu <>
Subject: Re: Help in cross-compiler--gcc3.2-7.1 error
From: Daniel Jacobowitz <>
Date: Wed, 18 Dec 2002 23:58:38 -0500
Cc: 'Brad Barrett' <>,
In-reply-to: <>
Original-recipient: rfc822;
References: <>
User-agent: Mutt/1.5.1i
On Wed, Dec 18, 2002 at 05:21:39PM -0500, Chien-Lung Wu wrote:
> Hi, Brad:
> Thanks for your information.
> I download:
>       binutils                        v2. (H.J. Lu)
>       GCC                             v3.2-7.1 (H.J. Lu)
>       glibc                           v2.2.5
>       glibc-linuxthreads      v2.2.5
> and follow your build note to build a big-endian mips cross-compiler.
> As I build the binutil-, it is o.k.
> However, as I build the gcc (1st), I get the error message:
> make[1]: Leaving directory `/home/lineo/xcompiler/mips-gcc-3.2.7/libiberty'
> make[1]: Entering directory `/home/lineo/xcompiler/mips-gcc-3.2.7/gcc'
> gcc -DIN_GCC -DCROSS_COMPILE   -g -O2 -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
> -Wno-long-long
>  gengenrtl.o ../libiberty/libiberty.a
>  ../libiberty/libiberty.a: could not read symbols: Archive has no index; run
>  ranlib to add one
>  collect2: ld returned 1 exit status
>  make[1]: *** [gengenrtl] Error 1
>  make[1]: Leaving directory `/home/lineo/xcompiler/mips-gcc-3.2.7/gcc'
>  make: *** [all-gcc] Error 2
> Do I miss something?
> Since I download the gcc3.2-7.1.src.rpm (only srpm format), I use 
>       rpm --rebuild gcc3.2-7.1.src.rpm
> then I got gcc-3.2-20020903.tar.bz2 and many patch files.
> I umcompress the gcc-3.2-20020903.tar.bz2 using the command
>       tar -xvIf gcc-3.2-20020903.tar.bz2 
> ==>I get the gcc-3.2-20020903.
> Questions:
>       Do I need to patch all the patch files? If so, how can I patch all
> of them?
>       or is the tarball pached?
> Regarding to the error message, is it caused by missing some patch files?
> How can I fix this problem?

I don't know anything about HJ's RPM setup, but that error means it ran
host ranlib on a MIPS library instead of running MIPS ranlib.

Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

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