On Wed, Dec 18, 2002 at 05:21:39PM -0500, Chien-Lung Wu wrote:
> Hi, Brad:
> Thanks for your information.
> I download:
> binutils v18.104.22.168.10 (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-22.214.171.124, it is o.k.
> However, as I build the gcc (1st), I get the error message:
> make: Leaving directory `/home/lineo/xcompiler/mips-gcc-3.2.7/libiberty'
> make: 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
> -DHAVE_CONFIG_H -DGENERATOR_FILE -o gengenrtl \
> 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: *** [gengenrtl] Error 1
> make: 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.
> 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.
MontaVista Software Debian GNU/Linux Developer