I built gmp-4.2.2:
./configure --prefix=/opt/pkg/gmp-4.2.2
make
make install
And mpfr-2.3.1:
./configure --prefix=/opt/pkg/mpfr-2.3.1 --with-gmp=/opt/pkg/gmp-4.2.2/
--with-gmp-build=/opt/src/gmp-4.2.2/
make
make install
Oh the compiler I'm trying to install 4.3.0 (as well as gmp and mpfr) with:
Target: powerpc-apple-darwin9
gcc version 4.0.1 (Apple Inc. build 5465)
Then gcc:
./configure --prefix=/opt/pkg/gcc-4.3.0 --with-gmp=/opt/pkg/gmp-4.2.2
--with-mpfr=/opt/pkg/mpfr-2.3.1
And get:
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
gcc-4.3.0 root# ls -al /opt/pkg/mpfr-2.3.1/include/mpfr.h
-rw-r--r-- 1 root admin 37381 Mar 18 11:53
/opt/pkg/mpfr-2.3.1/include/mpfr.h
config.log has additional info:
configure:4573: gcc -o conftest -g -O2 -I/opt/pkg/gmp-4.2.2/include
-I/opt/pkg/mpfr-2.3.1/include conftest.c -L/opt/pkg/gmp-
4.2.2/lib -L/opt/pkg/mpfr-2.3.1/lib -lmpfr -lgmp >&5
ld: warning in /opt/pkg/mpfr-2.3.1/lib/libmpfr.dylib, file is not of required
architecture
ld: warning in /opt/pkg/gmp-4.2.2/lib/libgmp.dylib, file is not of required
architecture
I searched the bug database and found some mention of an unintentional --target
being supplied to gmp/mpfr, presumably it's the wrong --target. I didn't
however find a fix, nor was I sure it was exactly the same problem.
The closest bug I found was #35250
../configure --prefix=/usr/local/gcc-4.3.2 --with-gmp=/opt/pkg/gmp-4.2 --with-mpfr=/opt/pkg/mpfr-2.3.2 --enable-threads=posix --disable-checking --enable--long-long --host=i386-redhat-linux --with-system-zlib --enable-languages=c,c++,java
阅读(3052) | 评论(0) | 转发(0) |