[CIG-SEISMO] compilation error (configure: error: MPI header not found; try setting MPI_INC)

Emanuel Kaestle emanuel.kaestle at upmc.fr
Mon Nov 13 07:39:31 PST 2017


Hi there,

I am having some touble compiling SPECFEM3D. Execution of the configure 
script returns me the following error

/## --- ##
## MPI ##
## --- ##
checking mpi.h usability... no
checking mpi.h presence... no
checking for mpi.h... no
configure: error: MPI header not found; try setting MPI_INC./

I start it with the command /./configure FC=gfortran MPIFC=mpif90/

Changing it to /./configure FC=gfortran MPIFC=mpif90 
MPI_INC='/usr/include/mpich/mpi.h'/ doesn't change anything. It returns 
the same error.

The mpi.h header should be present, at least I can find it with the 
/find/ command:

//usr/src/linux-headers-4.8.0-53/include/linux/mpi.h//
///usr/src/linux-headers-4.10.0-28/include/linux/mpi.h//
///usr/include/mpich/mpi.h/

The small script from the manual (program main / include 'mpif.h' / 
....) runs without problems if I compile it with mpif90 (not with gfortran).

What is the correct way to set MPI_INC?

Thanks for your help!

Emanuel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/cig-seismo/attachments/20171113/2002a394/attachment.html>


More information about the CIG-SEISMO mailing list