Zitat von Sampath Koppole <sampathkoppole@xxxxxxxxx>:
Dear all,
When I try to build my gcc (version 4.2.2) it does not
build gfortran.
In the past The GNU Ada Project created Fortran just for the fun of it
- but we have given up on it - not because we don't like Fortran or
compiling Fortran is troublesome.
No it's because of GMP and MPFR. Fortran now needs those two libraries
to be installed. And those two are a real pain in the arse. If your
distribution hasn't got them I pity you.
Here an except from my latest Solaris compile:
----------------------------------------------------------
configure:23091: checking for __gmpz_init in -lgmp
configure:23121: /opt/gnat/gcc/bin/gcc -o conftest -Wall
-Wmissing-prototypes -g -O2 -I/opt/gnat/gcc/include
-L/opt/gnat/gcc/lib -L/opt/gnat/gcc/lib
-Wl,--library-path=/opt/gnat/gcc/lib
-Wl,--library-path=/usr/openwin/sfw/lib
-Wl,-rpath-link=/usr/openwin/sfw/lib
-Wl,--library-path=/usr/local/ssl/lib
-Wl,-rpath-link=/usr/local/ssl/lib -Wl,-rpath-link=/opt/gnat/gcc/lib
-Wl,--library-path=/opt/gnat/tools/lib
-Wl,-rpath-link=/opt/gnat/tools/lib conftest.c -lgmp >&5
/opt/gnat/gcc/bin/ld: skipping incompatible
/opt/gnat/gcc/lib/libgmp.so when searching for -lgmp
/opt/gnat/gcc/bin/ld: skipping incompatible
/opt/gnat/gcc/lib/libgmp.so when searching for -lgmp
/opt/gnat/gcc/bin/ld: skipping incompatible
/opt/gnat/gcc/lib/gcc/sparc-sun-solaris2.10/4.2.2/../../../libgmp.so
when searching for -lgmp
/opt/gnat/gcc/bin/ld: skipping incompatible
/opt/gnat/gcc/lib/libgmp.so when searching for -lgmp
/opt/gnat/gcc/bin/ld: skipping incompatible
/opt/gnat/gcc/lib/libgmp.so when searching for -lgmp
/opt/gnat/gcc/bin/ld: cannot find -lgmp
----------------------------------------------------------
And even if you manage to compile them both the trouble does not end.
No guarantee that GCC will like the freshly compiled libs. Not
dynamic, not at the right place - the list of problems is endless. I
regret the time I wasted on it.
In the past Ada was the most difficult language (self hosted - you
need a working Ada compiler to create the Ada compiler) - but now it's
Fortran with it's insistence on GMP and MPFR.
Martin