trilinos / Trilinos

Primary repository for the Trilinos Project
https://trilinos.org/
Other
1.2k stars 564 forks source link

Finding hdf5 #12370

Open VictorEijkhout opened 12 months ago

VictorEijkhout commented 12 months ago
-- Using find_package(HDF5 ...) ...
-- Found HDF5: hdf5-shared (found version "1.14.0") found components: C
TRIBITS_TPL_FIND_INCLUDE_DIRS_AND_LIBRARIES: HDF5
-- PARSE_REQUIRED_HEADERS='hdf5.h'
-- PARSE_REQUIRED_LIBS_NAMES='hdf5;z;hdf5_hl'
-- TPL_HDF5_INCLUDE_DIRS='/home1/apps/intel23/impi21_9/phdf5/1.14.0/include'
-- TPL_HDF5_LIBRARIES='hdf5-shared'
-- HDF5_LIBRARY_NAMES='hdf5;z;hdf5_hl'

However, no hdf5-shared library exists, leading to:

/opt/apps/gcc/12.2.0/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lhdf5-shared

When I expicitly specified the library names:

  -D TPL_ENABLE_HDF5:BOOL=ON \
  -D HDF5_INCLUDE_DIRS:PATH=${TACC_HDF5_INC}    \
  -D HDF5_LIBRARY_DIRS:PATH=${TACC_HDF5_LIB}    \
  -D HDF5_LIBRARY_NAMES='hdf5;z;hdf5_hl' \

installation worked fine. Is your hdf5 finder too easily satisfied?

jhux2 commented 12 months ago

May be caused by #12362. Once that's reverted by #12372, please update and try again.