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

[netCDF #LEF-356666]: compiling parallel NetCDF problems



> Morning (at least here)
> 
> Still not there ....
> 
> hdf_ver=1.8.6
> netcdf_ver=4.1.3-rc1-ed2011051617
> FC=mpif90 CC=mpicc LIBS=-lm  ./configure 
> --prefix=/opt/netcdf-${netcdf_ver}_IFORT-par --enable-dap --enable-netcdf4 
> --enable-ncgen4 --with-hdf5=/opt/hdf5-par/ -enable-parallel-tests
> 
> make[2]: Entering directory
> `/data/kb/compile/netcdf-4.1.3-rc1-ed2011051617/libsrc4'
> /bin/bash ../libtool  --tag=CC   --mode=compile mpicc -DHAVE_CONFIG_H
> -I. -I.. -I../fortran  -I../include -I../oc     -g -O2 -MT
> libnetcdf4_la-nc4file.lo -MD -MP -MF .deps/libnetcdf4_la-nc4file.Tpo -c
> -o libnetcdf4_la-nc4file.lo `test -f 'nc4file.c' || echo './'`nc4file.c
> libtool: compile:  mpicc -DHAVE_CONFIG_H -I. -I.. -I../fortran
> -I../include -I../oc -g -O2 -MT libnetcdf4_la-nc4file.lo -MD -MP -MF
> .deps/libnetcdf4_la-nc4file.Tpo -c nc4file.c  -fPIC -DPIC -o
> .libs/libnetcdf4_la-nc4file.o
> nc4file.c: In function 'nc4_create_file':
> nc4file.c:272: error: 'H5F_LIBVER_18' undeclared (first use in this
> function)
> nc4file.c:272: error: (Each undeclared identifier is reported only once
> nc4file.c:272: error: for each function it appears in.)
> make[2]: *** [libnetcdf4_la-nc4file.lo] Error 1
> 
> Karsten
> 

Howdy Karsten!

OK, this is a much easier problem. I took away the --with-hdf5= option to 
configure, so your compiler is finding another (older) HDF5 include file 
somewhere, and using that.

The reason, if you are interested, can be found here:
https://www.unidata.ucar.edu/jira/browse/NCF-20

What you want to do is set CPPFLAGS and LDFLAGS, like this:

CPPFLAGS=-I/opt/hdf5-par/include LDFLAGS=-L/opt/hdf5-par/lib FC=...

and leave out the --with-hdf5 option (which is ignored). You also do not need 
to say --enable-dap --enable-netcdf-4 --enable-ncgen4 as these are all defaults.

Everyone else who had these sort of problems with the ifort compiler has 
reported success. 

The latest snapshot is here:
ftp://ftp.unidata.ucar.edu/pub/netcdf/snapshot/netcdf-4-daily.tar.gz

Thanks,

Ed

Ticket Details
===================
Ticket ID: LEF-356666
Department: Support netCDF
Priority: High
Status: Closed


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.