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

[netCDF #IUR-903346]: Possible bug on netcdf-fortran-4.4.0?



Hello,

(...)

> I have successfully installed the core libraries (from netcdf-4.3.2.tar) :)
> 
> I do not intend to any fancy feature such as remote clients or Parallel
> I/O, so I installed a static version of the core libraries successfully.
> 
> However, when trying to install the Fortran wrappers, (from the file
> netcdf-fortran-4.4.0), I get the compile-time error:
> 
> export
> CPPFLAGS="-I/Users/mariangelgarcia/Libraries/netcdf-4.3.2-build/include/“
> export
> LD_LIBRARY_PATH="/Users/mariangelgarcia/Libraries/netcdf-4.3.2-build/lib”
> export LDFLAGS="-L/Users/mariangelgarcia/Libraries/netcdf-4.3.2-build/lib”
> export LIBS="-lnetcdf”
> ./configure --disable-shared
> --prefix=/Users/mariangelgarcia/Libraries/netcdf-fortran-4.4.0-build/
> --disable-fortran-type-check
> 

Did the version of the netcdf-c library you installed include hdf5 support? If 
so, you will need to change your LIBS to include "-lhdf5 -lhdf5_hl".  If you 
did not include hdf5 support, you may be encountering a known bug that is fixed 
in the upcoming netcdf-fortran release.  You might try the 
netcdf-fortran-4.4.1-rc1 release and see if that fixes this issue for you.  It 
is available from  
https://github.com/Unidata/netcdf-fortran/releases/tag/v4.4.1-rc1.


> The configure step works 0k. (Is there a way to automate setting the values
> for these env. variables?)
> 

If the locations are outside of the standard locations on OSX, there really 
isn't a safe way to disable this.  You might add these paths to your .profile 
so they are set when you log in, but it's highly likely this will lead to 
undesirable side effects.


Let me know if either changing LIBS or trying the 4.4.1 release candidate 
doesn't work for you and we will see what else we can try.

Thanks, have a good day,

-Ward


> make check yields the following:
> 
> Angies-MacBook-Pro:netcdf-fortran-4.4.0 mariangelgarcia$ make check
> Making check in fortran
> gfortran -DHAVE_CONFIG_H -I. -I.. -I../libsrc
> -I/Users/mariangelgarcia/Libraries/netcdf-4.3.2-build/include/  -g -O2 -c
> -o module_netcdf_nc_data.o module_netcdf_nc_data.F90
> gfortran  -g -O2 -c -o module_netcdf_nc_interfaces.o
> module_netcdf_nc_interfaces.f90
> gfortran -DHAVE_CONFIG_H -I. -I.. -I../libsrc
> -I/Users/mariangelgarcia/Libraries/netcdf-4.3.2-build/include/  -g -O2 -c
> -o module_netcdf_nf_data.o module_netcdf_nf_data.F90
> gfortran -DHAVE_CONFIG_H -I. -I.. -I../libsrc
> -I/Users/mariangelgarcia/Libraries/netcdf-4.3.2-build/include/  -g -O2 -c
> -o module_netcdf_nf_interfaces.o module_netcdf_nf_interfaces.F90
> gfortran  -g -O2 -c -o module_netcdf_f03.o  module_netcdf_f03.f90
> gfortran  -g -O2 -c -o module_netcdf_fortv2_c_interfaces.o
> module_netcdf_fortv2_c_interfaces.f90
> gfortran  -g -O2 -c -o typeSizes.o  typeSizes.f90
> gfortran  -g -O2 -c -o netcdf.o  netcdf.f90
> netcdf_overloads.f90:13.52:
> Included at netcdf.f90:48:
> 
> nf90_def_var_fill_FourByteReal, &
> 1
> Error: Procedure 'nf90_def_var_fill_eightbytereal' in generic interface
> 'nf90_def_var_fill' at (1) is neither function nor subroutine
> netcdf_overloads.f90:22.52:
> Included at netcdf.f90:48:
> 
> nf90_inq_var_fill_FourByteReal, &
> 1
> Error: Procedure 'nf90_inq_var_fill_eightbytereal' in generic interface
> 'nf90_inq_var_fill' at (1) is neither function nor subroutine
> make[1]: *** [netcdf.o] Error 1
> make: *** [check-recursive] Error 1
> Angies-MacBook-Pro:netcdf-fortran-4.4.0 mariangelgarcia$
> 
> Any hint as to what could I be doing wrong? I am pretty sure I followed all
> of the steps correctly, yet, I got that problem.
> 
> Thanks in advanced and kindest regards,
> 
> PS:
> 
> Angies-MacBook-Pro:Libraries mariangelgarcia$ *gfortran --version*
> 
> *GNU Fortran (GCC) 4.9.0*
> 
> Copyright (C) 2014 Free Software Foundation, Inc.
> 
> 
> GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
> 
> You may redistribute copies of GNU Fortran
> 
> under the terms of the GNU General Public License.
> 
> For more information about these matters, see the file named COPYING
> 
> 
> Angies-MacBook-Pro:Libraries mariangelgarcia$ *gcc --version*
> 
> *gcc (GCC) 4.8.0 20120930 (experimental)*
> 
> Copyright (C) 2012 Free Software Foundation, Inc.
> 
> This is free software; see the source for copying conditions.  There is NO
> 
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> 
> Angies-MacBook-Pro:Libraries mariangelgarcia$
> 
> 

Ticket Details
===================
Ticket ID: IUR-903346
Department: Support netCDF
Priority: Normal
Status: Closed