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.
>To: address@hidden >cc: address@hidden >From: Gudrun Magnusdottir <address@hidden> >Subject: netCDF >Keywords: 199810230122.TAA21343 > > I wanted to try to run CCM3.6 on the T90 in San Diego. Then realized that first > had to install netCDF. > The configuration went smoothly --- aside from the inability to find the fortran > compiler. > Typing "make" was unsuccessful and now I've looked more closely at the Unidata > web page and under > platforms supported UNICOS 10.0 is listed but followed by only J90 in > paranthesis. The T90 runs Unicos 10.0. > > Perhaps someone can tell me if netCDF has been built on t90.sdsc.edu. > > The following is the error msg that I get. > > /paci/uci/u14307/work/netcdf-3.4/src % make > > Making `all' in directory /paci/uci/u14307/work/netcdf-3.4/src/libsrc > > c89 -c -O -I. -DNDEBUG ncio.c > CC-450 c89: ERROR File = /opt/ctl/craylibs/craylibs/include/cray/fortio.h, Line > = 138 > The type "long long" is nonstandard. > > typedef long long unum_t; /* Fortran unit number */ > ^ > > CC-450 c89: ERROR File = /opt/ctl/craylibs/craylibs/include/cray/fortio.h, Line > = 139 > The type "long long" is nonstandard. > > typedef long long recn_t; /* Fortran record number */ > ^ > > 2 errors detected in the compilation of "ncio.c". > Make: "c89 -c -O -I. -DNDEBUG ncio.c": Error code 1 > cmd-2436 make: Stop. > Make: "cd libsrc && \ > echo "Making \`all' in directory `pwd`" && \ > echo "" && \ > make all || exit 1": Error code 1 > Make: "subdir=`echo libsrc/all | sed 's,/.*,,'`; \ > target=`echo libsrc/all | sed 's,.*/,,'`; \ > make SUBDIR=$subdir TGET=$target subdir_target": Error code 1 > cmd-2436 make: Stop. > > Thank you, > > Gudrun Magnusdottir > Dept of Earth System Science > UC Irvine Gudrun: Apparently this version of the compiler, in 'ansi' (c89) mode, is so strictly ansi it is choking on include files supplied with the system. (This is analogus a biological entity with an auto immune disorder.) The fix is to start over using 'cc': Set the environment variable 'CC' to 'cc' (as opposed to 'c89'). In the top level src directory, run 'make distclean, ./configure again, and then 'make'. -glenn