Configuring PETSc 3.21.X on MacOS Sequoia 15.4.X

50 views
Skip to first unread message

Hammond, Glenn E

unread,
May 1, 2025, 11:44:33 PM5/1/25
to pflotran-users

For those of you having difficulty configuring PETSc 3.21.X on MacOS Sequoia 15.4.X, the following configure arguments work for me:

 

/usr/bin/python3 ./config/configure.py --PETSC_ARCH=gnu-c-opt \

--COPTFLAGS='-O3' --CXXOPTFLAGS='-O3' \

--FOPTFLAGS='-O3 -Wno-unused-function -fallow-argument-mismatch' \

--with-clanguage=c --with-shared-libraries=no --with-debugging=no \

--download-hdf5=yes \

--download-hdf5-fortran-bindings=yes \

--download-parmetis=yes \

--download-metis=yes \

--download-hypre \

--download-fblaslapack=yes \

--download-cmake \

--download-make \

--download-cmake-cc=clang --download-cmake-cxx=clang++ --download-cmake=https://gitlab.kitware.com/cmake/cmake/-/archive/v3.31.7/cmake-v3.31.7.tar.gz

 

Be sure to remove the old directory for your PETSC_ARCH:

 

cd $PETSC_DIR

rm -Rf $PETSC_ARCH

 

This issue may only apply to ARM chips. Note that there is no need to include “hypre”.

 

We hope to upgrade to PETSc 3.23.X soon, and that will provide a long-term solution.

 

Glenn

Seunghwan Baek

unread,
May 28, 2025, 9:30:48 PM5/28/25
to pflotran-users
Dear. Glenn, 

I went into the similar issue. I followed your guide above and could not resolve the issue. It gave warnings and errors when it checks the installation at the end. 

Please refer to the attached. Can you help?

fyi, I am using M3 (ARM-based) and OS - Sonoma 14.7.6.  

Thanks!
log

Hammond, Glenn E

unread,
May 29, 2025, 11:19:18 AM5/29/25
to pflotra...@googlegroups.com

Seunghwan,

 

I never perform ‘make check’ with PETSc or build the PETSc example problems. It is possible that these failures occur with my installation. My metric for success is whether PFLOTRAN builds. What errors do you receive when you build PFLOTRAN?

 

Glenn

 

From: pflotra...@googlegroups.com <pflotra...@googlegroups.com> on behalf of Seunghwan Baek <godlo...@gmail.com>
Date: Wednesday, May 28, 2025 at 6:31
PM
To: pflotran-users <pflotra...@googlegroups.com>
Subject: [pflotran-users: 8408] Re: Configuring PETSc 3.21.X on MacOS Sequoia 15.4.X

Check twice before you click! This email originated from outside PNNL.

 

--
You received this message because you are subscribed to the Google Groups "pflotran-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pflotran-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pflotran-users/b50a7004-d46f-47ce-8c5e-2f920d813083n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages