<div dir="ltr"><div dir="ltr">On Tue, Jan 25, 2022 at 5:05 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>
<div style="overflow-wrap: break-word;">
<div>The blue word in the last Email is part of the configure.log file, this time I put the whole file in the attachment.</div>
<div>I actually tried to install it via brew, but it still failed. And I could follow Pflotran's installation tutorial on my old computer before, but I don't know why it doesn't work now.</div></div></div></blockquote><div><br></div><div>CMake does not like your Clang compiler, Can you specify it explicitly using --with-cc=<compiler></div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div><br></div><div>                          =============================================================================================<br>                                Running configure on CMAKE; this may take several minutes<br>                          =============================================================================================<br>                        <br>Executing: ./configure --prefix=/Users/von/petsc/arch-darwin-c-opt --parallel=8 -- -DCMAKE_USE_OPENSSL=OFF<br>stdout:<br>---------------------------------------------<br>CMake 3.20.1, Copyright 2000-2021 Kitware, Inc. and Contributors<br>Found Clang toolchain<br>---------------------------------------------<br>Error when bootstrapping CMake:<br>Cannot find appropriate C compiler on this system.<br>Please specify one using environment variable CC.<br>See cmake_bootstrap.log for compilers attempted.<br>---------------------------------------------<br>Log of errors: /Users/von/petsc/arch-darwin-c-opt/externalpackages/cmake-3.20.1/Bootstrap.cmk/cmake_bootstrap.log<br>---------------------------------------------<br></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><div style="overflow-wrap: break-word;"><div>
<blockquote type="cite">
<div>2022年1月25日 16:57,Stefano Zampini <<a href="mailto:stefano.zampini@gmail.com" target="_blank">stefano.zampini@gmail.com</a>> 写道:</div>
<br>
<div>
<div style="overflow-wrap: break-word;"><font color="red"><b>This e-mail originated from outside the UMass Lowell network.</b></font></div>
</div>
</blockquote>
<blockquote type="cite">
<div>
<div style="overflow-wrap: break-word;">
<hr>
You should attach configure.log if you want us to take a look at the failure. In any case, you should use gmake that you can install via brew<br>
<div><br>
<blockquote type="cite">
<div>On Jan 26, 2022, at 12:53 AM, Peng, Kang <<a href="mailto:Kang_Peng@uml.edu" target="_blank">Kang_Peng@uml.edu</a>> wrote:</div>
<br>
<div>
<div style="overflow-wrap: break-word;"><span style="font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:14px">Hi PETSc,</span>
<div style="font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:14px">
<br>
</div>
<div style="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="font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:14px">
<br>
</div>
<div style="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="font-size:14px"><a href="https://urldefense.com/v3/__https://www.pflotran.org/documentation/user_guide/how_to/installation/linux.html*linux-install__;Iw!!PVKG_VDCxu5g!6y-kcFG7ScjxFIz3MDNNqeQcRa_acHzAh8K-XeflKjdgncNiRv0NQc_1Bg3urZphgg$" target="_blank">https://www.pflotran.org/documentation/user_guide/how_to/installation/linux.html#linux-install</a></span></font></div>
<div><font face="Roboto, RobotoDraft, Helvetica, Arial, sans-serif"><span style="font-size:14px"><br>
</span></font></div>
<div style="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="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="font-size:14px">Kang</span></font></div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</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>