[petsc-users] Error when configuring the PETSC environment

Peng, Kang Kang_Peng at uml.edu
Tue Jan 25 15:43:21 CST 2022


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

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/cfdfb5ff/attachment-0001.html>


More information about the petsc-users mailing list