I was trying to bulid ISSM on Linux (not Ubuntu) by myself following the steps provided at: https://issm.jpl.nasa.gov/download/unix/.
I directly module load autotools (autotools/20170329), mpich (openmpi/4.0.1), cmake (cmake/3.0.0), and petsc (petsc/3.9.4) instead of installing them by myself. The other two (m1qn3 & triangle) are installed using ISSM external packages, as they are unavailable in my working environment. I didn't install all the external packages as I am worried I will mess up the environment.
However, I have the following issue during the make step:
/apps/petsc/3.9.4/include/petscsys.h:165:6: error: #error "PETSc was configured with one OpenMPI mpi.h version but now appears to be compiling using a different OpenMPI mpi.h version"
make[3]: *** [modules/Bamgx/libISSMCore_la-Bamgx.lo] Error 1
make[3]: Leaving directory /g/data1a/fp2/jw6120/ISSM/trunk/src/c'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
/g/data1a/fp2/jw6120/ISSM/trunk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/g/data1a/fp2/jw6120/ISSM/trunk'
make: *** [all] Error 2
I would appreciate any help, thank you!