<div dir="ltr">Yes, send the configure log.<div><br></div><div>It seems that you did not build the C++ bindings for MPICH. You can shut of C++ in PETSc using</div><div><br></div><div>  --with-cxx=0</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Jun 9, 2025 at 5:42 AM Jose E. Roman via petsc-dev <<a href="mailto:petsc-dev@mcs.anl.gov">petsc-dev@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">You should always attach the configure.log file.<br>
<br>
Thanks.<br>
Jose<br>
<br>
<br>
> El 9 jun 2025, a las 11:14, David Jiawei LUO LIANG <<a href="mailto:12431140@mail.sustech.edu.cn" target="_blank">12431140@mail.sustech.edu.cn</a>> escribió:<br>
> <br>
> ./configure --with-x=0 -with-pic --with-make-np=4 --with-mpi-compilers=1 --with-mpi-dir=/Users/lawkawai/lib/mpich-4.2.3-opt/ --with-scalar-type=real --with-precision=double --with-mumps=1 --download-mumps --with-scalapack=1 --download-scalapack --with-blacs=1 --download-blacs --download-fblaslapack --download-metis --download-hdf5 --with-debugging=no --download-slepc --prefix=/Users/lawkawai/lib/petsc-3.23.3-opt<br>
> the error:<br>
> =============================================================================================<br>
>                          Configuring PETSc to compile on your system<br>
> =============================================================================================<br>
> =============================================================================================<br>
>                                      ***** WARNING *****<br>
>   Found environment variable: FFLAGS=-w -fallow-argument-mismatch -O2. Ignoring it! Use<br>
>   "./configure FFLAGS=$FFLAGS" if you really want to use this value<br>
> =============================================================================================<br>
> =============================================================================================<br>
>                                      ***** WARNING *****<br>
>   Using default C optimization flags "-g -O3". You might consider manually setting optimal<br>
>   optimization flags for your system with COPTFLAGS="optimization flags" see<br>
>   config/examples/arch-*-opt.py for examples<br>
> =============================================================================================<br>
> =============================================================================================<br>
>                                      ***** WARNING *****<br>
>   Using default Cxx optimization flags "-g -O3". You might consider manually setting<br>
>   optimal optimization flags for your system with CXXOPTFLAGS="optimization flags" see<br>
>   config/examples/arch-*-opt.py for examples<br>
> =============================================================================================<br>
> =============================================================================================<br>
>                                      ***** WARNING *****<br>
>   Using default FC optimization flags "-g -O". You might consider manually setting optimal<br>
>   optimization flags for your system with FOPTFLAGS="optimization flags" see<br>
>   config/examples/arch-*-opt.py for examples<br>
> =============================================================================================<br>
> =============================================================================================<br>
>                                      ***** WARNING *****<br>
>   You have a version of GNU make older than 4.0. It will work, but may not support all the<br>
>   parallel testing options. You can install the latest GNU make with your package manager,<br>
>   such as Brew or MacPorts, or use the --download-make option to get the latest GNU make<br>
> =============================================================================================<br>
> TESTING: CxxMPICheck from config.packages.MPI(config/BuildSystem/config/packages/MPI.py:673)<br>
> *********************************************************************************************<br>
>            UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):<br>
> ---------------------------------------------------------------------------------------------<br>
>                        C++ error! MPI_Finalize() could not be located!<br>
> *********************************************************************************************<br>
> <br>
> <br>
> Iam sure my mpich is good, it has been tested.  But the petsc configure still fail. <br>
> <br>
> David Jiawei LUO LIANG南方科技大学/学生/研究生/2024广东省深圳市南山区学苑大道1088号<br>
>  <br>
<br>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!fKKJCjEC8oiQMoqTM7lEB44Tq2mqDYkX6njATmEWaJgNYfoUjx6m9itWTssO0HWX_FdNsuMbPvBnqU4oSjKY$" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div>