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

20031203: netCDF "make" errors



Charr,

> To: address@hidden
> From: Cameron Harr <address@hidden>
> Subject: NetCDF problems
> Organization: UCAR/Unidata

The above message contained the following:

> I've been trying to compile netcdf on an AMD Opteron, under Linux, with 
> the PGI 5.0 compilers. With some modifications, I can get it to make, 
> but it fails some of the tests (and passes others) doing the 'make 
> test'. I've provided the requested information, though directions say to 
> not attach files, yet then says it wants the files I've redirected the 
> output to.

The standard way to include files that aren't attached is to simply
include them as part of the message body (i.e., they're "inlined").

We requested this because most people attache files using BASE-64
encoding, which is not supported by all user mail agents.  You did it
the right way.

> I've attached the files configure.log, make.log, 
> make.log.pgiFortran, and test.log. The default make fails, but if I add 
> a "-DpgiFortran" to the CPPFLAGS in the macros.make file, it works.

The example in the file INSTALL.html that deals with Linux systems and
PGI Fortran compilers shows that the environment variable CPPFLAGS should
define the C macro "pgiFortran" before the configure script is
executed.

Rather than manually defining the macro in the file "macros.make", the
macro is typically defined prior to executing the configure script by
something like this:

    $ CPPFLAGS='-DNDEBUG -DpgiFortran' ./configure >configure.log 2>&1

If you use a non-standard shell (e.g., "csh") then you'd have to do
something different.

> The 
> output of this latter configuration is included in make.log.pgiFortran. 
> Can you help me figure out why I'm failing some of the tests? Please let 
> me know if you need anything else.
> 
> 
> A)
> Linux o99 2.4.19-NUMA #11 SMP Mon Sep 22 21:18:39 MDT 2003 x86_64 unknown
> B)
> 3.5.0
> C)
> /opt/pgi-5.0/linux86-64/5.0/bin/pgcc
> /opt/pgi-5.0/linux86-64/5.0/bin/pgCC
> /opt/pgi-5.0/linux86-64/5.0/bin/pgf77
> /opt/pgi-5.0/linux86-64/5.0/bin/pgf90
> 
> Thanks,
> Cameron Harr
...

> make[1]: Entering directory `/home/charr/kma/netcdf-3.5.0/src'
> 
> Making `all' in directory /home/charr/kma/netcdf-3.5.0/src/libsrc
> 
> make[2]: Entering directory `/home/charr/kma/netcdf-3.5.0/src/libsrc'
> pgcc -c -O -I.  -DNDEBUG attr.c

Without a "-DpgiFortran" in the above compilation-line, your attempt is
doomed.

...
> Making `all' in directory /home/charr/kma/netcdf-3.5.0/src/fortran
> 
> make[2]: Entering directory `/home/charr/kma/netcdf-3.5.0/src/fortran'
> pgcc -c -O -I../libsrc  -DNDEBUG fort-attio.c
> PGC-F-0249-#error --  "cfortran.h:  Can't find your environment among:    - 
> MIPS cc and f77 2.0. (e.g. Silicon Graphics, DECstations, ...)         - IBM 
> AIX XL C and FORTRAN Compiler/6000 Version 01.01.0000.... (./cfortran.h: 134)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation aborted
> make[2]: *** [fort-attio.o] Error 2
> make[2]: Leaving directory `/home/charr/kma/netcdf-3.5.0/src/fortran'
> make[1]: *** [subdir_target] Error 1
> make[1]: Leaving directory `/home/charr/kma/netcdf-3.5.0/src'
> make: *** [fortran/all] Error 2

The above failure is due to the "pgiFortran" macro not being defined.

> make[1]: Entering directory `/home/charr/kma/netcdf-3.5.0/src'
> 
> Making `all' in directory /home/charr/kma/netcdf-3.5.0/src/libsrc
> 
> make[2]: Entering directory `/home/charr/kma/netcdf-3.5.0/src/libsrc'
> pgcc -c -O -I.  -DNDEBUG -DpgiFortran attr.c

This is better.

