justinquinn That script solved my problem with Petsc/MPICH, thanks. I've gotten to the point of trying to compile ISSM, however I have encountered another error. The output I got when I tried to use make ended with these lines:
ld: file not found: @rpath/libquadmath.0.dylib for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [libISSMApi.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
There were also a lot of warnings prior to that, but I'm not sure whether or not they're related to the error. Here's a few examples of the type of warnings I saw a lot of in the output:
*** Warning: Linking the shared library libISSMCore.la against the
*** static library /Users/clairec/trunk/externalpackages/m1qn3/install/libddot.a is not portable!
ld: warning: could not create compact unwind for what0: stack subq instruction is too different from dwarf stack size
ld: warning: dylib (/Users/clairec/trunk/externalpackages/petsc/install/lib/libparmetis.dylib) was built for newer macOS version (12.7) than being linked (12.0)
ld: warning: dylib (/Users/clairec/trunk/externalpackages/petsc/install/lib/libscalapack.dylib) was built for newer macOS version (12.7) than being linked (12.0)
ld: warning: dylib (/Users/clairec/trunk/externalpackages/petsc/install/lib/libmetis.dylib) was built for newer macOS version (12.7) than being linked (12.0)
ld: warning: dylib (/usr/local/gfortran/lib/libgfortran.dylib) was built for newer macOS version (12.3) than being linked (12.0)
ld: warning: dylib (/usr/local/gfortran/lib/libquadmath.dylib) was built for newer macOS version (12.3) than being linked (12.0)
I've also attached the full output I got from running make.
This attempt was still using the copy of ISSM I got through SVN, but I'll try starting over from the version on github, in case that might resolve some issues. In the meantime though, I'd appreciate any suggestions for what might be causing this last error.
Thanks,
Claire