OpenSolaris is available free from: http://opensolaris.org/
I am building gcc-4.2.1 release from: ftp://ftp.gnu.org/gnu/gcc/gcc-4.2.1/gcc-4.2.1.tar.bz2 When building gcc on Solaris operating systems it is required (by Sun) that you use "--prefix=...", "--with-gmp=...", "--with-mpfr=...", (and --with-ld=/usr/ccs/bin/ld, --enable-shared, --disable-static, --enable-threads=solaris, --enable-multilib) in order to compile gcc correctly and, when installing, to avoid overwriting the system compiler and libraries. Overwriting the system compiler and libraries is not a supported configuration (of the Operating System). I used --with-mpfr=/opt/gnu/mpfr-2.3.1 so I could use my own copy of mpfr but while building gcc the build broke here (in gcc/fortran stage 1): ... build/genchecksum cc1plus-dummy > cc1plus-checksum.c gcc -c -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I/aux0/gcc-4.2.1/gcc -I/aux0/gcc-4.2.1/gcc/. -I/aux0/gcc-4.2.1/gcc/../include -I./../intl -I/aux0/gcc-4.2.1/gcc/../libcpp/include -I/aux0/gcc-4.2.1/gcc/../libdecnumber -I../libdecnumber cc1plus-checksum.c -o cc1plus-checksum.o gcc -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -o cc1plus \ cp/cp-lang.o stub-objc.o cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parser.o cp/ptree.o cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o cp/cp-objcp-common.o cp/name-lookup.o cp/cxx-pretty-print.o cp/cp-gimplify.o tree-mudflap.o attribs.o c-common.o c-format.o c-pragma.o c-semantics.o c-lex.o c-dump.o sol2-c.o c-pretty-print.o c-opts.o c-pch.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-gimplify.o c-omp.o tree-inline.o cc1plus-checksum.o main.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a ./../intl/libintl.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a gcc -c -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -Ifortran -I/aux0/gcc-4.2.1/gcc -I/aux0/gcc-4.2.1/gcc/fortran -I/aux0/gcc-4.2.1/gcc/../include -I./../intl -I/aux0/gcc-4.2.1/gcc/../libcpp/include -I/aux0/gcc-4.2.1/gcc/../libdecnumber -I../libdecnumber /aux0/gcc-4.2.1/gcc/fortran/arith.c -o fortran/arith.o In file included from /aux0/gcc-4.2.1/gcc/fortran/arith.c:31: /aux0/gcc-4.2.1/gcc/fortran/gfortran.h:1229:18: error: mpfr.h: No such file or directory In file included from /aux0/gcc-4.2.1/gcc/fortran/arith.c:31: /aux0/gcc-4.2.1/gcc/fortran/gfortran.h:1263: error: syntax error before 'mpfr_t' /aux0/gcc-4.2.1/gcc/fortran/gfortran.h:1263: warning: no semicolon at end of struct or union /aux0/gcc-4.2.1/gcc/fortran/gfortran.h:1263: warning: no semicolon at end of struct or union /aux0/gcc-4.2.1/gcc/fortran/gfortran.h:1267: error: syntax error before 'mpfr_t' ... My mpfr.h file is present in directory /opt/gnu/mpfr-2.3.1/include but the ' gcc -o fortran/arith.o ... ' command does not "-I" that directory. -- Summary: gcc-4.2.1 build breaks in fortran when using --with- mpfr= Product: gcc Version: 4.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rob1weld at aol dot com GCC build triplet: i386-pc-solaris2.11 GCC host triplet: i386-pc-solaris2.11 GCC target triplet: i386-pc-solaris2.11 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37013