compiling ncl 6.1.2 from source, pgcc error

From: Richard Feltstykket <rafeltstykket_at_nyahnyahspammersnyahnyah>
Date: Tue Oct 08 2013 - 12:58:01 MDT

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
Received on Tue Oct 8 12:58:48 2013

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