> PGC-W-0155-64-bit integral value truncated  (attr.c: 429)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -c -O -I.  -DNDEBUG -DpgiFortran dim.c
> PGC-W-0155-64-bit integral value truncated  (dim.c: 356)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -c -O -I.  -DNDEBUG -DpgiFortran error.c
> pgcc -c -O -I.  -DNDEBUG -DpgiFortran -DVERSION=`cat ../VERSION` libvers.c
> pgcc -c -O -I.  -DNDEBUG -DpgiFortran nc.c
> PGC-W-0155-64-bit integral value truncated  (nc.c: 471)
> PGC-W-0155-64-bit integral value truncated  (nc.c: 475)
> PGC-W-0155-64-bit integral value truncated  (nc.c: 476)
> PGC-W-0155-64-bit integral value truncated  (nc.c: 502)
> PGC-W-0155-64-bit integral value truncated  (nc.c: 504)
> PGC-W-0155-64-bit integral value truncated  (nc.c: 543)
> PGC-W-0155-64-bit integral value truncated  (nc.c: 546)
> PGC-W-0155-64-bit integral value truncated  (nc.c: 598)
> PGC-W-0155-64-bit integral value truncated  (nc.c: 1131)
> PGC-W-0155-64-bit integral value truncated  (nc.c: 1133)
> PGC-W-0155-64-bit integral value truncated  (nc.c: 1135)
> PGC-W-0155-64-bit integral value truncated  (nc.c: 1153)
> PGC-W-0155-64-bit integral value truncated  (nc.c: 1169)
> PGC-W-0155-64-bit integral value truncated  (nc.c: 1185)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -c -O -I.  -DNDEBUG -DpgiFortran ncio.c
> pgcc -c -O -I.  -DNDEBUG -DpgiFortran ncx.c
> PGC-W-0155-64-bit integral value truncated  (ncx.c: 385)
> PGC-W-0155-64-bit integral value truncated  (ncx.c: 635)
> PGC-W-0155-64-bit integral value truncated  (ncx.c: 2061)
> PGC-W-0155-64-bit integral value truncated  (ncx.c: 2216)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -c -O -I.  -DNDEBUG -DpgiFortran putget.c
> PGC-W-0142-Assignment to const object not allowed (putget.c: 373)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 4263)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 5025)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 5026)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 5132)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 5133)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 5238)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 5239)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 5344)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 5345)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 5450)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 5451)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 5556)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 5557)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 5662)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 5663)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 5768)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 5769)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 5918)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 5919)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 6019)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 6020)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 6119)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 6120)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 6219)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 6220)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 6319)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 6320)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 6419)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 6420)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 6519)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 6520)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 6619)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 6620)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 6763)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 6842)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 6920)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 6998)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 7076)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 7154)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 7232)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 7310)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 7389)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 7466)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 7542)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 7618)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 7694)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 7770)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 7846)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 7922)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 8233)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 8421)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 8608)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 8795)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 8982)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 9169)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 9356)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 9543)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 9834)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 10017)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 10199)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 10381)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 10563)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 10745)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 10927)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 11109)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 11484)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 11512)
> PGC-W-0142-Assignment to const object not allowed (putget.c: 11527)
> PGC-W-0142-Assignment to const object not allowed (putget.c: 11532)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 11557)
> PGC-W-0155-64-bit integral value truncated  (putget.c: 11727)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -c -O -I.  -DNDEBUG -DpgiFortran string.c
> pgcc -c -O -I.  -DNDEBUG -DpgiFortran v1hpg.c
> pgcc -c -O -I.  -DNDEBUG -DpgiFortran v2i.c
> PGC-W-0155-64-bit integral value truncated  (v2i.c: 329)
> PGC-W-0155-64-bit integral value truncated  (v2i.c: 738)
> PGC-W-0155-64-bit integral value truncated  (v2i.c: 904)
> PGC-W-0155-64-bit integral value truncated  (v2i.c: 915)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -c -O -I.  -DNDEBUG -DpgiFortran var.c
> PGC-W-0155-64-bit integral value truncated  (var.c: 522)
> PGC-W-0155-64-bit integral value truncated  (var.c: 582)
> PGC-W-0155-64-bit integral value truncated  (var.c: 593)
> PGC-W-0155-64-bit integral value truncated  (var.c: 662)
> PGC-W-0155-64-bit integral value truncated  (var.c: 717)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> ar cru libnetcdf.a attr.o dim.o error.o libvers.o nc.o ncio.o ncx.o putget.o 
> string.o v1hpg.o v2i.o var.o
> ranlib libnetcdf.a
> make[2]: Leaving directory `/home/charr/kma/netcdf-3.5.0/src/libsrc'
> 
> Returning to directory /home/charr/kma/netcdf-3.5.0/src
> 
> make[1]: Leaving directory `/home/charr/kma/netcdf-3.5.0/src'
> make[1]: Entering directory `/home/charr/kma/netcdf-3.5.0/src'
> 
> Making `all' in directory /home/charr/kma/netcdf-3.5.0/src/fortran
> 
> make[2]: Entering directory `/home/charr/kma/netcdf-3.5.0/src/fortran'
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran fort-attio.c
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran fort-control.c
> PGC-W-0155-64-bit integral value truncated  (fort-control.c: 15)
> PGC-W-0155-64-bit integral value truncated  (fort-control.c: 29)
> PGC-W-0155-64-bit integral value truncated  (fort-control.c: 93)
> PGC-W-0155-64-bit integral value truncated  (fort-control.c: 99)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran fort-dim.c
> PGC-W-0095-Type cast required for this conversion (fort-dim.c: 23)
> PGC-W-0155-Pointer value created from a nonlong integral type  (fort-dim.c: 
> 23)
> PGC-W-0155-64-bit integral value truncated  (fort-dim.c: 23)
> PGC-W-0095-Type cast required for this conversion (fort-dim.c: 30)
> PGC-W-0155-Pointer value created from a nonlong integral type  (fort-dim.c: 
> 30)
> PGC-W-0155-64-bit integral value truncated  (fort-dim.c: 37)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran fort-genatt.c
> PGC-W-0155-64-bit integral value truncated  (fort-genatt.c: 9)
> PGC-W-0155-64-bit integral value truncated  (fort-genatt.c: 30)
> PGC-W-0095-Type cast required for this conversion (fort-genatt.c: 37)
> PGC-W-0155-Pointer value created from a nonlong integral type  
> (fort-genatt.c: 37)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran fort-geninq.c
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran fort-genvar.c
> PGC-W-0095-Type cast required for this conversion (fort-genvar.c: 17)
> PGC-W-0155-Pointer value created from a nonlong integral type  
> (fort-genvar.c: 17)
> PGC-W-0095-Type cast required for this conversion (fort-genvar.c: 31)
> PGC-W-0155-Pointer value created from a nonlong integral type  
> (fort-genvar.c: 31)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran fort-lib.c
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran fort-misc.c
> PGC-W-0095-Type cast required for this conversion (fort-misc.c: 8)
> PGC-W-0155-Pointer value created from a nonlong integral type  (fort-misc.c: 
> 8)
> PGC-W-0095-Type cast required for this conversion (fort-misc.c: 15)
> PGC-W-0155-Pointer value created from a nonlong integral type  (fort-misc.c: 
> 15)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran fort-v2compat.c
> PGC-W-0155-64-bit integral value truncated  (fort-v2compat.c: 616)
> PGC-W-0095-Type cast required for this conversion (fort-v2compat.c: 623)
> PGC-W-0155-Pointer value created from a nonlong integral type  
> (fort-v2compat.c: 623)
> PGC-W-0095-Type cast required for this conversion (fort-v2compat.c: 670)
> PGC-W-0155-Pointer value created from a nonlong integral type  
> (fort-v2compat.c: 670)
> PGC-W-0095-Type cast required for this conversion (fort-v2compat.c: 1923)
> PGC-W-0155-Pointer value created from a nonlong integral type  
> (fort-v2compat.c: 1923)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran fort-vario.c
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran fort-var1io.c
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran fort-varaio.c
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran fort-varmio.c
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran fort-varsio.c
> ar cru ../libsrc/libnetcdf.a fort-attio.o fort-control.o fort-dim.o 
> fort-genatt.o fort-geninq.o fort-genvar.o fort-lib.o fort-misc.o 
> fort-v2compat.o fort-vario.o fort-var1io.o fort-varaio.o fort-varmio.o 
> fort-varsio.o
> ranlib ../libsrc/libnetcdf.a
> make[2]: Leaving directory `/home/charr/kma/netcdf-3.5.0/src/fortran'
> 
> Returning to directory /home/charr/kma/netcdf-3.5.0/src
> 
> make[1]: Leaving directory `/home/charr/kma/netcdf-3.5.0/src'
> make[1]: Entering directory `/home/charr/kma/netcdf-3.5.0/src'
> 
> Making `all' in directory /home/charr/kma/netcdf-3.5.0/src/f90
> 
> make[2]: Entering directory `/home/charr/kma/netcdf-3.5.0/src/f90'
> pgf90 -c  typeSizes.f90
> pgf90 -c  netcdf.f90
> ar cru ../libsrc/libnetcdf.a netcdf.o typeSizes.o
> ranlib ../libsrc/libnetcdf.a
> make[2]: Leaving directory `/home/charr/kma/netcdf-3.5.0/src/f90'
> 
> Returning to directory /home/charr/kma/netcdf-3.5.0/src
> 
> make[1]: Leaving directory `/home/charr/kma/netcdf-3.5.0/src'
> make[1]: Entering directory `/home/charr/kma/netcdf-3.5.0/src'
> 
> Making `all' in directory /home/charr/kma/netcdf-3.5.0/src/ncdump
> 
> make[2]: Entering directory `/home/charr/kma/netcdf-3.5.0/src/ncdump'
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran ncdump.c
> PGC-W-0155-64-bit integral value truncated  (ncdump.c: 570)
> PGC-W-0155-64-bit integral value truncated  (ncdump.c: 571)
> PGC-W-0155-64-bit integral value truncated  (ncdump.c: 578)
> PGC-W-0155-64-bit integral value truncated  (ncdump.c: 600)
> PGC-W-0155-64-bit integral value truncated  (ncdump.c: 601)
> PGC-W-0155-64-bit integral value truncated  (ncdump.c: 610)
> PGC-W-0155-64-bit integral value truncated  (ncdump.c: 689)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran vardata.c
> PGC-W-0155-64-bit integral value truncated  (vardata.c: 745)
> PGC-W-0155-64-bit integral value truncated  (vardata.c: 770)
> PGC-W-0155-64-bit integral value truncated  (vardata.c: 849)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran dumplib.c
> PGC-W-0155-64-bit integral value truncated  (dumplib.c: 74)
> PGC-W-0155-64-bit integral value truncated  (dumplib.c: 77)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -o ncdump -O  ncdump.o vardata.o dumplib.o ../libsrc/libnetcdf.a  
> make[2]: Leaving directory `/home/charr/kma/netcdf-3.5.0/src/ncdump'
> 
> Returning to directory /home/charr/kma/netcdf-3.5.0/src
> 
> make[1]: Leaving directory `/home/charr/kma/netcdf-3.5.0/src'
> make[1]: Entering directory `/home/charr/kma/netcdf-3.5.0/src'
> 
> Making `all' in directory /home/charr/kma/netcdf-3.5.0/src/ncgen
> 
> make[2]: Entering directory `/home/charr/kma/netcdf-3.5.0/src/ncgen'
> pgcc -c -O -I../libsrc -I.  -DNDEBUG -DpgiFortran main.c
> pgcc -c -O -I../libsrc -I.  -DNDEBUG -DpgiFortran load.c
> pgcc -c -O -I../libsrc -I.  -DNDEBUG -DpgiFortran ncgentab.c
> PGC-W-0155-64-bit integral value truncated  (lex.yy.c: 803)
> PGC-W-0155-64-bit integral value truncated  (ncgen.l: 171)
> PGC-W-0155-64-bit integral value truncated  (ncgen.l: 180)
> PGC-W-0155-64-bit integral value truncated  (ncgen.l: 184)
> PGC-W-0155-64-bit integral value truncated  (lex.yy.c: 1112)
> PGC-W-0155-64-bit integral value truncated  (lex.yy.c: 1280)
> PGC-W-0155-64-bit integral value truncated  (lex.yy.c: 1307)
> PGC-W-0155-64-bit integral value truncated  (lex.yy.c: 1343)
> PGC-W-0155-64-bit integral value truncated  (lex.yy.c: 1468)
> PGC-W-0155-64-bit integral value truncated  (lex.yy.c: 1469)
> PGC-W-0155-64-bit integral value truncated  (lex.yy.c: 1509)
> PGC-W-0155-64-bit integral value truncated  (ncgen.y: 346)
> PGC-W-0155-64-bit integral value truncated  (ncgen.y: 569)
> PGC-W-0155-64-bit integral value truncated  (ncgen.y: 572)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -c -O -I../libsrc -I.  -DNDEBUG -DpgiFortran escapes.c
> PGC-W-0155-64-bit integral value truncated  (escapes.c: 71)
> PGC-W-0155-64-bit integral value truncated  (escapes.c: 83)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -c -O -I../libsrc -I.  -DNDEBUG -DpgiFortran getfill.c
> pgcc -c -O -I../libsrc -I.  -DNDEBUG -DpgiFortran init.c
> pgcc -c -O -I../libsrc -I.  -DNDEBUG -DpgiFortran genlib.c
> PGC-W-0155-64-bit integral value truncated  (genlib.c: 813)
> PGC-W-0155-64-bit integral value truncated  (genlib.c: 1797)
> PGC-W-0155-64-bit integral value truncated  (genlib.c: 1800)
> PGC-W-0155-64-bit integral value truncated  (genlib.c: 1803)
> PGC-W-0155-64-bit integral value truncated  (genlib.c: 1806)
> PGC-W-0155-64-bit integral value truncated  (genlib.c: 1809)
> PGC-W-0155-64-bit integral value truncated  (genlib.c: 1812)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -o ncgen -O  main.o load.o ncgentab.o escapes.o getfill.o init.o 
> genlib.o ../libsrc/libnetcdf.a  
> make[2]: Leaving directory `/home/charr/kma/netcdf-3.5.0/src/ncgen'
> 
> Returning to directory /home/charr/kma/netcdf-3.5.0/src
> 
> make[1]: Leaving directory `/home/charr/kma/netcdf-3.5.0/src'
> make[1]: Entering directory `/home/charr/kma/netcdf-3.5.0/src'
> 
> Making `all' in directory /home/charr/kma/netcdf-3.5.0/src/cxx
> 
> make[2]: Entering directory `/home/charr/kma/netcdf-3.5.0/src/cxx'
> pgCC -c  -I../libsrc -I.  -DNDEBUG -DpgiFortran netcdf.cpp
> "ncvalues.h", line 40: warning: integer conversion resulted in a change of 
> sign
>   static const ncbyte ncBad_byte = NC_FILL_BYTE;
>                                    ^
> 
> pgCC -c  -I../libsrc -I.  -DNDEBUG -DpgiFortran ncvalues.cpp
> "ncvalues.h", line 40: warning: integer conversion resulted in a change of 
> sign
>   static const ncbyte ncBad_byte = NC_FILL_BYTE;
>                                    ^
> 
> ar cru libnetcdf_c++.a netcdf.o ncvalues.o
> ranlib libnetcdf_c++.a
> pgCC -c  -I../libsrc -I.  -DNDEBUG -DpgiFortran nctst.cpp
> "ncvalues.h", line 40: warning: integer conversion resulted in a change of 
> sign
>   static const ncbyte ncBad_byte = NC_FILL_BYTE;
>                                    ^
> 
> pgCC -o nctst   nctst.o libnetcdf_c++.a -L../libsrc -lnetcdf 
> make[2]: Leaving directory `/home/charr/kma/netcdf-3.5.0/src/cxx'
> 
> Returning to directory /home/charr/kma/netcdf-3.5.0/src
> 
> make[1]: Leaving directory `/home/charr/kma/netcdf-3.5.0/src'
> 
> --------------030606060503040308020606
> Content-Type: text/plain;
>  name="test.log"
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline;
>  filename="test.log"
> 
> make[1]: Entering directory `/home/charr/kma/netcdf-3.5.0/src'

