<div dir="ltr">Ok, nothing to see here ... This was user error. I had MPI_ROOT set to a different MPI install than that corresponding to the mpi in my PATH.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 28, 2022 at 2:13 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</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">I think moose is bound now to a petsc-3.16.5+ snapshot<br>
<br>
>>>>>><br>
-- Could NOT find MPI_C (missing: MPI_C_HEADER_DIR) (found version "4.0")<br>
-- Found MPI_CXX: /home/lindad/mpich/installed/lib/libmpicxx.so (found version "4.0")<br>
-- Found MPI_Fortran: /home/lindad/mpich/installed/lib/libmpifort.so (found version "3.1")<br>
-- Configuring incomplete, errors occurred!<br>
<<<<<br>
<br>
This is strange.  libmpifort is a different version than libmpicxx.so ?<br>
<br>
If specifying these additional options (manually) get a functional superlu_dist build - you can also specify them to petsc configure via<br>
<br>
--download-superlu_dist-cmake-arguments=string<br>
<br>
[but yeah - good to know if this issue persists with petsc/main]<br>
<br>
Satish<br>
<br>
<br>
On Mon, 28 Mar 2022, Barry Smith wrote:<br>
<br>
> <br>
>   Could you please try with the main branch of PETSc? <br>
> <br>
>   We've seen similar problems that have at least partially been dealt with in the main branch.<br>
> <br>
>    Barry<br>
> <br>
> <br>
> <br>
> > On Mar 28, 2022, at 4:42 PM, Alexander Lindsay <<a href="mailto:alexlindsay239@gmail.com" target="_blank">alexlindsay239@gmail.com</a>> wrote:<br>
> > <br>
> > Attached is my configure.log. Error is:<br>
> > <br>
> >  Could NOT find MPI_C (missing: MPI_C_HEADER_DIR) (found version "4.0")<br>
> > <br>
> > What's interesting is that cmake does successfully find MPI_CXX and MPI_Fortran albeit in a place I'd rather it not find it (a gcc mpi build located at $HOME/mpich/installed/lib whereas mpicc -show yields what it should at $HOME/mpich/installed-clang/lib).<br>
> > <br>
> > My same configure line worked well with PETSc 3.15.x. I noticed that these arguments are empty:<br>
> > <br>
> > -DMPI_C_INCLUDE_PATH:STRING="" -DMPI_C_HEADER_DIR:STRING="" -DMPI_C_LIBRARIES:STRING=""<br>
> > <br>
> > If I fill those with the correct values and manually cmake superlu_dist, then configure is successful<br>
> > <configure.log><br>
> <br>
<br>
</blockquote></div>