Check they are the same MPI wrappers(if you use them), for example with "which mpicc" or "make V=1" to compare the exact executable path
--Junchao Zhang On Fri, Oct 11, 2024 at 4:10 PM Daniel Pino Munoz < daniel.pino_mu...@mines-paristech.fr> wrote: > Dear all, > > I am currently trying to compile my code but the compilation fails with > the following error: > > error "PETSc was configured with OpenMPI but now appears to be compiling > using a non-OpenMPI mpi.h > > I have obviously checked and I am compiling my sources using the same > compiler used to compile Petsc. To check this, I looked into the > configure.log file generated by petsc and verified that the compiler > listed was indeed the one currently been used to compile my sources. > > Does anyone have any idea of where the problem might be coming from? > > Thank you, > > D. > >