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

Malladi, Rama Kishan V rama.kishan.v.malladi at intel.com
Mon Nov 13 07:50:09 PST 2017


Typically MPI_INC is the path to the location where the header “mpi.h” is available. So, try setting MPI_INC to /usr/include/mpich

From: CIG-SEISMO [mailto:cig-seismo-bounces at geodynamics.org] On Behalf Of Emanuel Kaestle
Sent: Monday, November 13, 2017 9:10 PM
To: cig-seismo at geodynamics.org
Subject: [CIG-SEISMO] compilation error (configure: error: MPI header not found; try setting MPI_INC)


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/56ae5836/attachment.html>


More information about the CIG-SEISMO mailing list