[petsc-users] Compilation error

Daniel Pino Munoz daniel.pino_munoz at mines-paristech.fr
Fri Oct 11 17:13:59 CDT 2024


I did that too, and I am using the same compiler.

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...

Thanks anyway,

   D.

On 12/10/2024 00:04, Junchao Zhang wrote:
> 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_munoz at 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20241012/b2fa2630/attachment-0001.html>


More information about the petsc-users mailing list