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

Re: 971209: netCDF



>Subject: 971209: netCDF
>From: Jon Saenz <address@hidden>
>Organization: .
>Keywords: 199712091103.EAA21891
>
> Dear 'Support':
>
> Sorry by the extra work, but I have been trying to
> build netCDF under FreeBSD and I have not been successful. I would have asked
to
> a local expert in the search of a solution, but such a person does not exist
> (I am supposed to be the 'expert'). Thus, I have to
> give up or ask you, and I prefer to try again under your advice, in case
> you had the time to answer this request, because it would be very
> useful for me to use this library.
>
> This message reflects the problems I have had,
> with the information you request in INSTALL.
>
> FreeBSD is not "theoretically" supported, but as it uses gcc, I don't
> think there should be extra work in porting netCDF to this system.
> It's almost POSIX-compliant and very Linux-like, the CPU is a i586, so,
> I have started the proccess setting the values of the environmental variables
> CPPFLAGS, CC, CFLAGS, FC, FFLAGS and CXX to the ones that Linux uses (except
> for fort77, which I have substituted by f77, the Fortran compiler that
> is included by FreeBSD).
>
> As you will see from the attached information, I am able to build the
> library and the commands, but the test shows some problems when testing
> test_get.c and test_put.c, which makes me dubious about the possibility
> of using reliably netCDF as built under this platform.
>
> 1. UNAME:
> =========
> FreeBSD zaniah.netflow.es 2.2.2-RELEASE FreeBSD 2.2.2-RELEASE #0: Wed Oct  8
19:04:46 CEST 1997     address@hidden:/usr/src/sys/compile/ZANIAH  i386
>
>
> 2. VERSION:
> ===========
> 3.3.1
> ...
> 7. Output of gmake.test:
> ========================
> ... t_nc okay, nctest okay...
>
> ./nc_test
> *** Testing nc_strerror ... ok
> ...
> *** Testing nc_inq_vartype ... ok
> *** Testing nc_get_var_text ...  179 good comparisons. ok
> *** Testing nc_get_var_uchar ...
>       FAILURE at line 793 of test_get.c: value read not that expected
>  263 good comparisons.
>       ### 1 FAILURES TESTING nc_get_var_uchar! ###
> *** Testing nc_get_var_schar ...
>       FAILURE at line 883 of test_get.c: value read not that expected
>       FAILURE at line 883 of test_get.c: value read not that expected
>       FAILURE at line 883 of test_get.c: value read not that expected
>  266 good comparisons.
>       ### 3 FAILURES TESTING nc_get_var_schar! ###
> *** Testing nc_get_var_short ...
>       FAILURE at line 973 of test_get.c: value read not that expected
>       FAILURE at line 973 of test_get.c: value read not that expected
>       FAILURE at line 973 of test_get.c: value read not that expected
>  679 good comparisons.
>       ### 3 FAILURES TESTING nc_get_var_short! ###
> *** Testing nc_get_var_int ...
>       FAILURE at line 1063 of test_get.c: value read not that expected
>       FAILURE at line 1063 of test_get.c: value read not that expected
>       FAILURE at line 1063 of test_get.c: value read not that expected
>  1186 good comparisons.
>       ### 3 FAILURES TESTING nc_get_var_int! ###
> *** Testing nc_get_var_long ...
>       FAILURE at line 1153 of test_get.c: value read not that expected
>       FAILURE at line 1153 of test_get.c: value read not that expected
>       FAILURE at line 1153 of test_get.c: value read not that expected
>  1186 good comparisons.
>       ### 3 FAILURES TESTING nc_get_var_long! ###
> *** Testing nc_get_var_float ...  1194 good comparisons. ok
> *** Testing nc_get_var_double ...  1207 good comparisons. ok
> *** Testing nc_get_var1_text ...  179 good comparisons. ok
> *** Testing nc_get_var1_uchar ...
>       FAILURE at line 141 of test_get.c: expected: 128, got: 128
>       FAILURE at line 141 of test_get.c: expected: 128, got: 128
>  262 good comparisons.
>       ### 2 FAILURES TESTING nc_get_var1_uchar! ###
> *** Testing nc_get_var1_schar ...
>       FAILURE at line 219 of test_get.c: expected: -128, got: -128
>       FAILURE at line 219 of test_get.c: expected: -128, got: -128
>       FAILURE at line 219 of test_get.c: expected: -128, got: -128
>  266 good comparisons.
>       ### 3 FAILURES TESTING nc_get_var1_schar! ###
> *** Testing nc_get_var1_short ...
>       FAILURE at line 297 of test_get.c: expected: -128, got: -128
>       FAILURE at line 297 of test_get.c: expected: -128, got: -128
>       FAILURE at line 297 of test_get.c: expected: -128, got: -128
>  679 good comparisons.
>       ### 3 FAILURES TESTING nc_get_var1_short! ###
> *** Testing nc_get_var1_int ...
>       FAILURE at line 375 of test_get.c: expected: -128, got: -128
>       FAILURE at line 375 of test_get.c: expected: -128, got: -128
>       FAILURE at line 375 of test_get.c: expected: -128, got: -128
>  1186 good comparisons.
>       ### 3 FAILURES TESTING nc_get_var1_int! ###
> *** Testing nc_get_var1_long ...
>       FAILURE at line 453 of test_get.c: expected: -128, got: -128
>       FAILURE at line 453 of test_get.c: expected: -128, got: -128
>       FAILURE at line 453 of test_get.c: expected: -128, got: -128
>  1186 good comparisons.
>       ### 3 FAILURES TESTING nc_get_var1_long! ###
> *** Testing nc_get_var1_float ...  1194 good comparisons. ok
> *** Testing nc_get_var1_double ...  1207 good comparisons. ok
> *** Testing nc_get_vara_text ...  179 good comparisons. ok
> *** Testing nc_get_vara_uchar ...
>       FAILURE at line 1665 of test_get.c: value read not that expected
>  263 good comparisons.
>       ### 1 FAILURES TESTING nc_get_vara_uchar! ###
> *** Testing nc_get_vara_schar ...
>       FAILURE at line 1830 of test_get.c: value read not that expected
>       FAILURE at line 1830 of test_get.c: value read not that expected
>       FAILURE at line 1830 of test_get.c: value read not that expected
>  266 good comparisons.
>       ### 3 FAILURES TESTING nc_get_vara_schar! ###
> *** Testing nc_get_vara_short ...
>       FAILURE at line 1995 of test_get.c: value read not that expected
>  681 good comparisons.
>       ### 1 FAILURES TESTING nc_get_vara_short! ###
> *** Testing nc_get_vara_int ...
>       FAILURE at line 2160 of test_get.c: value read not that expected
>       FAILURE at line 2160 of test_get.c: value read not that expected
>       FAILURE at line 2160 of test_get.c: value read not that expected
>       FAILURE at line 2160 of test_get.c: value read not that expected
>  1185 good comparisons.
>       ### 4 FAILURES TESTING nc_get_vara_int! ###
> *** Testing nc_get_vara_long ...
>       FAILURE at line 2325 of test_get.c: value read not that expected
>       FAILURE at line 2325 of test_get.c: value read not that expected
>       FAILURE at line 2325 of test_get.c: value read not that expected
>       FAILURE at line 2325 of test_get.c: value read not that expected
>  1185 good comparisons.
>       ### 4 FAILURES TESTING nc_get_vara_long! ###
> *** Testing nc_get_vara_float ...  1194 good comparisons. ok
> *** Testing nc_get_vara_double ...  1207 good comparisons. ok
> *** Testing nc_get_vars_text ...  179 good comparisons. ok
> *** Testing nc_get_vars_uchar ...
>       FAILURE at line 3006 of test_get.c: value read not that expected
>  263 good comparisons.
>       ### 1 FAILURES TESTING nc_get_vars_uchar! ###
> *** Testing nc_get_vars_schar ...
>       FAILURE at line 3181 of test_get.c: value read not that expected
>       FAILURE at line 3181 of test_get.c: value read not that expected
>       FAILURE at line 3181 of test_get.c: value read not that expected
>       FAILURE at line 3181 of test_get.c: value read not that expected
>       FAILURE at line 3181 of test_get.c: value read not that expected
>       FAILURE at line 3181 of test_get.c: value read not that expected
>  263 good comparisons.
>       ### 6 FAILURES TESTING nc_get_vars_schar! ###
> *** Testing nc_get_vars_short ...
>       FAILURE at line 3356 of test_get.c: value read not that expected
>       FAILURE at line 3356 of test_get.c: value read not that expected
>       FAILURE at line 3356 of test_get.c: value read not that expected
>       FAILURE at line 3356 of test_get.c: value read not that expected
>       FAILURE at line 3356 of test_get.c: value read not that expected
>  677 good comparisons.
>       ### 5 FAILURES TESTING nc_get_vars_short! ###
> *** Testing nc_get_vars_int ...
>       FAILURE at line 3531 of test_get.c: value read not that expected
>       FAILURE at line 3531 of test_get.c: value read not that expected
>       FAILURE at line 3531 of test_get.c: value read not that expected
>       FAILURE at line 3531 of test_get.c: value read not that expected
>  1185 good comparisons.
>       ### 4 FAILURES TESTING nc_get_vars_int! ###
> *** Testing nc_get_vars_long ...
>       FAILURE at line 3706 of test_get.c: value read not that expected
>       FAILURE at line 3706 of test_get.c: value read not that expected
>       FAILURE at line 3706 of test_get.c: value read not that expected
>       FAILURE at line 3706 of test_get.c: value read not that expected
>       FAILURE at line 3706 of test_get.c: value read not that expected
>  1184 good comparisons.
>       ### 5 FAILURES TESTING nc_get_vars_long! ###
> *** Testing nc_get_vars_float ...  1194 good comparisons. ok
> *** Testing nc_get_vars_double ...  1207 good comparisons. ok
> *** Testing nc_get_varm_text ...  179 good comparisons. ok
> *** Testing nc_get_varm_uchar ...
>       FAILURE at line 4426 of test_get.c: value read not that expected
>       FAILURE at line 4426 of test_get.c: value read not that expected
>  262 good comparisons.
>       ### 2 FAILURES TESTING nc_get_varm_uchar! ###
> *** Testing nc_get_varm_schar ...
>       FAILURE at line 4609 of test_get.c: value read not that expected
>       FAILURE at line 4609 of test_get.c: value read not that expected
>       FAILURE at line 4609 of test_get.c: value read not that expected
>       FAILURE at line 4609 of test_get.c: value read not that expected
>  265 good comparisons.
>       ### 4 FAILURES TESTING nc_get_varm_schar! ###
> *** Testing nc_get_varm_short ...
>       FAILURE at line 4792 of test_get.c: value read not that expected
>       FAILURE at line 4792 of test_get.c: value read not that expected
>       FAILURE at line 4792 of test_get.c: value read not that expected
>  679 good comparisons.
>       ### 3 FAILURES TESTING nc_get_varm_short! ###
> *** Testing nc_get_varm_int ...
>       FAILURE at line 4975 of test_get.c: value read not that expected
>       FAILURE at line 4975 of test_get.c: value read not that expected
>       FAILURE at line 4975 of test_get.c: value read not that expected
>       FAILURE at line 4975 of test_get.c: value read not that expected
>  1185 good comparisons.
>       ### 4 FAILURES TESTING nc_get_varm_int! ###
> *** Testing nc_get_varm_long ...
>       FAILURE at line 5158 of test_get.c: value read not that expected
>       FAILURE at line 5158 of test_get.c: value read not that expected
>       FAILURE at line 5158 of test_get.c: value read not that expected
>       FAILURE at line 5158 of test_get.c: value read not that expected
>       FAILURE at line 5158 of test_get.c: value read not that expected
>       FAILURE at line 5158 of test_get.c: value read not that expected
>       FAILURE at line 5158 of test_get.c: value read not that expected
>  1182 good comparisons.
>       ### 7 FAILURES TESTING nc_get_varm_long! ###
> *** Testing nc_get_varm_float ...  1194 good comparisons. ok
> *** Testing nc_get_varm_double ...  1207 good comparisons. ok
> *** Testing nc_get_att_text ...  7 good comparisons. ok
> *** Testing nc_get_att_uchar ...  5 good comparisons. ok
> *** Testing nc_get_att_schar ...  7 good comparisons. ok
> *** Testing nc_get_att_short ...
>       FAILURE at line 5875 of test_get.c: value read not that expected
>  14 good comparisons.
>       ### 1 FAILURES TESTING nc_get_att_short! ###
> *** Testing nc_get_att_int ...
>       FAILURE at line 5962 of test_get.c: value read not that expected
>  18 good comparisons.
>       ### 1 FAILURES TESTING nc_get_att_int! ###
> *** Testing nc_get_att_long ...
>       FAILURE at line 6049 of test_get.c: value read not that expected
>  18 good comparisons.
>       ### 1 FAILURES TESTING nc_get_att_long! ###
> *** Testing nc_get_att_float ...  21 good comparisons. ok
> *** Testing nc_get_att_double ...  27 good comparisons. ok
> *** Testing nc_inq_att ... ok
> *** Testing nc_inq_attname ... ok
> *** Testing nc_inq_attid ... ok
> *** Testing nc_inq_attlen ... ok
> *** Testing nc_inq_atttype ... ok
> *** Testing nc_create ... ok
> *** Testing nc_redef ...  1386 good comparisons.  34 good comparisons. ok
> *** Testing nc_enddef ...  1386 good comparisons.  34 good comparisons. ok
> *** Testing nc_sync ...  34 good comparisons.  1386 good comparisons. ok
> *** Testing nc_abort ...  1386 good comparisons.  34 good comparisons. ok
> *** Testing nc_def_dim ... ok
> *** Testing nc_rename_dim ... ok
> *** Testing nc_def_var ... ok
> *** Testing nc_put_var_text ...
>       FAILURE at line 199 of test_put.c: Var value read not that expected
>  178 good comparisons.
>       ### 1 FAILURES TESTING nc_put_var_text! ###
> *** Testing nc_put_var_uchar ...  264 good comparisons. ok
> *** Testing nc_put_var_schar ...  269 good comparisons. ok
> *** Testing nc_put_var_short ...  682 good comparisons. ok
> *** Testing nc_put_var_int ...
>       FAILURE at line 531 of test_put.c: Var value read not that expected
>       FAILURE at line 531 of test_put.c: Var value read not that expected
>       FAILURE at line 531 of test_put.c: Var value read not that expected
>       FAILURE at line 531 of test_put.c: Var value read not that expected
>  1185 good comparisons.
>       ### 4 FAILURES TESTING nc_put_var_int! ###
> *** Testing nc_put_var_long ...
>       FAILURE at line 614 of test_put.c: Var value read not that expected
>       FAILURE at line 614 of test_put.c: Var value read not that expected
>       FAILURE at line 614 of test_put.c: Var value read not that expected
>       FAILURE at line 614 of test_put.c: Var value read not that expected
>  1185 good comparisons.
>       ### 4 FAILURES TESTING nc_put_var_long! ###
> *** Testing nc_put_var_float ...  1194 good comparisons. ok
> *** Testing nc_put_var_double ...
>       FAILURE at line 780 of test_put.c: Var value read not that expected
>  1206 good comparisons.
>       ### 1 FAILURES TESTING nc_put_var_double! ###
> *** Testing nc_put_var1_text ...  179 good comparisons. ok
> *** Testing nc_put_var1_uchar ...  264 good comparisons. ok
> *** Testing nc_put_var1_schar ...  269 good comparisons. ok
> *** Testing nc_put_var1_short ...  682 good comparisons. ok
> *** Testing nc_put_var1_int ...
>       FAILURE at line 531 of test_put.c: Var value read not that expected
>       FAILURE at line 531 of test_put.c: Var value read not that expected
>       FAILURE at line 531 of test_put.c: Var value read not that expected
>       FAILURE at line 531 of test_put.c: Var value read not that expected
>  1185 good comparisons.
>       ### 4 FAILURES TESTING nc_put_var1_int! ###
> *** Testing nc_put_var1_long ...
>       FAILURE at line 614 of test_put.c: Var value read not that expected
>       FAILURE at line 614 of test_put.c: Var value read not that expected
>       FAILURE at line 614 of test_put.c: Var value read not that expected
>       FAILURE at line 614 of test_put.c: Var value read not that expected
>  1185 good comparisons.
>       ### 4 FAILURES TESTING nc_put_var1_long! ###
> *** Testing nc_put_var1_float ...
>       FAILURE at line 1937 of test_put.c: Numeric conversion not
representable
>       FAILURE at line 1937 of test_put.c: Numeric conversion not
representable
>  1194 good comparisons.
>       ### 2 FAILURES TESTING nc_put_var1_float! ###
> *** Testing nc_put_var1_double ...
>       FAILURE at line 2017 of test_put.c: Numeric conversion not
representable
>       FAILURE at line 2017 of test_put.c: Numeric conversion not
representable
>       FAILURE at line 2017 of test_put.c: Numeric conversion not
representable
>       FAILURE at line 780 of test_put.c: Var value read not that expected
>  1206 good comparisons.
>       ### 4 FAILURES TESTING nc_put_var1_double! ###
> *** Testing nc_put_vara_text ...  179 good comparisons. ok
> *** Testing nc_put_vara_uchar ...  264 good comparisons. ok
> *** Testing nc_put_vara_schar ...  269 good comparisons. ok
> *** Testing nc_put_vara_short ...  682 good comparisons. ok
> *** Testing nc_put_vara_int ...
>       FAILURE at line 531 of test_put.c: Var value read not that expected
>       FAILURE at line 531 of test_put.c: Var value read not that expected
>       FAILURE at line 531 of test_put.c: Var value read not that expected
>       FAILURE at line 531 of test_put.c: Var value read not that expected
>  1185 good comparisons.
>       ### 4 FAILURES TESTING nc_put_vara_int! ###
> *** Testing nc_put_vara_long ...
>       FAILURE at line 614 of test_put.c: Var value read not that expected
>       FAILURE at line 614 of test_put.c: Var value read not that expected
>       FAILURE at line 614 of test_put.c: Var value read not that expected
>       FAILURE at line 614 of test_put.c: Var value read not that expected
>  1185 good comparisons.
>       ### 4 FAILURES TESTING nc_put_vara_long! ###
> *** Testing nc_put_vara_float ...  1194 good comparisons. ok
> *** Testing nc_put_vara_double ...
>       FAILURE at line 780 of test_put.c: Var value read not that expected
>  1206 good comparisons.
>       ### 1 FAILURES TESTING nc_put_vara_double! ###
> *** Testing nc_put_vars_text ...  179 good comparisons. ok
> *** Testing nc_put_vars_uchar ...  264 good comparisons. ok
> *** Testing nc_put_vars_schar ...  269 good comparisons. ok
> *** Testing nc_put_vars_short ...  682 good comparisons. ok
> *** Testing nc_put_vars_int ...
>       FAILURE at line 531 of test_put.c: Var value read not that expected
>       FAILURE at line 531 of test_put.c: Var value read not that expected
>       FAILURE at line 531 of test_put.c: Var value read not that expected
>       FAILURE at line 531 of test_put.c: Var value read not that expected
>  1185 good comparisons.
>       ### 4 FAILURES TESTING nc_put_vars_int! ###
> *** Testing nc_put_vars_long ...
>       FAILURE at line 614 of test_put.c: Var value read not that expected
>       FAILURE at line 614 of test_put.c: Var value read not that expected
>       FAILURE at line 614 of test_put.c: Var value read not that expected
>       FAILURE at line 614 of test_put.c: Var value read not that expected
>  1185 good comparisons.
>       ### 4 FAILURES TESTING nc_put_vars_long! ###
> *** Testing nc_put_vars_float ...  1194 good comparisons. ok
> *** Testing nc_put_vars_double ...
>       FAILURE at line 780 of test_put.c: Var value read not that expected
>  1206 good comparisons.
>       ### 1 FAILURES TESTING nc_put_vars_double! ###
> *** Testing nc_put_varm_text ...  179 good comparisons. ok
> *** Testing nc_put_varm_uchar ...  264 good comparisons. ok
> *** Testing nc_put_varm_schar ...  269 good comparisons. ok
> *** Testing nc_put_varm_short ...  682 good comparisons. ok
> *** Testing nc_put_varm_int ...
>       FAILURE at line 531 of test_put.c: Var value read not that expected
>       FAILURE at line 531 of test_put.c: Var value read not that expected
>       FAILURE at line 531 of test_put.c: Var value read not that expected
>       FAILURE at line 531 of test_put.c: Var value read not that expected
>  1185 good comparisons.
>       ### 4 FAILURES TESTING nc_put_varm_int! ###
> *** Testing nc_put_varm_long ...
>       FAILURE at line 614 of test_put.c: Var value read not that expected
>       FAILURE at line 614 of test_put.c: Var value read not that expected
>       FAILURE at line 614 of test_put.c: Var value read not that expected
>       FAILURE at line 614 of test_put.c: Var value read not that expected
>  1185 good comparisons.
>       ### 4 FAILURES TESTING nc_put_varm_long! ###
> *** Testing nc_put_varm_float ...  1194 good comparisons. ok
> *** Testing nc_put_varm_double ...
>       FAILURE at line 780 of test_put.c: Var value read not that expected
>  1206 good comparisons.
>       ### 1 FAILURES TESTING nc_put_varm_double! ###
> *** Testing nc_rename_var ...
>       FAILURE at line 749 of util.c: Var value read not that expected
>  1385 good comparisons.
>       ### 1 FAILURES TESTING nc_rename_var! ###
> *** Testing nc_put_att_text ...  7 good comparisons. ok
> *** Testing nc_put_att_uchar ...  5 good comparisons. ok
> *** Testing nc_put_att_schar ...  7 good comparisons. ok
> *** Testing nc_put_att_short ...  15 good comparisons. ok
> *** Testing nc_put_att_int ...
>       FAILURE at line 1158 of test_put.c: att. value read not that expected
>  18 good comparisons.
>       ### 1 FAILURES TESTING nc_put_att_int! ###
> *** Testing nc_put_att_long ...
>       FAILURE at line 1232 of test_put.c: att. value read not that expected
>  18 good comparisons.
>       ### 1 FAILURES TESTING nc_put_att_long! ###
> *** Testing nc_put_att_float ...  21 good comparisons. ok
> *** Testing nc_put_att_double ...  27 good comparisons. ok
> *** Testing nc_copy_att ...  34 good comparisons. ok
> *** Testing nc_rename_att ...  34 good comparisons. ok
> *** Testing nc_del_att ... ok
> *** Testing nc_set_fill ...  2796 good comparisons. ok
>
> Total number of failures: 138
> gmake[2]: *** [test] Error 1
> gmake[2]: Leaving directory `/home/jsaenz/netcdf-3.3.1/src/nc_test'
> gmake[1]: *** [subdir_target] Error 1
> gmake[1]: Leaving directory `/home/jsaenz/netcdf-3.3.1/src'
> gmake: *** [nc_test/test] Error 2
>
>
>
> Thanks in advance by your help.
>
>
> Jon Saenz
> Condensed Matter Physics Dept.
> Faculty of Sciences
> University of the Basque Country
> P.O. Box 644
> 48080 Bilbao
> SPAIN

The output makes me wonder what is going on in the test program,
especially lines like
FAILURE at line 297 of test_get.c: expected: -128, got: -128
The test writes out selected values and reads them back in,
comparing what comes back to what went out. The comparisons are
generally promoted to "double". Something seems to be problematic
in this area. (As far as I know, 128 is equal to 128!)

Don't be too concerned about this. 90% of the problems we have
with nc_test and nf_test are with the tests themselves. (Arrgh.)

If it's not too much trouble, grab
ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-3.4atd.tar.Z
This is the release we are currently testing.
I think that there are some changes to nc_test
which give more meaningful diagnostics.

I believe you are using the gnu compiler. What version?
(cc -v should tell you.)

Thanks
-glenn