[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 19981023: netCDF




>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