microsoft / Microsoft-MPI

Microsoft MPI
MIT License
244 stars 74 forks source link

mpi.f90 module uses non-conformant integer representation leading to error with gfortran #33

Open letmaik opened 4 years ago

letmaik commented 4 years ago

Same as #14, but for mpi.f90:

$ gfortran -c -I$MINGW_PREFIX/include "$MSMPI_INC/mpi.f90"
C:\Program Files (x86)\Microsoft SDKs\MPI\Include\/mpi.f90:404:32:

  404 |        PARAMETER (MPI_FLOAT_INT=z'8c000000')
      |                                1
Error: Arithmetic overflow converting INTEGER(16) to INTEGER(4) at (1). This check can be disabled with the option '-fno-range-check'
C:\Program Files (x86)\Microsoft SDKs\MPI\Include\/mpi.f90:406:33:

  406 |        PARAMETER (MPI_DOUBLE_INT=z'8c000001')
      |                                 1
Error: Arithmetic overflow converting INTEGER(16) to INTEGER(4) at (1). This check can be disabled with the option '-fno-range-check'
C:\Program Files (x86)\Microsoft SDKs\MPI\Include\/mpi.f90:408:31:

  408 |        PARAMETER (MPI_LONG_INT=z'8c000002')
      |                               1
Error: Arithmetic overflow converting INTEGER(16) to INTEGER(4) at (1). This check can be disabled with the option '-fno-range-check'
C:\Program Files (x86)\Microsoft SDKs\MPI\Include\/mpi.f90:410:32:

  410 |        PARAMETER (MPI_SHORT_INT=z'8c000003')
      |                                1
Error: Arithmetic overflow converting INTEGER(16) to INTEGER(4) at (1). This check can be disabled with the option '-fno-range-check'
C:\Program Files (x86)\Microsoft SDKs\MPI\Include\/mpi.f90:412:38:

  412 |        PARAMETER (MPI_LONG_DOUBLE_INT=z'8c000004')
      |                                      1
Error: Arithmetic overflow converting INTEGER(16) to INTEGER(4) at (1). This check can be disabled with the option '-fno-range-check'