cconroy20 / fsps

Flexible Stellar Population Synthesis
MIT License
85 stars 48 forks source link

compilation fail on yosemite #15

Closed dnarayanan closed 7 years ago

dnarayanan commented 7 years ago

I have an issue and the fix as well, but wanted to post this here for posterity.

In Mac OS X Yosemite compiling with gfortran gives:

gfortran -O -cpp -o sps_vars.o -c sps_vars.f90
gfortran: warning: couldn’t understand kern.osversion ‘14.5.0
gfortran -O -cpp -o sps_utils.o -c sps_utils.f90
gfortran: warning: couldn’t understand kern.osversion ‘14.5.0
...
.....

the way to fix this is to do (for bash):

export MACOSX_DEPLOYMENT_TARGET=10.9

and then it'll work.