[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #KUQ-913565]: Re: Netcdf usage on Macpowerbook pro with OSX
- Subject: [netCDF #KUQ-913565]: Re: Netcdf usage on Macpowerbook pro with OSX
- Date: Thu, 06 Nov 2008 11:07:39 -0700
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