[petsc-users] Error when configuring the PETSC environment

Matthew Knepley knepley at gmail.com
Tue Jan 25 18:07:03 CST 2022


On Tue, Jan 25, 2022 at 5:05 PM Peng, Kang <Kang_Peng at uml.edu> wrote:

> 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.
>

CMake does not like your Clang compiler, Can you specify it explicitly
using --with-cc=<compiler>

  Thanks,

     Matt


=============================================================================================
                                Running configure on CMAKE; this may take
several minutes

=============================================================================================

Executing: ./configure --prefix=/Users/von/petsc/arch-darwin-c-opt
--parallel=8 -- -DCMAKE_USE_OPENSSL=OFF
stdout:
---------------------------------------------
CMake 3.20.1, Copyright 2000-2021 Kitware, Inc. and Contributors
Found Clang toolchain
---------------------------------------------
Error when bootstrapping CMake:
Cannot find appropriate C compiler on this system.
Please specify one using environment variable CC.
See cmake_bootstrap.log for compilers attempted.
---------------------------------------------
Log of errors:
/Users/von/petsc/arch-darwin-c-opt/externalpackages/cmake-3.20.1/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------


> 2022年1月25日 16:57,Stefano Zampini <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> 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
>
>
>
>

-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220125/61f75d28/attachment.html>


More information about the petsc-users mailing list