Building MPICH1 with GNU Fortran

Since MPICH1 does not work with GNU Fortran out-of-the-box, the following modifications must be made to the configure/make steps in order for it to work properly:

export FC="gfortran "
export F77_GETARGDECL=" "
export CC="gcc -O2 "
export CXX="g++ -O2 "
export F90="gfortran "
./configure -prefix=$MPICH_DIR/bin/lnx32e/mpich-gnu --with-device=ch_shmem
For more complete information about compiler optimizations, see our Optimization Notice.