我试图在32位Ubuntu和config.log上安装gcc-4.9.2,它说: 建立GCC需要GMP 4.2 +,MPFR 2.4.0+和MPC 0.8.0+ 所以我下载了mpfr-3.1.2,而INSTALL文件说我需要GMP 4.1或更高版本。 然后我下载了gmp-6.0.0并运行了./configure - config.log在几个地方说: ./a.out无法执行二进制文件:exec格式错误。 我注意到-m64开关和-mx32开关
configure:5625: checking compiler gcc -O2 -pedantic -fomit-frame-pointer -m64
Test compile:
configure:5639: gcc -O2 -pedantic -fomit-frame-pointer -m64 conftest.c >&5
configure:5642: $? = 0
configure:5647: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
./configure: line 5648: ./a.out: cannot execute binary file: Exec format error
...
failed program was:
int main () { return 0; }
configure:6665: result: no, program does not run
configure:5546: cc -c conftest.c >&5
configure:5549: $? = 0
configure:5552: checking whether cc is gcc
configure:5554: result: yes
configure:5568: cc 2>&1 | grep xlc >/dev/null
configure:5571: $? = 1
configure:5625: checking compiler cc -O2 -pedantic -fomit-frame-pointer -m64
Test compile:
configure:5639: cc -O2 -pedantic -fomit-frame-pointer -m64 conftest.c >&5
configure:5642: $? = 0
configure:5647: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
./configure: line 5648: ./a.out: cannot execute binary file: Exec format error
./configure: line 5648: ./b.out: No such file or directory
./configure: line 5648: ./a.exe: No such file or directory
./configure: line 5648: ./a_out.exe: No such file or directory
./configure: line 5648: ./conftest: No such file or directory
configure:5650: $? = 127
failed program was:
int main () { return 0; }
configure:6665: result: no, program does not run
configure:5568: gcc 2>&1 | grep xlc >/dev/null
configure:5571: $? = 1
configure:5625: checking compiler gcc -O2 -pedantic -fomit-frame-pointer -mx32
我想知道是否需要告诉./configure脚本我有一台32位计算机。