<div dir="ltr">Pretty sure it's cmake. Seems like a similar issue here: <a href="https://gitlab.kitware.com/cmake/cmake/-/issues/21723">https://gitlab.kitware.com/cmake/cmake/-/issues/21723</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 28, 2022 at 2:44 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">Glad you were able to figure this out.<br>
<br>
So having an incompatible MPI_ROOT env variable set can break builds [breaks cmake or mpif90?]<br>
<br>
Satish<br>
<br>
On Mon, 28 Mar 2022, Alexander Lindsay wrote:<br>
<br>
> Ok, nothing to see here ... This was user error. I had MPI_ROOT set to a<br>
> different MPI install than that corresponding to the mpi in my PATH.<br>
> <br>
> On Mon, Mar 28, 2022 at 2:13 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>> wrote:<br>
> <br>
> > 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<br>
> > version "4.0")<br>
> > -- Found MPI_Fortran: /home/lindad/mpich/installed/lib/libmpifort.so<br>
> > (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<br>
> > 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<br>
> > with in the main branch.<br>
> > ><br>
> > >    Barry<br>
> > ><br>
> > ><br>
> > ><br>
> > > > On Mar 28, 2022, at 4:42 PM, Alexander Lindsay <<br>
> > <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<br>
> > MPI_Fortran albeit in a place I'd rather it not find it (a gcc mpi build<br>
> > located at $HOME/mpich/installed/lib whereas mpicc -show yields what it<br>
> > should at $HOME/mpich/installed-clang/lib).<br>
> > > ><br>
> > > > My same configure line worked well with PETSc 3.15.x. I noticed that<br>
> > these arguments are empty:<br>
> > > ><br>
> > > > -DMPI_C_INCLUDE_PATH:STRING="" -DMPI_C_HEADER_DIR:STRING=""<br>
> > -DMPI_C_LIBRARIES:STRING=""<br>
> > > ><br>
> > > > If I fill those with the correct values and manually cmake<br>
> > superlu_dist, then configure is successful<br>
> > > > <configure.log><br>
> > ><br>
> ><br>
> ><br>
> <br>
<br>
</blockquote></div>