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

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

 



On Wed, Dec 18, 2002 at 05:21:39PM -0500, Chien-Lung Wu wrote:
> Hi, Brad:
> 
> Thanks for your information.
> I download:
> 	binutils			v2.13.90.0.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-2.13.90.10, 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
> -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[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


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

  Powered by Linux