# Mpich2 compiling: error in mpi\_base.f90

**URL:** <https://forum.cmascenter.org/t/mpich2-compiling-error-in-mpi-base-f90/3740>\
**Category:** Compiling\
**Tags:** cmaq\
**Created:** [November 27, 2022, 8:47am UTC](https://forum.cmascenter.org/t/mpich2-compiling-error-in-mpi-base-f90/3740 "2022-11-27T08:47:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bluebulu108](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@bluebulu108](https://forum.cmascenter.org/u/bluebulu108)\
**Post date:** [November 27, 2022, 8:47am UTC](https://forum.cmascenter.org/t/mpich2-compiling-error-in-mpi-base-f90/3740/1 "2022-11-27T08:47:38Z")

</div>

Dear all,  
I am installing mpich2-1.2.1p1.  
I successfully configured using `./configure --disable-fortran --prefix=$DIR/LIBRARIES/mpich` .

However, after I executed “make”, I encountered problems(see m.txt):

```auto
ifort -O2 -I. -c ./mpi_base.f90
  CC create_f90_int.c
  CC create_f90_real.c
  CC typef90cmplxf.c
  CC create_f90_complex.c
  CC typef90realf.c
  CC create_f90_util.c
  CC typef90intf.c
  F90 mpi.f90
  F90 mpi_constants.f90
  F90 mpi_sizeofs.f90
  F90 mpi_base.f90
./mpi_base.f90(28): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MPI_CONSTANTS]
       USE MPI_CONSTANTS,ONLY:MPI_STATUS_SIZE
-----------^
./mpi_base.f90(29): error #6406: Conflicting attributes or multiple declaration of name. [MPI_STATUS_SIZE]
       INTEGER v0, v1, v2, v3(MPI_STATUS_SIZE)
------------------------------^
./mpi_base.f90(29): error #6223: A specification expression is invalid. [MPI_STATUS_SIZE]
       INTEGER v0, v1, v2, v3(MPI_STATUS_SIZE)
------------------------------^
./mpi_base.f90(28): error #6580: Name in only-list does not exist. [MPI_STATUS_SIZE]
       USE MPI_CONSTANTS,ONLY:MPI_STATUS_SIZE
------------------------------^
./mpi_base.f90(39): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MPI_CONSTANTS]
       USE MPI_CONSTANTS,ONLY:MPI_STATUS_SIZE
-----------^
./mpi_base.f90(40): error #6406: Conflicting attributes or multiple declaration of name. [MPI_STATUS_SIZE]
       INTEGER v0, v1(MPI_STATUS_SIZE)
----------------------^
./mpi_base.f90(40): error #6223: A specification expression is invalid. [MPI_STATUS_SIZE]
       INTEGER v0, v1(MPI_STATUS_SIZE)
----------------------^
./mpi_base.f90(39): error #6580: Name in only-list does not exist. [MPI_STATUS_SIZE]
       USE MPI_CONSTANTS,ONLY:MPI_STATUS_SIZE
------------------------------^
./mpi_base.f90(45): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MPI_CONSTANTS]
       USE MPI_CONSTANTS,ONLY:MPI_STATUS_SIZE
-----------^
./mpi_base.f90(48): error #6406: Conflicting attributes or multiple declaration of name. [MPI_STATUS_SIZE]
       INTEGER v2(MPI_STATUS_SIZE)
------------------^
./mpi_base.f90(48): error #6223: A specification expression is invalid. [MPI_STATUS_SIZE]
       INTEGER v2(MPI_STATUS_SIZE)
------------------^
./mpi_base.f90(45): error #6580: Name in only-list does not exist. [MPI_STATUS_SIZE]
       USE MPI_CONSTANTS,ONLY:MPI_STATUS_SIZE
------------------------------^
./mpi_base.f90(58): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MPI_CONSTANTS]
       USE MPI_CONSTANTS,ONLY:MPI_STATUS_SIZE
-----------^
./mpi_base.f90(61): error #6406: Conflicting attributes or multiple declaration of name. [MPI_STATUS_SIZE]
       INTEGER v4(MPI_STATUS_SIZE)
------------------^
./mpi_base.f90(61): error #6223: A specification expression is invalid. [MPI_STATUS_SIZE]
       INTEGER v4(MPI_STATUS_SIZE)
------------------^
./mpi_base.f90(58): error #6580: Name in only-list does not exist. [MPI_STATUS_SIZE]
       USE MPI_CONSTANTS,ONLY:MPI_STATUS_SIZE
------------------------------^
./mpi_base.f90(105): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MPI_CONSTANTS]
          USE MPI_CONSTANTS,ONLY: MPI_ADDRESS_KIND
--------------^
./mpi_base.f90(107): error #6683: A kind type parameter must be a compile-time constant. [MPI_ADDRESS_KIND]
          INTEGER (KIND=MPI_ADDRESS_KIND) c, d
------------------------^
./mpi_base.f90(105): error #6580: Name in only-list does not exist. [MPI_ADDRESS_KIND]
          USE MPI_CONSTANTS,ONLY: MPI_ADDRESS_KIND
----------------------------------^
./mpi_base.f90(111): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MPI_CONSTANTS]
          USE MPI_CONSTANTS,ONLY: MPI_ADDRESS_KIND
--------------^
./mpi_base.f90(113): error #6683: A kind type parameter must be a compile-time constant. [MPI_ADDRESS_KIND]
          INTEGER (KIND=MPI_ADDRESS_KIND) c,d,e
------------------------^
./mpi_base.f90(111): error #6580: Name in only-list does not exist. [MPI_ADDRESS_KIND]
          USE MPI_CONSTANTS,ONLY: MPI_ADDRESS_KIND
----------------------------------^
./mpi_base.f90(118): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MPI_CONSTANTS]
          USE MPI_CONSTANTS,ONLY: MPI_ADDRESS_KIND
--------------^
./mpi_base.f90(120): error #6683: A kind type parameter must be a compile-time constant. [MPI_ADDRESS_KIND]
          INTEGER (KIND=MPI_ADDRESS_KIND) c,d,e
------------------------^
./mpi_base.f90(118): error #6580: Name in only-list does not exist. [MPI_ADDRESS_KIND]
          USE MPI_CONSTANTS,ONLY: MPI_ADDRESS_KIND
----------------------------------^
./mpi_base.f90(125): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MPI_CONSTANTS]
          USE MPI_CONSTANTS,ONLY: MPI_ADDRESS_KIND
--------------^
./mpi_base.f90(127): error #6683: A kind type parameter must be a compile-time constant. [MPI_ADDRESS_KIND]
          INTEGER (KIND=MPI_ADDRESS_KIND) c, d
------------------------^
./mpi_base.f90(125): error #6580: Name in only-list does not exist. [MPI_ADDRESS_KIND]
          USE MPI_CONSTANTS,ONLY: MPI_ADDRESS_KIND
----------------------------------^
./mpi_base.f90(131): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MPI_CONSTANTS]
          USE MPI_CONSTANTS,ONLY: MPI_ADDRESS_KIND
--------------^
./mpi_base.f90(133): error #6683: A kind type parameter must be a compile-time constant. [MPI_ADDRESS_KIND]
          INTEGER (KIND=MPI_ADDRESS_KIND) c,d,e
------------------------^
(166): catastrophic error: Too many errors, exiting
compilation aborted for ./mpi_base.f90 (code 1)
mpi.f90(5): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MPI_CONSTANTS]
       USE MPI_CONSTANTS
-----------^
mpi.f90(6): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MPI_SIZEOFS]
       USE MPI_SIZEOFS
-----------^
mpi.f90(7): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MPI_BASE]
       USE MPI_BASE
-----------^
ifort -O2 -I. -c ./mpi_constants.f90
compilation aborted for mpi.f90 (code 1)
ifort -O2 -I. -c mpi_sizeofs.f90
make[3]: *** [mpi.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/disk2/public/usr_local/LIBRARIES/mpich2-1.2.1p1/src/binding/f90'
make[2]: *** [all-redirect] Error 1
make[2]: Leaving directory `/disk2/public/usr_local/LIBRARIES/mpich2-1.2.1p1/src/binding'
make[1]: *** [all-redirect] Error 2
make[1]: Leaving directory `/disk2/public/usr_local/LIBRARIES/mpich2-1.2.1p1/src'
make: *** [all-redirect] Error 2

```

other information:

1. Linux 3.10.0-1062.el7.x86\_64 #1 SMP x86\_64 x86\_64 x86\_64 GNU/Linux
2. I have successfully installed zlib-1.2.3, hdf5-1.10.4, jasper-1.701.0, libpng-1.2.12 and netcdf-3.6.3 in folder netcdf.
3. the compiler is intel-11.1.072 (icc and ifort)

```auto
export CC=icc
export CXX=icpc
export FC=ifort
export CFLAGS=-m64
export F77=ifort
export FFLAGS=-m64
export F90=ifort

```

1. gcc version 4.4.7 (GCC)

[m.txt](https://forum.cmascenter.org/uploads/short-url/1TeiLNMn34S1YNKlYRdOMLwmsEc.txt) (143.2 KB)

I would appreciate it if you would take the time out of your busy schedule to check out my posts and give suggestions.  
Best regards,  
Janice

---

<div class="post-metadata">

**Author:** ![bluebulu108](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@bluebulu108](https://forum.cmascenter.org/u/bluebulu108)\
**Post date:** [November 29, 2022, 1:34am UTC](https://forum.cmascenter.org/t/mpich2-compiling-error-in-mpi-base-f90/3740/2 "2022-11-29T01:34:00Z")

</div>

I re-compile it, the problem is solved.
