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.
Bernard, > To: address@hidden > From: Bernard Legras <address@hidden> > Subject: error in compiling netcdf > Organization: Laboratoire de Meteorologie Dynamique > Keywords: 200402241106.i1OB6MrV006988 netCDF PGI Fortran The above message contained the following: > I have downloaded the last netcdf tarball and got same pbs as with > previous versions. > In order to compile netcdf with pgi fortran compiler, > I found necessary, not only to set the environment variables > before configure but also to add a line > #define pgiFortran > at the beginning of cfortran.h > Otherwise, the compilation crashes. Interesting and thank you for this feedback. Adding the #define should not have been necessary, however. Unfortunately, I don't have enough information to understand why you needed it. > Besides this, netcdf tests fail for the f90 interface. > This happens with version 5.1 of pgi compiler but not with version > 5.0. I suspect that a bug exists in version 5.1 of the PG compiler -- the problem you report below hasn't been reported to occur with any other compiler. > error report is included below > > Sincerely > > Bernard Legras > > -- > @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ > @ Bernard Legras > @ Laboratoire de Meteorologie Dynamique > @ Ecole Normale Superieure > @ 24 rue Lhomond > @ F-75231 PARIS Cedex 05 > @ tel : (1) 44 32 22 28 fax : (1) 43 36 83 92 > @ E-mail : address@hidden > @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ > > make[2]: Entering directory > `/d9a/contrib/data/netcdf/netcdf-3.5.1/src/f90' > pgf90 -o netcdf_test netcdf_test.f90 netcdf.o typeSizes.o > ../libsrc/libnetcdf.a > netcdf_test.f90: > ./netcdf_test > example_good.cdl example.cdl sont différents: octet 881, ligne 37 > *** Failure *** > *** example_good.cdl 2000-04-05 21:33:14.000000000 +0200 > --- example.cdl 2004-02-24 11:56:32.000000000 +0100 > *************** > *** 34,43 **** > 953, 954, 955, > 956, 957, 958, > 959, 960, 961, > ! 962, 963, 964, > ! 965, 966, 967, > ! 968, 969, 970, > ! 971, 972, 973 ; > > lat = -90, -87.5, -85, -82.5 ; > > --- 34,43 ---- > 953, 954, 955, > 956, 957, 958, > 959, 960, 961, > ! 950, 951, 952, > ! 953, 954, 955, > ! 956, 957, 958, > ! 959, 960, 961 ; > > lat = -90, -87.5, -85, -82.5 ; > > make[2]: *** [test] Erreur 1 > make[2]: Leaving directory `/d9a/contrib/data/netcdf/netcdf-3.5.1/src/f90' > make[1]: *** [subdir_target] Erreur 1 > make[1]: Leaving directory `/d9a/contrib/data/netcdf/netcdf-3.5.1/src' > make: *** [f90/test] Erreur 2 Regards, Steve Emmerson