Hello, everyone:
   After I upgrade gcc from 4.4.7 to 5.2.0 under oracle linux 6.7, the system can't pass config mpich 3.1.4 when I run:
./configure -prefix=/usr/local/share/mpich-3.1.4/ |& tee c.txt

below is error message:
configure: error: Unable to configure with Fortran support because configure could not determine the size of a Fortran INTEGER.  Consider setting CROSS_F77_SIZEOF_INTEGER to the length in bytes of a Fortran INTEGER

When I use gcc 4.4.7, there's no error to make mpich 3.1.4.

and below is the process how to upgrade gcc:
wget ftp://ftp.gnu.org/gnu/gcc/gcc-5.2.0/gcc-5.2.0.tar.bz2
tar -jxvf gcc-5.2.0.tar.bz2
cd gcc-5.2.0
./contrib/download_prerequisites
cd ..
mkdir /usr/local/share/gcc-5.2.0
./gcc-5.2.0/configure --prefix=/usr/local/share/gcc-5.2.0/ --disable-multilib --enable-languages=c,c++,objc,obj-c++,java,fortran
make -j4
sudo make install