<div dir="ltr"><div>Attached is my configure.log. Error is:</div><div><br></div><div> Could NOT find MPI_C (missing: MPI_C_HEADER_DIR) (found version "4.0")</div><div><br></div><div>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></div><div><br></div><div>My same configure line worked well with PETSc 3.15.x. I noticed that these arguments are empty:</div><div><br></div><div>-DMPI_C_INCLUDE_PATH:STRING="" -DMPI_C_HEADER_DIR:STRING="" -DMPI_C_LIBRARIES:STRING=""</div><div><br></div><div>If I fill those with the correct values and manually cmake superlu_dist, then configure is successful<br></div></div>