Hi @mathieumorlighem and @justinquinn, I am running into a similar problem to @clairewcook's first problem related to MPICH. I am installing ISSM from source via the ISSM github on MacOS (Sonoma 14.7.2), but having issues with the petsc install script. I am using the ISSM/externalpackages/petsc/install-3.22-mac.sh script and it fails on the make call for MPICH. Here is the relevant stdout from the script:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
The version of PETSc you are using is out-of-date, we recommend updating to the new release
Available Version: 3.22.2 Installed Version: 3.22.0
https://petsc.org/release/download/
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
=============================================================================================
Configuring PETSc to compile on your system
=============================================================================================
=============================================================================================
***** WARNING *****
Found environment variable: LDFLAGS= -Wl,-ld_classic -Wl,-commons,use_dylibs. Ignoring
it, since it's also set on command line
=============================================================================================
=============================================================================================
***** WARNING *****
Using default C optimization flags "-g -O3". You might consider manually setting optimal
optimization flags for your system with COPTFLAGS="optimization flags" see
config/examples/arch-*-opt.py for examples
=============================================================================================
=============================================================================================
***** WARNING *****
Using default Cxx optimization flags "-g -O3". You might consider manually setting
optimal optimization flags for your system with CXXOPTFLAGS="optimization flags" see
config/examples/arch-*-opt.py for examples
=============================================================================================
=============================================================================================
***** WARNING *****
Using default FC optimization flags "-g -O". You might consider manually setting optimal
optimization flags for your system with FOPTFLAGS="optimization flags" see
config/examples/arch-*-opt.py for examples
=============================================================================================
=============================================================================================
***** 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
=============================================================================================
=============================================================================================
Trying to download
https://github.com/pmodels/mpich/releases/download/v4.2.3rc1/mpich-4.2.3rc1.tar.gz for
MPICH
=============================================================================================
=============================================================================================
Running configure on MPICH; this may take several minutes
=============================================================================================
=============================================================================================
Running make on MPICH; this may take several minutes
=============================================================================================
*********************************************************************************************
UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
---------------------------------------------------------------------------------------------
Error running make; make install on MPICH
*********************************************************************************************
I also looked at configure.log but it is quite long (80,000 lines) with a lot of error and critical error messages. Can you help me look into this?