<div dir="ltr"><div>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</div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">--Junchao Zhang</div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 11, 2024 at 4:10 PM Daniel Pino Munoz <<a href="mailto:daniel.pino_munoz@mines-paristech.fr">daniel.pino_munoz@mines-paristech.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear all,<br>
<br>
I am currently trying to compile my code but the compilation fails with <br>
the following error:<br>
<br>
error "PETSc was configured with OpenMPI but now appears to be compiling <br>
using a non-OpenMPI mpi.h<br>
<br>
I have obviously checked and I am compiling my sources using the same <br>
compiler used to compile Petsc. To check this, I  looked into the <br>
configure.log file generated by petsc and verified that the compiler <br>
listed was indeed the one currently been used to compile my sources.<br>
<br>
Does anyone have any idea of where the problem might be coming from?<br>
<br>
Thank you,<br>
<br>
   D.<br>
<br>
</blockquote></div>