大家好,最近要做一个在ARM上用到gmp库的东西,所以要交叉编译gmp.有一个网站上找到了编译方法。可是我编译的时候老是报错,当我:
./configure CC="/opt/arm/usr/bin/arm-linux-gcc" CPP="/opt/arm/usr/bin/arm-linux-gcc -E" 报错如下:
[root@localhost gmp-4.3.2]# ./configure CC="/opt/arm/usr/bin/arm-linux-gcc"
CPP="/opt/arm/usr/bin/arm-linux-gcc -E"
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=32
checking whether /opt/arm/usr/bin/arm-linux-gcc is gcc... yes
checking compiler /opt/arm/usr/bin/arm-linux-gcc -m32 -O2 -pedantic
-fomit-frame-pointer ... no
checking compiler /opt/arm/usr/bin/arm-linux-gcc -O2 -pedantic
-fomit-frame-pointer ... no, program does not run
configure: error: could not find a working compiler, see config.log for
details
[root@localhost gmp-4.3.2]#
求大家指点一下吧!