...
> Making `test' in directory /home/charr/kma/netcdf-3.5.0/src/nctest
> 
> make[2]: Entering directory `/home/charr/kma/netcdf-3.5.0/src/nctest'
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran varget.c
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran vargetg.c
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran varput.c
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran varputg.c
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran vardef.c
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran vartests.c
> PGC-W-0155-64-bit integral value truncated  (vartests.c: 269)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran vputget.c
> PGC-W-0155-64-bit integral value truncated  (vputget.c: 57)
> PGC-W-0155-64-bit integral value truncated  (vputget.c: 64)
> PGC-W-0155-64-bit integral value truncated  (vputget.c: 69)
> PGC-W-0155-64-bit integral value truncated  (vputget.c: 74)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran vputgetg.c
> PGC-W-0155-64-bit integral value truncated  (vputgetg.c: 111)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran driver.c
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran cdftests.c
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran dimtests.c
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran rec.c
> PGC-W-0155-Long value is passed to a nonprototyped function - argument #2 
> (rec.c: 375)
> PGC-W-0155-Long value is passed to a nonprototyped function - argument #2 
> (rec.c: 388)
> PGC-W-0155-Long value is passed to a nonprototyped function - argument #2 
> (rec.c: 415)
> PGC-W-0155-Long value is passed to a nonprototyped function - argument #2 
> (rec.c: 432)
> PGC-W-0155-Long value is passed to a nonprototyped function - argument #2 
> (rec.c: 530)
> PGC-W-0155-Long value is passed to a nonprototyped function - argument #2 
> (rec.c: 537)
> PGC-W-0155-Long value is passed to a nonprototyped function - argument #2 
> (rec.c: 567)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran atttests.c
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran misctest.c
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran add.c
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran error.c
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran emalloc.c
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran val.c
> PGC-W-0155-64-bit integral value truncated  (val.c: 42)
> PGC-W-0155-64-bit integral value truncated  (val.c: 47)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -c -O -I../libsrc  -DNDEBUG -DpgiFortran slabs.c
> PGC-W-0155-64-bit integral value truncated  (slabs.c: 52)
> PGC-W-0155-64-bit integral value truncated  (slabs.c: 55)
> PGC-W-0155-64-bit integral value truncated  (slabs.c: 58)
> PGC-W-0155-64-bit integral value truncated  (slabs.c: 100)
> PGC-W-0155-64-bit integral value truncated  (slabs.c: 102)
> PGC-W-0155-64-bit integral value truncated  (slabs.c: 104)
> PGC-W-0155-Long value is passed to a nonprototyped function - argument #4 
> (slabs.c: 207)
> PGC-W-0155-Long value is passed to a nonprototyped function - argument #4 
> (slabs.c: 242)
> PGC-W-0155-64-bit integral value truncated  (slabs.c: 260)
> PGC-W-0155-Long value is passed to a nonprototyped function - argument #4 
> (slabs.c: 263)
> PGC-W-0155-64-bit integral value truncated  (slabs.c: 286)
> PGC-W-0155-64-bit integral value truncated  (slabs.c: 287)
> PGC-W-0155-64-bit integral value truncated  (slabs.c: 292)
> PGC-W-0155-Long value is passed to a nonprototyped function - argument #4 
> (slabs.c: 292)
> PGC-W-0155-64-bit integral value truncated  (slabs.c: 325)
> PGC-W-0155-64-bit integral value truncated  (slabs.c: 326)
> PGC-W-0155-64-bit integral value truncated  (slabs.c: 327)
> PGC-W-0155-64-bit integral value truncated  (slabs.c: 334)
> PGC-W-0155-64-bit integral value truncated  (slabs.c: 335)
> PGC-W-0155-Long value is passed to a nonprototyped function - argument #4 
> (slabs.c: 335)
> PGC/x86-64 Linux/x86-64 5.0-1: compilation completed with warnings
> pgcc -o nctest -O  varget.o vargetg.o varput.o varputg.o vardef.o vartests.o 
> vputget.o vputgetg.o driver.o cdftests.o dimtests.o rec.o atttests.o 
> misctest.o add.o error.o emalloc.o val.o slabs.o -L../libsrc -lnetcdf  
> ./nctest
> *** Testing nccreate ...      ok ***
> *** Testing ncopen ...                ok ***
> *** Testing ncredef ...               ok ***
> *** Testing ncendef ...               ok ***
> *** Testing ncclose ...               ok ***
> *** Testing ncinquire ...     ok ***
> *** Testing ncsync ...                ok ***
> *** Testing ncabort ...               ok ***
> *** Testing ncdimdef ...      ok ***
> *** Testing ncdimid ...               ok ***
> *** Testing ncdiminq ...      ok ***
> *** Testing ncdimrename ...   ok ***
> *** Testing ncvardef ...      ok ***
> *** Testing ncvarid ...               ok ***
> *** Testing ncvarinq ...      ok ***
> *** Testing ncvarput1 ...     ok ***
> *** Testing ncvarget1 ...     ok ***
> *** Testing ncvarput ...      ok ***
> *** Testing ncvarget ...      *** test_slabs: ncvarget got wrong value for 
> point
> *** test_slabs: ncvarget got wrong value for vector
> *** test_slabs: ncvarget got wrong value for vector
...

