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

Build a library for program which is cross compile for arm

I want to build a program which run on arm(my paltform
is rh7.2), and it need gmp library, so I think I
should cross compile the gmp library.Is that right?
I'm a newbie.
And then I ran the configure command .

[root@davis gmp-4.0]#  ./configure
--host=arm4vb-unknown-linux --build=pentium3
CC=armv4b-unknown-linux-gcc CFLAGS=-mbig-endian
AS=armv4b-unknown-linux-as LD=armv4b-unknown-linux-ld
checking build system type... pentium3-pc-none
checking host system type... arm4vb-unknown-linux-gnu
checking for a BSD compatible install...
/usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking whether to enable maintainer-specific
portions of Makefiles... no
checking whether armv4b-unknown-linux-gcc is gcc...
checking compiler armv4b-unknown-linux-gcc
-mbig-endian ... yes
checking whether gcc unsigned division works... no,
gcc <= 2.95.3
configure: error: could not find a working compiler

[root@davis gmp-4.0.yxb]# armv4b-unknown-linux-gcc -v
Reading specs from
gcc version 2.95.2 19991024 (release)

>From the gmp.info-1, I know that gcc demand 2.95.4 or
later,that mean, I should upgrade the
thanks again!

Do You Yahoo!? 

Reply to: