Skip to content

[ERROR] Cmake Compiling Error for Loading Hdf5 Module for Output #82

@BradenBuck

Description

@BradenBuck

I've been able to compile and run the code without output, but not with the output option enabled. When using the Output=ON option for compiling (using gcc v13.2.0), the hdf5 module must be loaded. On the Stampede3 cluster, when hdf5 version 1.14.4 is loaded, the following error will be thrown.

CMake Error at cmake/dependencies.cmake:84 (get_directory_property):
  get_directory_property DIRECTORY argument provided but requested directory
  not found.  This could be because the directory argument was invalid or, it
  is valid but has not been processed yet.
Call Stack (most recent call first):
  CMakeLists.txt:102 (find_or_fetch_dependency)

CMake Error at CMakeLists.txt:117 (message):
  HDF5_ROOT is not set.  Please set it to the root of the HDF5 installation

As a workaround, when the HDF5_ROOT variable is exported manually via the terminal to the path in the module's lua file (/opt/apps/gcc13/hdf5/1.14.4), the compiler states that it has found the correct hdf5 version, but still throws an error.

CMake Error at cmake/dependencies.cmake:84 (get_directory_property):
  get_directory_property DIRECTORY argument provided but requested directory
  not found.  This could be because the directory argument was invalid or, it
  is valid but has not been processed yet.
Call Stack (most recent call first):
  CMakeLists.txt:102 (find_or_fetch_dependency)

-- Found HDF5: hdf5-shared (found version "1.14.4")

"$git diff CMakeLists.txt" showed no differences between the local file and the one in the github repository. Performing a fresh github clone, exporting the HDF5_ROOT variable, and compiling still presented the same error.

Metadata

Metadata

Assignees

Labels

compilationBuilding/compilation errorssupport neededIssues with code usage not resulting from the code being wrong

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions