glibc-2.2.5 configuration error (cross-compiler)

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

 



Hi, 

I try to build a cross-compiler for mips-linux for mips target (idt32332).

I followed the instruction of Bradley D. LaRonde (thanks)
 http://www.ltc.com/~brad/mips/mips-cross-toolchain/

I downloaded :

	binutils-2.13
	gcc-2.95.3
	glibc-2.2.5 and glibc-linuxthreads-2.2.5

and my build system is gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
and gmake 3.79.1.

As I compiled and install binutils-2.13 and gcc-2.95.3 (1th time),
everything is fine. However, as I configured
glibc-2-2.5 following the instruction:
tar -xzf glibc-2.2.5.tar.gz 
cd glibc-2.2.5
 patch -i ../glibc-2.2.5-mips-build-gmon.diff 
tar -xzf ../glibc-linuxthreads-2.2.5.tar.gz cd .. 
mkdir mips-glibc-2.2.5-1-3
 cd mips-glibc-2.2.5-1-3
 CFLAGS="-O2 -g -finline-limit=10000" ../glibc-2.2.5/configure
--build=i686-linux \
  --host=mips-linux --enable-add-ons --prefix=/usr 
I got error as following:
////// error output //////
loading cache ./config.cache
checking host system type... mips-mips-linux-gnu
checking sysdep dirs... sysdeps/mips/elf
linuxthreads/sysdeps/unix/sysv/linux linuxthreads/sysdeps/pthread
sysdeps/pthread linuxthreads/sysdeps/unix/sysv linuxthreads/sysdeps/unix
linuxthreads/sysdeps/mips sysdeps/unix/sysv/linux/mips
sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman
sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix/mips sysdeps/unix
sysdeps/posix sysdeps/mips/fpu sysdeps/mips sysdeps/wordsize-32
sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/ieee754
sysdeps/generic/elf sysdeps/generic
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for pwd... /bin/pwd
checking build system type... i686-pc-linux-gnu
checking for mips-linux-gcc... no
checking for mips-linux-cc... no
checking for gnumake... no
checking for gmake... gmake
checking version of gmake... 3.79.1, ok

*** These critical programs are missing or too old:gcc
*** Check the INSTALL file for required versions.
[root@dpr211 mips-glibc-2.2.5-1-3]# 
//// end of error output /////

As i compiled and install cross-compiler, I use the option
--prfix=/usr/xmips-1-3, that means I will
install the cross-compiler in the directory /usr/xmips-1-3. And I also check
tools and mips-linux-gcc are on my cross-compiler directory
/usr/xmips-1-3/bin.

My question is why I got the message:
	checking for mips-linux-gcc... no
	checking for mips-linux-cc... no
And how can I set up path such that this configure can find them.

Another question is the configure error.
I check the INSTALL to make sure the gcc version. It requires gcc 2.95 or
newer.
I check my host gcc is 2.96 and cross-compiler gcc is 2.95.3. 
Why do I get the configure error:
*** These critical programs are missing or too old:gcc
*** Check the INSTALL file for required versions.

Any solution to fix it. Thanks.

Chien-Lung












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

  Powered by Linux