------- Comment #18 from prlw1 at cam dot ac dot uk 2006-05-20 16:24 ------- I have just experienced exactly the same error on a NetBSD-current/i386 system. There the problem is not gmp et al.'s fault, and I can't see quite enough detail in the problem on alpha below to see that it isn't the same.
My system uses ELF binaries, and I don't set half the world in LD_LIBRARY_PATH nor ld.so.conf. I have libmpfr.so.2.1 and libgmp.so.7.1 in /usr/local/lib. The error /usr/src/local/gcc/libgfortran/mk-kinds-h.sh: Unknown type happens because gfortran was compiled without -Wl,-R/usr/local/lib, so it cannot find libmpr. The top level configure accepts --with-mpfr=/usr/local --with-gmp=/usr/local, and doesn't spot any problems, as it AC_TRY_LINKs the libraries rather than AC_TRY_RUN them. gcc/configure --help mentions GMPLIBS How to link GMP but setting that environment variable (or HOST_GMPLIBS) before running the top level configure doesn't seem to help, as --with-gmp sets gmplibs, which in top level Makefile.in sets HOST_GMPLIBS, which in turn is what GMPLIBS is set to, which is what reaches gcc/Makefile.in (AFAICT) The way I worked around this is after running configure --with-gmp..., edit the top level Makefile, and set HOST_GMPLIBS to include -Wl,-R/usr/local/lib. There ought to be a more user friendly way of doing this, so I think this bug ought to be reopened... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26564