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

[netCDF #KVP-947524]: netcdf-4.1.3 - nagfor - osx lion



Hi Tim,

> once ago I was successful with your help to compile netcdf3.6.1 on my
> mac using intel.
> 
> As time goes I am now using netcdf4.1.3 and nagfor - I got it
> configured and compiled, most of the tests pass … but I would like to
> ask, if you do have some promising workaround to get the netcdf4 +HDF5
> fortran interface running fine.
> 
> I do the configure with:
> 
> export CC=/mp/bin/gcc-mp-4.5
> export FC=/usr/bin/nagfor
> export FFLAGS='-mismatch_all  -colour -g -O2  -kind=byte -r8 -fpp'
> export FCFLAGS='-mismatch_all  -colour -g -O2 -kind=byte -r8 '
> export CPPFLAGS=-DNAGf90Fortran
> export CPPFLAGS='-DNAGf90Fortran -I/mp/include'
> export LDFLAGS='-L/mp/lib'
> export LIBS='-lsz -lz -lm'
> export build='x86_64-apple-darwin11.1.0'
> export prefix='/sw/osx/netcdf-4.1.3_nag52.711'
> configure --build=x86_64-apple-darwin11.1.0 
> --prefix=/sw/osx/netcdf-4.1.3_nag52.711  --disable-shared --enable-netcdf-4 
> --enable-f77 --enable-f90 --disable-cxx-4 --enable-separate-fortran 
> --disable-hdf4 --with-szlib=/mp/ --with-hdf5=/mp/ --with-zlib=/mp/ 
> --disable-dap --with-libcf
> 
> where as /mp - dir is my directory with macports compiled (gcc4.5.2) libs of 
> hdf5, szip, zlib
> the LDFLAGS is extended to get the libs, as using just --with-szlib=/.… 
> --with-hdf5=/... is not enough during configuring.

Right, with version 4.1.3 and later, the configure flags --with-hdf5=..., 
--with-szlib=... are
ignored; LDFLAGS for the libraries and CPPFLAGS for the include files are used 
instead.

> make -j 2; make check; make install
> 
> it compiles fine
> 
> there are errors by testing nf90 file f90tst_vars2.f90 _>
> 
> 
> and it hangs by testing netcdf3
> 
> *** Testing netCDF-3 Fortran 77 API.
> NetCDF version: 4.1.3 of Sep  9 2011 14:52:08 $
> type-conversion range error: status = No error
> type-conversion range error: status = No error
> *** 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_format ...
> *** 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 ...
> unexpected:  .00000000000000000000000000
> Range error: No error
> Range error: No error
> Range error: No error
> 
> 
> ###  1174  FAILURES TESTING nf_get_var1_int1! ###
> *** testing nf_get_var1_int2 ...
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> 
> 
> ###  1124  FAILURES TESTING nf_get_var1_int2! ###
> *** testing nf_get_var1_int ...
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> 
> 
> ###  1097  FAILURES TESTING nf_get_var1_int! ###
> *** testing nf_get_var1_real ...
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> 
> 
> ###  1097  FAILURES TESTING nf_get_var1_real! ###
> *** testing nf_get_var1_double ...
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> 
> 
> ###  1097  FAILURES TESTING nf_get_var1_double! ###
> *** testing nf_get_var_text ...
> *** testing nf_get_var_int1 ...
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  -24.00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  -24.00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> 
> 
> ###  240  FAILURES TESTING nf_get_var_int1! ###
> *** testing nf_get_var_int2 ...
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> 
> 
> ###  626  FAILURES TESTING nf_get_var_int2! ###
> *** testing nf_get_var_int ...
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> 
> 
> ###  1097  FAILURES TESTING nf_get_var_int! ###
> *** testing nf_get_var_real ...
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> unexpected:  .00000000000000000000000000
> 
> 
> ###  1097  FAILURES TESTING nf_get_var_real! ###
> *** testing nf_get_var_double ...
> unexpected:   2.19525069182592622848042807E-314
> unexpected:   2.19525069182592622848042807E-314
> unexpected:   2.19525069182592622848042807E-314
> unexpected:   2.19525069182592622848042807E-314
> unexpected:   2.19525069182592622848042807E-314
> unexpected:   2.19525069182592622848042807E-314
> unexpected:   2.19525069182592622848042807E-314
> unexpected:   2.19525069182592622848042807E-314
> 
> 
> ###  589  FAILURES TESTING nf_get_var_double! ###
> *** testing nf_get_vara_text ...
> 
> (nothing happened for a long time)
> 
> 
> At least I can report a partly running version for users interested in f90.
> 
> Do you have got some idea to get a full version running? I attached the 
> config.log.

We don't have or test with a NAG Fortran compiler, so I have no idea whether 
any or all of the
Fortran compiler options

      -mismatch_all  -colour -g -O2  -kind=byte -r8 -fpp

are needed or could be responsible for the test failures you're seeing.  Have 
you tried omitting
some of them to see if that makes the Fortran tests work, or are they really 
all required? The
-r8 seems especially suspect.  Doesn't that make REAL declarations declare an 
8-byte double
precision type.  Reading 4-byte floats into arrays of 8-byte values could 
easily cause problems.

--Russ


--Russ

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: KVP-947524
Department: Support netCDF
Priority: Normal
Status: Closed