Dear all,
I'm currently using ifort (16.0.3) on OSX El Capitan to install an old piece of software which previously installed fine (prior to the Yosemite update). The error I'm getting during compilation is specifically:
ifort: command line warning #10006: ignoring unknown option '-static' Undefined symbols for architecture x86_64:"_inclandata_mp_erflag_", referenced from: _haverr_ in inclan.a(util.o) _seterr_ in inclan.a(util.o) _inclan_ in inclan.a(inclan.o) _putlin_ in inclan.a(putlin.o) _putstr_ in inclan.a(putlin.o)
From googling, I thought the problem was related to the relatively recent changes in OSX to the default c++ library (libc++ is now default over libstdc++) so, I changed the make config file to:
#SYSTEM = intel #COMMENT = Intel Fortran compiler #FC = ifort #FFLAGS = -w #FFLAGS2 = -w #CC = gcc #FORK = g77fork.o #LDFLAGS = -staticlib
...where it once had -static instead of -staticlib. I now no longer get any error message during compilation, but the final files are not executable. I've also tried the LDFLAG "-cxxlib" and "-cxxlib -L /opt/local/lib/gcc47" that I found in the ifort help list, but I get the same original message with both. Have I changed the clib incorrectly? Otherwise I'm stumped now for troubleshooting.
If it matters I'm sourcing ifort with:
source /opt/intel/compilers_and_libraries_2016.3.170/mac/bin/ifortvars.csh intel64
Many thanks for any help, it's very much appreciated!