Compiling DrSPINE on macOS (BigSur)
This is an info - so that other may benefit from it:
TL;DR: Use gcc/gfortran v10 on macOS - you may get surprizes with v11.
I am using brew to manage gcc/gfortran installation on my macOS. Recently I updated all the packages including gcc/gfortran (it is a single package under brew
). The latest version is v11.3.0 causes some strange compilation errors
gfortran -g -O3 -Wall -c -o drspine_parameters.o drspine_parameters.f90
clang (LLVM option parsing): Unknown command line argument '-x86-pad-for-align=false'.
Try: 'clang (LLVM option parsing) --help'
clang (LLVM option parsing): Did you mean '--x86-slh-loads=false'?
Solution was to install gcc v10 with the following command:
brew install gcc@10
and specifying gfortran-10
in the Makefile.def as
FC=gfortran-10