Short story, gmp4.2.2 builds fine (including make test), mpfr-2.3.0 builds
fine. Gcc-4.3.0 seems to fails to configure:
checking for correct version of mpfr.h... no
Both gmp and mpfr were build with xcode. Many more details below:
# gcc -v
Using built-in specs.
Target: powerpc-apple-darwin9
gcc version 4.0.1 (Apple Inc. build 5465)
# uname -a
Darwin aleut.geology.ucdavis.edu 9.2.0 Darwin Kernel Version 9.2.0: Tue Feb 5
16:15:19 PST 2008; root:xnu-1228.3.13~1/RELEASE_PPC Power Macintosh
gmp-4.2.2 root# ./configure --prefix=/opt/pkg/gmp-4.2.2
gmp-4.2.2 root# make
gmp-4.2.2 root# make check
...
===================
All 56 tests passed
===================
===================
All 11 tests passed
===================
===================
All 26 tests passed
===================
==================
All 7 tests passed
==================
==================
All 3 tests passed
==================
(I might have missed some)
gmp-4.2.2 root# make install
mpfr-2.3.0 root# ./configure --prefix=/opt/pkg/mpfr-2.3.0
--with-gmp=/opt/pkg/gmp-4.2.2/ --with-gmp-build=/opt/src/gmp-4.2.2/
mpfr-2.3.0 root# make
mpfr-2.3.0 root# make install
gcc-4.3.0 root# ./configure --prefix=/opt/pkg/gcc-4.3.0
--with-gmp=/opt/pkg/gmp-4.2.2 --with-mpfr=/opt/pkg/mpfr-2.3.0/
checking build system type... powerpc-apple-darwin9.2.0
checking host system type... powerpc-apple-darwin9.2.0
checking target system type... powerpc-apple-darwin9.2.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
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+.
Try the --with-gmp and/or --with-mpfr options to specify their locations.
Copies of these libraries' source code can be found at their respective
hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
See also http://gcc.gnu.org/install/prerequisites.html for additional info.
If you obtained GMP and/or MPFR from a vendor distribution package, make
sure that you have installed both the libraries and the header files.
They may be located in separate packages.
gcc-4.3.0 root# ls -al /opt/pkg/mpfr-2.3.0/
total 0
drwxr-xr-x 5 root admin 170 Mar 13 15:11 .
drwxr-xr-x 4 root admin 136 Mar 13 15:11 ..
drwxr-xr-x 4 root admin 136 Mar 14 11:42 include
drwxr-xr-x 7 root admin 238 Mar 14 11:42 lib
drwxr-xr-x 3 root admin 102 Mar 13 15:11 share
gcc-4.3.0 root# ls -al /opt/pkg/mpfr-2.3.0/include
total 96
drwxr-xr-x 4 root admin 136 Mar 14 11:42 .
drwxr-xr-x 5 root admin 170 Mar 13 15:11 ..
-rw-r--r--@ 1 root admin 6113 Mar 14 11:42 mpf2mpfr.h
-rw-r--r--@ 1 root admin 37375 Mar 14 11:42 mpfr.h
gcc-4.3.0 root#
Any ideas? I also tried install mpfr-2.3.1 and changing the gcc's configure
--with-mpfr=/opt/pkg/mpfr-2.3.1/
Same thing.