Compiling Mvapich2-2.0b

I am trying to compile mvapich2-2.0b on CentOS 6.4 with PGI compilers 14.6 with a simple ./configure. These are the pertinent messages for the errors I am receiving:

checking for size of Fortran type integer… configure: WARNING: Unable to compile the C routine for finding the size of a integer

checking for size of Fortran type real… configure: WARNING: Unable to compile the C routine for finding the size of a real

checking for size of Fortran type double precision… configure: WARNING: Unable to compile the C routine for finding the size of a double precision

checking whether integer1 is supported… yes
checking whether integer
2 is supported… yes
checking whether integer4 is supported… yes
checking whether integer
8 is supported… yes
checking whether integer16 is supported… yes
checking whether real
4 is supported… yes
checking whether real8 is supported… yes
checking whether real
16 is supported… yes
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

I’ve tried setting the suggested variable to 4 and 8, to no avail. Please help.

Thanks,

Mark

Hi Mark,

Try setting this before you run ./configure: CPP=cpp

I have had some issues where the PGI preprocessor did not behave correctly with ./configure detecting certain things like data sizes correctly.

Hope this helps,

+chris

I had the same problem, but the fix worked for me.