Re: compiling ncl 6.1.2 from source, pgcc error

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed Oct 09 2013 - 17:34:52 MDT

All,

This question is more appropriate for ncl-install@ucar.edu. This was sent off-line to Richard by Wei:

We never saw such error before.
Could you please check your "netcdf.h" to see if "NC_FORMAT_NETCDF4",
"NC_FORMAT_NETCDF4_CLASSIC", etc, are defined in it?

In my netcdf.h, I have:

#define NC_FORMAT_CLASSIC (1)
#define NC_FORMAT_64BIT (2)
#define NC_FORMAT_NETCDF4 (3)
#define NC_FORMAT_NETCDF4_CLASSIC (4)

If not, you want to reconfigure your netcdf with netcdf4-abled,
and re-install your netcdf.

Hope this help.

Wei

On Oct 8, 2013, at 12:58 PM, Richard Feltstykket <rafeltstykket@ucdavis.edu> wrote:

> Hello,
>
> I’m getting these errors when compiling ncl 6.1.2 from source:
>
> pgcc -tp k8-64 -O -Msignextend -Mreentrant -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D H5_USE_16_API -DUSE_NETCDF4_FEATURES -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O -I../../../.././include -I/usr/include -I/usr/include/freetype2 -DLinux -DMAJOR=3 -DUSE_NETCDF4 -DBuildHDF4 -DBuildHDF5 -DBuildGRIB2 -D__64BIT__ -DBuildGDAL -DNIO_LIB_ONLY -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -I/admin/software/precise/pgi-13.9/hdf-4.2.9/include -I/admin/software/precise/pgi-13.4/netcdf-4.2.1.1/include -I/admin/software/precise/pgi-13.9/hdf5-1.8.11/include -I/admin/software/precise/pgi-13.9/szip-2.1/include -I/admin/software/precise/pgi-13.9/openmpi-1.6.5/include -c -o FileSupport.o FileSupport.c
> PGC-S-0091-Integer constant expression required (FileSupport.c: 2906)
> PGC-S-0092-Illegal type conversion of constant required (FileSupport.c: 2906)
> PGC-S-0091-Integer constant expression required (FileSupport.c: 2912)
> PGC-S-0092-Illegal type conversion of constant required (FileSupport.c: 2912)
> PGC-S-0083-Switch case constants must be unique (FileSupport.c: 2912)
> PGC-S-0091-Integer constant expression required (FileSupport.c: 2913)
> PGC-S-0092-Illegal type conversion of constant required (FileSupport.c: 2913)
> PGC-S-0083-Switch case constants must be unique (FileSupport.c: 2913)
> PGC-S-0091-Integer constant expression required (FileSupport.c: 2914)
> PGC-S-0092-Illegal type conversion of constant required (FileSupport.c: 2914)
> PGC-S-0083-Switch case constants must be unique (FileSupport.c: 2914)
> make[5]: *** [FileSupport.o] Error 2
> make[5]: Leaving directory `/root/src/ncl/ncl_ncarg-6.1.2/ni/src/lib/nio'
>
> There’s an #ifdef for USE_NETCDF_FEATURES near that line, I tried to add -DUSE_NETCD4F_FEATURES to the CFLAGS as well as without it, but no change. Any ideas?
>
> Thanks,
> Richard
>
> _______________________________________________
> ncarg-talk mailing list
> ncarg-talk@ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncarg-talk

_______________________________________________
ncarg-talk mailing list
ncarg-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
Received on Wed Oct 9 17:35:12 2013

This archive was generated by hypermail 2.1.8 : Fri Dec 13 2013 - 11:42:50 MST