[petsc-users] Error when configuring the PETSC environment

Peng, Kang Kang_Peng at uml.edu
Tue Jan 25 16:04:20 CST 2022


The blue word in the last Email is part of the configure.log file, this time I put the whole file in the attachment.
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.

2022年1月25日 16:57,Stefano Zampini <stefano.zampini at gmail.com<mailto:stefano.zampini at gmail.com>> 写道:

This e-mail originated from outside the UMass Lowell network.
________________________________
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

On Jan 26, 2022, at 12:53 AM, Peng, Kang <Kang_Peng at uml.edu<mailto:Kang_Peng at uml.edu>> wrote:

Hi PETSc,

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?

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.
https://www.pflotran.org/documentation/user_guide/how_to/installation/linux.html#linux-install<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$>

Error is as follows:
von at 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"
=============================================================================================
                      Configuring PETSc to compile on your system
=============================================================================================
=============================================================================================                                                                                 ***** 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                                                                                                         =============================================================================================                                                                                                   *******************************************************************************
         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):
-------------------------------------------------------------------------------
Error running configure on CMAKE
*******************************************************************************

*******************************************************************************
         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):
-------------------------------------------------------------------------------
Error running configure on CMAKE
*******************************************************************************
  File "/Users/von/petsc/config/configure.py", line 465, in petsc_configure
    framework.configure(out = sys.stdout)
  File "/Users/von/petsc/config/BuildSystem/config/framework.py", line 1385, in configure
    self.processChildren()
  File "/Users/von/petsc/config/BuildSystem/config/framework.py", line 1373, in processChildren
    self.serialEvaluation(self.childGraph)
  File "/Users/von/petsc/config/BuildSystem/config/framework.py", line 1348, in serialEvaluation
    child.configure()
  File "/Users/von/petsc/config/BuildSystem/config/packages/cmake.py", line 75, in configure
    config.package.GNUPackage.configure(self)
  File "/Users/von/petsc/config/BuildSystem/config/package.py", line 1189, in configure
    self.executeTest(self.configureLibrary)
  File "/Users/von/petsc/config/BuildSystem/config/base.py", line 138, in executeTest
    ret = test(*args,**kargs)
  File "/Users/von/petsc/config/BuildSystem/config/package.py", line 935, in configureLibrary
    for location, directory, lib, incl in self.generateGuesses():
  File "/Users/von/petsc/config/BuildSystem/config/package.py", line 509, in generateGuesses
    d = self.checkDownload()
  File "/Users/von/petsc/config/BuildSystem/config/package.py", line 643, in checkDownload
    return self.getInstallDir()
  File "/Users/von/petsc/config/BuildSystem/config/package.py", line 405, in getInstallDir
    installDir = self.Install()
  File "/Users/von/petsc/config/BuildSystem/config/packages/cmake.py", line 47, in Install
    retdir = config.package.GNUPackage.Install(self)
  File "/Users/von/petsc/config/BuildSystem/config/package.py", line 1733, in Install
    raise RuntimeError('Error running configure on ' + self.PACKAGE)
================================================================================
Finishing configure run at Tue, 25 Jan 2022 16:21:58 -0500
================================================================================

Thanks,
Kang


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220125/d64b6afa/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: application/octet-stream
Size: 992259 bytes
Desc: configure.log
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220125/d64b6afa/attachment-0001.obj>


More information about the petsc-users mailing list