justinquinn
HI Justin I tried both: your version installing the latest version for Silicon from your link and installing with brew (where I read it should be more up to date?). I always adjust the gfortran library to the path I then used (brew or not) in the configure.sh
also for the brew version I tried with the eval home-brew command and the export library path.
In Both ways I get the error message that it can't link gfortran with the executable.
ld: warning: could not create compact unwind for _zupmtr_: registers 27 and 28 not saved contiguously in frame
ld: can't link with a main executable file '/opt/homebrew/bin/gfortran' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [issm.exe] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I also noticed that I get fortran warning messages when running the installation for the package m1nq.
patching file 'src/src/m1qn3.f'
gfortran -arch x86_64 -fPIC -c m1qn3.f -o m1qn3.o
gfortran: warning: this compiler does not support x86 ('-arch' option ignored)
m1qn3.f:1358:72:
1358 | 930 xn(i)=xn(i)+tg*d(i)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 930 at (1)
m1qn3.f:1369:72:
1369 | 960 x(i)=xn(i)+t*d(i)
| 1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 960 at (1)
ar -r libm1qn3.a m1qn3.o
ar: creating archive libm1qn3.a
ranlib libm1qn3.a
cp libm1qn3.a /Users/jbec0008/trunk/externalpackages/m1qn3/install
gfortran -arch x86_64 -fPIC -c ddot.f -o ddot.o
gfortran: warning: this compiler does not support x86 ('-arch' option ignored)
ar -r libddot.a ddot.o
ar: creating archive libddot.a
ranlib libddot.a
cp libddot.a /Users/jbec0008/trunk/externalpackages/m1qn3/install
SO I tried compiling without that package mentioned in the configure script but I still get the same error message.
I really wonder how I ever managed to install ISSM before.
Is also noticed when I install gcc with brew I still gave different paths when I ask for which gfortran
and for which gcc
. The brew version of gcc is only shown in the path when I use which gcc-12
. Although I sue the shellenv
command in .zshrc
. Thus I made somme aliases for g++,cc,gcc and c++ to the gcc-12 version. But I still get a clan error that the executable can not be linked to /opt/homebrew/bin/gfortran.
so clang is an alternative to gcc ,right? stems from Xcode?
for which clang
is also get /usr/bin/clang/