<div dir="ltr"><div dir="ltr">On Wed, Oct 18, 2023 at 6:07 AM Gong Yujie <<a href="mailto:yc17470@connect.um.edu.mo">yc17470@connect.um.edu.mo</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg855247063410871249">
<div dir="ltr">
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Dear PETSc developers,</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I got an error message when installing PETSc with a clang compiler. Could you please help me find the problem? The configure.log is attached.</div></div></div></blockquote><div><br></div><div>Your compiler segfaulted when compiling OpenMPI:</div><div><br></div><div>Making all in mca/crs<br>make[2]: Entering directory '/home/tt/petsc-3.16.0/optamd/externalpackages/openmpi-4.1.0/opal/mca/crs'<br> GENERATE opal_crs.7<br> CC base/crs_base_open.lo<br> CC base/crs_base_close.lo<br> CC base/crs_base_select.lo<br> CC base/crs_base_fns.lo<br>make[2]: Leaving directory '/home/tt/petsc-3.16.0/optamd/externalpackages/openmpi-4.1.0/opal/mca/crs'<br>make[1]: Leaving directory '/home/tt/petsc-3.16.0/optamd/externalpackages/openmpi-4.1.0/opal'/bin/sh: line 7: 6327 Illegal instruction (core dumped) ../../../config/<a href="http://make_manpage.pl">make_manpage.pl</a> --package-name='Open MPI' --package-version='4.1.0' --ompi-date='Dec 18, 2020' --opal-date='Dec 18, 2020' --orte-date='Dec 18, 2020' --input=opal_crs.7in --output=opal_crs.7<br>make[2]: *** [Makefile:2215: opal_crs.7] Error 132<br>make[2]: *** Waiting for unfinished jobs....<br>make[1]: *** [Makefile:2383: all-recursive] Error 1<br>make: *** [Makefile:1901: all-recursive] Error 1<br></div><div><br></div><div>I suggest compiling MPICH instead.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg855247063410871249"><div dir="ltr">
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Best Regards,
<div>Yujie</div>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Here is the detail of the error:</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
=============================================================================================
<div> Configuring PETSc to compile on your system</div>
<div>=============================================================================================</div>
<div>=============================================================================================
</div>
<div>***** WARNING: Using default optimization C flags -g -O3</div>
<div>You might consider manually setting optimal optimization flags for your system with </div>
<div>COPTFLAGS="optimization flags" see config/examples/arch-*-opt.py for examples </div>
<div>============================================================================================= =============================================================================================
</div>
<div>***** WARNING: Using default Cxx optimization flags -g -O3 </div>
<div>You might consider manually setting optimal optimization flags for your system with </div>
<div>CXXOPTFLAGS="optimization flags" see config/examples/arch-*-opt.py for examples </div>
<div>============================================================================================= =============================================================================================
</div>
<div>***** WARNING: Using default FORTRAN optimization flags -O </div>
<div>You might consider manually setting optimal optimization flags for your system with </div>
<div>FOPTFLAGS="optimization flags" see config/examples/arch-*-opt.py for examples </div>
<div>============================================================================================= =============================================================================================
</div>
<div>Trying to download <a href="https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-4.1.0.tar.gz" target="_blank">https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-4.1.0.tar.gz</a> for </div>
<div>============================================================================================= =============================================================================================
</div>
<div>Running configure on OPENMPI; this may take several minutes </div>
<div>============================================================================================= =============================================================================================
</div>
<div>Running make on OPENMPI; this may take several minutes </div>
<div>============================================================================================= </div>
<div>*******************************************************************************</div>
<div> UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):</div>
<div>-------------------------------------------------------------------------------</div>
<div>Error running make; make install on OPENMPI</div>
*******************************************************************************<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
</div>
</div></blockquote></div><br clear="all"><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="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>