When I tried to compile gcc-4.2.1 on Linux to creat the gfortran compiler, it was failed.
../../Workshop/gfortran/gcc-4.2.1/configure --prefix=/home/yucj/installs/gfortran4.2.1 --enable-languages=fortran --with-gmp=/home/yucj/installs/gmp4.2.1 --with-mpfr=/home/yucj/installs/mpfr2.2.1 The error messages are as follows, ... updating cache ./config.cache configure: loading cache ./config.cache checking for i686-pc-linux-gnu-gfortran... /home/yucj/installs/gfortran4.2.1/./gcc/gfortran -B/home/yucj/installs/gfortran4.2.1/./gcc/ -B/home/yucj/installs/gfortran4.2.1/i686-pc-linux-gnu/bin/ -B/home/yucj/installs/gfortran4.2.1/i686-pc-linux-gnu/lib/ -isystem /home/yucj/installs/gfortran4.2.1/i686-pc-linux-gnu/include -isystem /home/yucj/installs/gfortran4.2.1/i686-pc-linux-gnu/sys-include checking whether we are using the GNU Fortran compiler... no checking whether /home/yucj/installs/gfortran4.2.1/./gcc/gfortran -B/home/yucj/installs/gfortran4.2.1/./gcc/ -B/home/yucj/installs/gfortran4.2.1/i686-pc-linux-gnu/bin/ -B/home/yucj/installs/gfortran4.2.1/i686-pc-linux-gnu/lib/ -isystem /home/yucj/installs/gfortran4.2.1/i686-pc-linux-gnu/include -isystem /home/yucj/installs/gfortran4.2.1/i686-pc-linux-gnu/sys-include accepts -g... no checking whether the GNU Fortran compiler is working... no configure: error: GNU Fortran is not working; the most common reason for that is that you might have linked it to shared GMP and/or MPFR libraries, and not set LD_LIBRARY_PATH accordingly. If you suspect any other reason, please report a bug in http://gcc.gnu.org/bugzilla, attaching /home/yucj/installs/gfortran4.2.1/i686-pc-linux-gnu/libgfortran/config.log make[1]: *** [configure-target-libgfortran] Error 1 make[1]: Leaving directory `/home/yucj/installs/gfortran4.2.1' make: *** [all] Error 2 -- Summary: gfortran compiling and LD_LIBRARY_PATH Product: gcc Version: 4.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: yucj at ghi dot rwth-aachen dot de GCC host triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33058