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

[netCDF #KAB-833199]: NetCDF fails to compile with HDF5



> Hi
>
> I've been trying to compile NetCDF-4 with HDF5 support. It fails the 'make
> check' and it seems to be an error in the call to the hdf5 library.
>
> I just made a fresh install of hdf5-1.8.1 compiled with the following
> options:
> ./configure --prefix=/usr/local/hdf5-intel
> --with-zlib=/usr/local/zlib-intel --enable-fortran
>
> The error is:
> libtool: link: ifort -I../fortran -I../f90 -I/usr/local/hdf5-intel/include
> -I/usr/local/zlib-intel/include -I../libsrc4 -I../f90 -g -o f90tst_vars
> f90tst_vars.o  -L/usr/local/hdf5-intel/lib -L/usr/local/zlib-intel/lib
> ../libsrc4/.libs/libnetcdf.a /usr/local/hdf5-intel/lib/libhdf5_hl.a
> /usr/local/hdf5-intel/lib/libhdf5.a -lz -lm
> /usr/local/hdf5-intel/lib/libhdf5.a(H5Ztrans.o): In function
> `H5Z_xform_eval_full':
> H5Ztrans.c:(.text+0x2c88): undefined reference to `__svml_idiv4'
> H5Ztrans.c:(.text+0x2cb7): undefined reference to `__svml_idiv4'
> H5Ztrans.c:(.text+0x2f01): undefined reference to `__svml_udiv4'
> H5Ztrans.c:(.text+0x2f30): undefined reference to `__svml_udiv4'
> H5Ztrans.c:(.text+0x30ef): undefined reference to `__svml_idiv4'
> H5Ztrans.c:(.text+0x311e): undefined reference to `__svml_idiv4'
> H5Ztrans.c:(.text+0x3366): undefined reference to `__svml_udiv4'
> H5Ztrans.c:(.text+0x3395): undefined reference to `__svml_udiv4'
> make[2]: *** [f90tst_vars] Error 1
> make[2]: se sale del directorio `/home/models/netcdf-4.0/nf_test'
> make[1]: *** [check-am] Error 2
> make[1]: se sale del directorio `/home/models/netcdf-4.0/nf_test'
> make: *** [check-recursive] Error 1
>
> See attached logs for further configurations.
>

Did you make sure to build HDF5 with --with-zlib=/somewhere which points to a
place that contains zlib-1.2.3 (or 1.2.4)?

Did you do a make check for the HDF5 build? If not, please do so.

Thanks,

Ed

Ticket Details
===================
Ticket ID: KAB-833199
Department: Support netCDF
Priority: Normal
Status: Closed