$ gcc -v Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs Configured with: ./configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared Thread model: posix gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
$ ./configure --prefix=[DEST] --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=f95 --with-mpfr=[PATH] --with-gmp=[PATH] Configure works fine. So libmpfr and libmpfr are founded. After this I tried to make. I changed real path to MYPATH in log(see below) $ gmake [.... skiped....] gmake[1]: Leaving directory `($MYPATH)/gcc/gcc' Checking multilib configuration... multilib.out is unchanged gmake[1]: Entering directory `($MYPATH)/gcc/sparc-sun-solaris2.10/libgfortran' gmake all-am gmake[2]: Entering directory `($MYPATH)/gcc/sparc-sun-solaris2.10/libgfortran' /bin/sh ./libtool --mode=compile ($MYPATH)/gcc/gcc/gfortran -B($MYPATH)/gcc/gcc/ -B($DEST)/sparc-sun-solaris2.10/bin/ -B($DEST)/sparc-sun-solaris2.10/lib/ -isystem ($DEST)/sparc-sun-solaris2.10/include -isystem ($DEST)/sparc-sun-solaris2.10/sys-include -Wall -fno-repack-arrays -fno-underscoring -c -o selected_int_kind.lo `test -f 'intrinsics/selected_int_kind.f90' || echo '($SOURCE)/gcc-4.0.0/libgfortran/'`intrinsics/selected_int_kind.f90 ($MYPATH)/gcc/gcc/gfortran -B($MYPATH)/gcc/gcc/ -B($DEST)/sparc-sun-solaris2.10/bin/ -B($DEST)/sparc-sun-solaris2.10/lib/ -isystem ($DEST)/sparc-sun-solaris2.10/include -isystem ($DEST)/sparc-sun-solaris2.10/sys-include -Wall -fno-repack-arrays -fno-underscoring -c ($SOURCE)/gcc-4.0.0/libgfortran/intrinsics/selected_int_kind.f90 -fPIC -DPIC -o .libs/selected_int_kind.o ld.so.1: ($MYPATH)/gcc/gcc/f951: fatal: libgmp.so.3: open failed: No such file or directory gfortran: Internal error: Killed (program f951) Please submit a full bug report. See <URL:http://gcc.gnu.org/bugs.html> for instructions. gmake[2]: *** [selected_int_kind.lo] Error 1 gmake[2]: Leaving directory `($MYPATH)/gcc/sparc-sun-solaris2.10/libgfortran' gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory `($MYPATH)/gcc/sparc-sun-solaris2.10/libgfortran' gmake: *** [all-target-libgfortran] Error 2 THE SAME PROBLEM I HAD ON i386-pc-solaris2.10, i386-pc-solaris2.9. I think it's a common problem for all solaris platforms. -- Summary: Enable to build libfortran library Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libfortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: antonvys at mail dot ru CC: antonvys at mail dot ru,gcc-bugs at gcc dot gnu dot org GCC build triplet: sparc-sun-solaris2.10 GCC host triplet: sparc-sun-solaris2.10 GCC target triplet: sparc-sun-solaris2.10 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21547