It is likely that the above errors are due to the PGI compiler not
adequately preserving the test values, which are at the limit of
floating-point resolution on most machines.  Further evidence for this
comes from the test of the Fortran interface, which was successful:

...
> Making `test' in directory /home/charr/kma/netcdf-3.5.0/src/nf_test
> 
> make[2]: Entering directory `/home/charr/kma/netcdf-3.5.0/src/nf_test'
> + pgf77 -c test_get.F
> + pgf77 -c test_put.F
> + pgf77 -c nf_error.F
> + pgf77 -c nf_test.F
> + pgf77 -c test_read.F
> + pgf77 -c test_write.F
> + pgf77 -c util.F
> pgcc -c -O   -DNDEBUG -DpgiFortran fortlib.c
> pgf77 -o nf_test   test_get.o test_put.o nf_error.o nf_test.o test_read.o 
> test_write.o util.o fortlib.o ../libsrc/libnetcdf.a   
> ./nf_test -c
> ./nf_test
> *** Testing nf_strerror ... 
> *** Testing nf_open ... 
> *** Testing nf_close ... 
> *** Testing nf_inq ... 
> *** Testing nf_inq_dimid ... 
> *** Testing nf_inq_dim ... 
> *** Testing nf_inq_dimlen ... 
> *** Testing nf_inq_dimname ... 
> *** Testing nf_inq_varid ... 
> *** Testing nf_inq_var ... 
> *** Testing nf_inq_natts ... 
> *** Testing nf_inq_ndims ... 
> *** Testing nf_inq_nvars ... 
> *** Testing nf_inq_unlimdim ... 
> *** Testing nf_inq_vardimid ... 
> *** Testing nf_inq_varname ... 
> *** Testing nf_inq_varnatts ... 
> *** Testing nf_inq_varndims ... 
> *** Testing nf_inq_vartype ... 
> *** Testing nf_get_var1_text ... 
> *** Testing nf_get_var1_int1 ... 
> *** Testing nf_get_var1_int2 ... 
> *** Testing nf_get_var1_int ... 
> *** Testing nf_get_var1_real ... 
> *** Testing nf_get_var1_double ... 
> *** Testing nf_get_var_text ... 
> *** Testing nf_get_var_int1 ... 
> *** Testing nf_get_var_int2 ... 
> *** Testing nf_get_var_int ... 
> *** Testing nf_get_var_real ... 
> *** Testing nf_get_var_double ... 
> *** Testing nf_get_vara_text ... 
> *** Testing nf_get_vara_int1 ... 
> *** Testing nf_get_vara_int2 ... 
> *** Testing nf_get_vara_int ... 
> *** Testing nf_get_vara_real ... 
> *** Testing nf_get_vara_double ... 
> *** Testing nf_get_vars_text ... 
> *** Testing nf_get_vars_int1 ... 
> *** Testing nf_get_vars_int2 ... 
> *** Testing nf_get_vars_int ... 
> *** Testing nf_get_vars_real ... 
> *** Testing nf_get_vars_double ... 
> *** Testing nf_get_varm_text ... 
> *** Testing nf_get_varm_int1 ... 
> *** Testing nf_get_varm_int2 ... 
> *** Testing nf_get_varm_int ... 
> *** Testing nf_get_varm_real ... 
> *** Testing nf_get_varm_double ... 
> *** Testing nf_get_att_text ... 
> *** Testing nf_get_att_int1 ... 
> *** Testing nf_get_att_int2 ... 
> *** Testing nf_get_att_int ... 
> *** Testing nf_get_att_real ... 
> *** Testing nf_get_att_double ... 
> *** Testing nf_inq_att ... 
> *** Testing nf_inq_attname ... 
> *** Testing nf_inq_attid ... 
> *** Testing nf_inq_attlen ... 
> *** Testing nf_inq_atttype ... 
> *** Testing nf_create ... 
> *** Testing nf_redef ... 
> *** Testing nf_enddef ... 
> *** Testing nf_sync ... 
> *** Testing nf_abort ... 
> *** Testing nf_def_dim ... 
> *** Testing nf_rename_dim ... 
> *** Testing nf_def_var ... 
> *** Testing nf_put_var1_text ... 
> *** Testing nf_put_var1_int1 ... 
> *** Testing nf_put_var1_int2 ... 
> *** Testing nf_put_var1_int ... 
> *** Testing nf_put_var1_real ... 
> *** Testing nf_put_var1_double ... 
> *** Testing nf_put_var_text ... 
> *** Testing nf_put_var_int1 ... 
> *** Testing nf_put_var_int2 ... 
> *** Testing nf_put_var_int ... 
> *** Testing nf_put_var_real ... 
> *** Testing nf_put_var_double ... 
> *** Testing nf_put_vara_text ... 
> *** Testing nf_put_vara_int1 ... 
> *** Testing nf_put_vara_int2 ... 
> *** Testing nf_put_vara_int ... 
> *** Testing nf_put_vara_real ... 
> *** Testing nf_put_vara_double ... 
> *** Testing nf_put_vars_text ... 
> *** Testing nf_put_vars_int1 ... 
> *** Testing nf_put_vars_int2 ... 
> *** Testing nf_put_vars_int ... 
> *** Testing nf_put_vars_real ... 
> *** Testing nf_put_vars_double ... 
> *** Testing nf_put_varm_text ... 
> *** Testing nf_put_varm_int1 ... 
> *** Testing nf_put_varm_int2 ... 
> *** Testing nf_put_varm_int ... 
> *** Testing nf_put_varm_real ... 
> *** Testing nf_put_varm_double ... 
> *** Testing nf_rename_var ... 
> *** Testing nf_put_att_text ... 
> *** Testing nf_put_att_int1 ... 
> *** Testing nf_put_att_int2 ... 
> *** Testing nf_put_att_int ... 
> *** Testing nf_put_att_real ... 
> *** Testing nf_put_att_double ... 
> *** Testing nf_copy_att ... 
> *** Testing nf_rename_att ... 
> *** Testing nf_del_att ... 
> *** Testing nf_set_fill ... 
>  Total number of failures:            0
> *** Success ***
> make[2]: Leaving directory `/home/charr/kma/netcdf-3.5.0/src/nf_test'

I suspect that you can go ahead and install and use the netCDF package.
I suggest that you try using it on some of your own netCDF files.  If
things go OK, then you should be fine.

Regards,
Steve Emmerson