<div dir="ltr"><div dir="ltr">On Tue, Jan 25, 2022 at 4:59 PM Peng, Kang <<a href="mailto:Kang_Peng@uml.edu">Kang_Peng@uml.edu</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 style="overflow-wrap: break-word;">
<span style="color:rgba(0,0,0,0.87);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:14px">Hi PETSc,</span>
<div style="color:rgba(0,0,0,0.87);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:14px">
<br>
</div>
<div style="color:rgba(0,0,0,0.87);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:14px">
I am trying to configure the PETSC environment in MacOS (Apple M1 pro chip, macOS 12.1), but something went wrong when I executing those command below. I tried many methods but failed to solve it. Could you help me to solve it? </div>
<div style="color:rgba(0,0,0,0.87);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:14px">
<br>
</div>
<div style="color:rgba(0,0,0,0.87);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:14px">
I’ve been following this instruction to install PETSc and configure the environment, but I can’t do it after changing to the new chip.</div>
<div><font face="Roboto, RobotoDraft, Helvetica, Arial, sans-serif"><span style="color:rgba(0,0,0,0.87);font-size:14px"><a href="https://www.pflotran.org/documentation/user_guide/how_to/installation/linux.html#linux-install" target="_blank">https://www.pflotran.org/documentation/user_guide/how_to/installation/linux.html#linux-install</a></span></font></div></div></blockquote><div><br></div><div>With any configure failure, you must send us configure.log, or we are just guessing what went wrong.</div><div><br></div><div>Below it looks like there is a problem with the CMake build. It might be that they have a bug for the M1.</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 style="overflow-wrap: break-word;">
<div style="color:rgba(0,0,0,0.87);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:14px">
Error is as follows:</div>
<div>
<div style="font-family:Menlo;font-size:11px;margin:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><font color="#669c35">von@MacBook-Pro-VON petsc % ./configure --CFLAGS='-O3' --CXXFLAGS='-O3' --FFLAGS='-O3' --with-debugging=no --download-mpich=yes --download-hdf5=yes --download-fblaslapack=yes
 --download-cmake=yes --download-metis=yes --download-parmetis=yes --download-hdf5-fortran-bindings=yes --download-hdf5-configure-arguments="--with-zlib=yes"</font></span></div>
<div style="font-family:Menlo;font-size:11px;margin:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><font color="#ff2600">=============================================================================================</font></span></div>
<div style="font-family:Menlo;font-size:11px;margin:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><font color="#ff2600">                      Configuring PETSc to compile on your system                            </font></span></div>
<div style="font-family:Menlo;font-size:11px;margin:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><font color="#ff2600">=============================================================================================</font></span></div>
<div style="font-family:Menlo;font-size:11px;margin:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><font color="#ff2600">=============================================================================================                                                                  
               ***** WARNING: You have a version of GNU make older than 4.0. It will work,                                                                                             but may not support all the parallel testing options. You can install the
                                                                                               latest GNU make with your package manager, such as brew or macports, or use                                                                                      
       the --download-make option to get the latest GNU make *****                                                                                                       =============================================================================================
                                                                           =============================================================================================                                                                                 Running
 configure on CMAKE; this may take several minutes                                                                                                         =============================================================================================        
                                                                                           *******************************************************************************</font></span></div>
<div style="font-family:Menlo;font-size:11px;margin:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><font color="#ff2600">         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):</font></span></div>
<div style="font-family:Menlo;font-size:11px;margin:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><font color="#ff2600">-------------------------------------------------------------------------------</font></span></div>
<div style="font-family:Menlo;font-size:11px;margin:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><font color="#ff2600">Error running configure on CMAKE</font></span></div>
<div style="font-family:Menlo;font-size:11px;margin:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><font color="#ff2600">*******************************************************************************</font></span></div>
<div style="font-family:Menlo;font-size:11px;color:rgb(38,38,38);margin:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255);min-height:13px">
 </div>
<div style="margin:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255);min-height:13px">
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">*******************************************************************************</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">-------------------------------------------------------------------------------</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">Error running configure on CMAKE</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">*******************************************************************************</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">  File "/Users/von/petsc/config/configure.py", line 465, in petsc_configure</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">    framework.configure(out = sys.stdout)</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">  File "/Users/von/petsc/config/BuildSystem/config/framework.py", line 1385, in configure</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">    self.processChildren()</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">  File "/Users/von/petsc/config/BuildSystem/config/framework.py", line 1373, in processChildren</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">    self.serialEvaluation(self.childGraph)</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">  File "/Users/von/petsc/config/BuildSystem/config/framework.py", line 1348, in serialEvaluation</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">    child.configure()</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">  File "/Users/von/petsc/config/BuildSystem/config/packages/cmake.py", line 75, in configure</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">    config.package.GNUPackage.configure(self)</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">  File "/Users/von/petsc/config/BuildSystem/config/package.py", line 1189, in configure</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">    self.executeTest(self.configureLibrary)</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">  File "/Users/von/petsc/config/BuildSystem/config/base.py", line 138, in executeTest</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">    ret = test(*args,**kargs)</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">  File "/Users/von/petsc/config/BuildSystem/config/package.py", line 935, in configureLibrary</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">    for location, directory, lib, incl in self.generateGuesses():</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">  File "/Users/von/petsc/config/BuildSystem/config/package.py", line 509, in generateGuesses</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">    d = self.checkDownload()</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">  File "/Users/von/petsc/config/BuildSystem/config/package.py", line 643, in checkDownload</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">    return self.getInstallDir()</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">  File "/Users/von/petsc/config/BuildSystem/config/package.py", line 405, in getInstallDir</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">    installDir = self.Install()</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">  File "/Users/von/petsc/config/BuildSystem/config/packages/cmake.py", line 47, in Install</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">    retdir = config.package.GNUPackage.Install(self)</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">  File "/Users/von/petsc/config/BuildSystem/config/package.py", line 1733, in Install</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">    raise RuntimeError('Error running configure on ' + self.PACKAGE)</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">================================================================================</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">Finishing configure run at Tue, 25 Jan 2022 16:21:58 -0500</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Menlo" color="#2700f4"><span style="font-size:11px">================================================================================</span></font></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<br>
</div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<span style="color:rgba(0,0,0,0.87);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:14px">Thanks,</span></div>
<div style="margin:0px;font-stretch:normal;line-height:normal;min-height:13px">
<font face="Roboto, RobotoDraft, Helvetica, Arial, sans-serif"><span style="color:rgba(0,0,0,0.87);font-size:14px">Kang</span></font></div>
</div>
</div>
</div>

</blockquote></div><br clear="all"><div><br></div>-- <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>