Warning about HDF5 Library during compilation

Submitted by rexlee324 on Fri, 07/30/2021 - 02:20

During the compilation of the vortex tracker, I got the following warning:

ld: warning: libhdf5_hl.so.100, needed by /opt/share/netcdf-4.6.1/lib/libnetcdf.so, may conflict with libhdf5_hl.so.8
ld: warning: libhdf5.so.101, needed by /opt/share/netcdf-4.6.1/lib/libnetcdf.so, may conflict with libhdf5.so.8

 

Nonetheless, the compilation seemed to have succeed with the creation of all the executable files. 

My environment for compilation is as follows:

# GFDL Vortex Tracker
module purge
module load zlib
module load pnetcdf
module load intel  
source /opt/share/netcdf/4.6.1/netcdf-4.6.1.sh
source /storage01/chpc-optshare/hdf5/1.10.2/hdf5-1.10.2.sh
export HDF5_INC=$HDF5/include
export HDF5_LIB=$HDF5/lib
source /opt/share/jasper/1.900.1/jasper-1.900.1.sh
source /opt/share/libpng/1.6.36/libpng-1.6.36.sh
export LIB_Z_PATH=/opt/share/zlib/1.2.11/
export LIB_PNG_PATH=/opt/share/libpng/1.6.36/
export LIB_JASPER_PATH=/opt/share/jasper/1.900.1/
export PNETCDF=/opt/share/pnetcdf/intel/intelmpi/1.12.2
export PNETCDF_INC=$PNETCDF/include
export PNETCDF_LIB=$PNETCDF/lib

Running ls $HDF5/lib gives:

libhdf5.a                   libhdf5_hl.a                  libhdf5_hl.la          libhdf5.so
libhdf5_fortran.a           libhdf5hl_fortran.a           libhdf5_hl.so          libhdf5.so.101
libhdf5_fortran.la          libhdf5hl_fortran.la          libhdf5_hl.so.100      libhdf5.so.101.1.0
libhdf5_fortran.so          libhdf5hl_fortran.so          libhdf5_hl.so.100.1.0
libhdf5_fortran.so.100      libhdf5hl_fortran.so.100      libhdf5.la
libhdf5_fortran.so.100.1.1  libhdf5hl_fortran.so.100.0.2  libhdf5.settings

Any advice on resolving the warning will be appreciated. I have attached the compilation log below.

Thanks!
 

 

tracker_log.pdf

Hi,

It seems there may be conflict in getting the correct HDF5 libraries. Do you need HDF5_INC and HDF5_LIB in your environment? Are you using the same HDF version that was used to compile netCDF4? I will check those first to make sure they are the same. 

Thanks

Biswas

Attach Files