<div dir="ltr"><div>Perhaps you need to attach your configure.log</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 5:14 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"><u></u>
<div>
<p>I did that too, and I am using the same compiler. <br>
</p>
<p>In fact I also checked the compilation of my code by setting
VERBOSE=1 and looking at the compilation command. It is indeed the
same compiler... It's pretty odd...</p>
<p>Thanks anyway,</p>
<p> D.<br>
</p>
<div>On 12/10/2024 00:04, Junchao Zhang
wrote:<br>
</div>
<blockquote type="cite">
<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">
<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" target="_blank">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>
</blockquote>
</div>
</blockquote></div>