In ~/dcs directory: GMP: 1) ftp ftp.gmplib.org/pub/gmp-x.x.x/gmp-x.x.x.tar.gz 2) a) gunzip gmp-x.x.x.tar.gz b) tar xf gmp-x.x.x.tar 3) cd gmp-x.x.x 4) ./configure --prefix=/home/atf2code/atf2/usr_local 5) gmake 6) gmake install MPFR: 0) Note: Important to link mpfr against version of gmp you are using. 1) wget www.mpfr.org/mpfr-current/mpfr-2.4.1.tar.gz 2) unzip 3) cd mpfr-x.x.x 4) ./configure --prefix=/home/atf2code/atf2/usr_local --with-gmp=/home/atf2code/atf2/usr_local 5) gmake 6) gmake install GCC: 1) ftp ftp.gnu.org/gnu/gcc/gcc-x.x.x/gcc-x.x.x.tar.gz 2) gunzip and tar xf 3) mkdir gcc_tmp 4) cd gcc_tmp 5) ../gcc-4.4.1/configure --prefix=/home/atf2code/atf2/usr_local --with-gmp=/home/atf2code/atf2/usr_local --with-mpfr=/home/atf2code/atf2/usr_local 6) gmake 7) gmake install ----------------------------------------------------------- $ sudo port install mpfr $ ./configure --with-mfpr-include=/opt/local/include --with-mpfr-lib=/opt/local/lib readline: Same as above. M.tail: add: FFLAGS -fbacktrace -Bstatic remove: LFLAGS -static add: SYS_LIB_DIRS ... ---------------------------------------------------------------------- Libraries have been installed in: /home/atf2code/atf2/usr_local/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. Possibilities for gmp problem: --disable-multilib --enable-languages=c,c++,java,fortran for overflow problem: Somethig equivalent to -fno-eh-cleanup-section