Hi there:
I am trying to get ISSM compiled on a new MacBook Pro with an Apple M1 Pro chip. However, I'm running into issues right off the bat. I am running macOS Monterey (Version 12.1).
When trying to install autotools packages using the install-mac.sh script, I can successfully install m4, autoconf, and automake. However, I get a "Version mismatch error" when Libtool is attempted:
libtool: Version mismatch error. This is libtool 2.4.2, revision 1.3337,
libtool: but the definition of this LT_INIT comes from revision .
libtool: You should recreate aclocal.m4 with macros from revision 1.3337
libtool: of libtool 2.4.2 and run autoconf again.
make[2]: *** [libltdl/loaders/libltdl_libltdl_la-preopen.lo] Error 63
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I tried running "autoreconf --force --install", but all things continued to point toward LT_INIT. I dug a little deeper and found "LT_INIT([dlopen win32-dll])" in the configure.ac file in autotools/src. By changing this line to simply "LT_INIT" (i.e., removing the ([dlopen win32-dll])), I was able to get libtool to install. However I am not sure that this is the correct solution.
Continuing on, I was able to successfully install cmake, but ran into issues with petsc (specifically HDF5). Reviewing the configure.log file, I found this error:
configure:7935: /Users/lbir0005/ISSM/trunk/externalpackages/petsc/install/bin/mpif90 -o conftest -I. -fallow-argument-mismatch -g -O -fallow-argument-mismatch conftest.f90 -Wl,-rpath,/Users/lbir0005/ISSM/trunk/externalpackages/petsc/install/lib -L/Users/lbir0005/ISSM/trunk/externalpackages/petsc/install/lib -lz >&5
configure:7935: $? = 0
configure:7935: ./conftest
configure:7935: $? = 0
configure:7996: result: Error
configure:7998: error: No output from Fortran test program!
I checked my gfortran install and am able to compile a simple fortran program with gfortran outside of the ISSM install. I'd be curious to hear if others are compiling ISSM on the new M1 chips and if anybody is having similar issues!
Thanks for any advice here.
Lawrence