This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Peter, It looks like you are trying to use ifort (the Intel Fortran compiler) with /usr/bin/cc (the GNU compiler that comes with the XCode tools). Evidently, setting the environment variable CC=icc before running the configure script did not work, perhaps because you were using csh or tcsh, which has a different syntax for setting environment variables. Try using setenv CC icc instead, if that's the case. Another possibility is that your PATH environment variable doesn't include the directory where icc is found. You could check that by making sure which icc finds the icc compiler before you invoke the configure script. We know the following environment variable settings work for MacOS X 10.5.5: CC=icc CFLAGS="-g -O2" CXX=icpc CXXFLAGS="-g -O2" FC=ifort FCFLAGS="-g -O2" F77=ifort FFLAGS="-g -O2" CPPFLAGS="-DpgiFortran" For other settings that are known to work, see this Intel site: http://www.intel.com/support/performancetools/sb/CS-027812.htm#13 or these reports of settings that worked: http://www.unidata.ucar.edu/software/netcdf/docs/other-builds.html#ifort_mac_64 --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: KUQ-913565 Department: Support netCDF Priority: Normal Status: Closed