Error configuring HDF5 1.12.0 with Fortran


#1

When I configure using ctest and build without Fortran, all goes well. But when I attempt to configure to include Fortran by modifying HDF5options.cmake I get configuration error. When I tried using cmake-gui instead, I get this error:

CMake Error at config/cmake/HDF5UseFortran.cmake:206 (file):
  file failed to open for reading (No such file or directory):

    C:/DARWIN/devel/test-programs/HDF5_from_src/CMake-hdf5-1.12.0/build/pac_fconftest.out
Call Stack (most recent call first):
  CMakeLists.txt:956 (include)


CMake Error at config/cmake/HDF5UseFortran.cmake:211 (list):
  list GET given empty list
Call Stack (most recent call first):
  CMakeLists.txt:956 (include)


CMake Error at config/cmake/HDF5UseFortran.cmake:212 (list):
  list GET given empty list
Call Stack (most recent call first):
  CMakeLists.txt:956 (include)


CMake Error at config/cmake/HDF5UseFortran.cmake:213 (list):
  list GET given empty list
Call Stack (most recent call first):
  CMakeLists.txt:956 (include)


CMake Error at config/cmake/HDF5UseFortran.cmake:217 (message):
  Failed to find available INTEGER KINDs for Fortran
Call Stack (most recent call first):
  CMakeLists.txt:956 (include)

#2

build/pac_fconftest.out is a generated file needed for configuring Fortran.
This usually happens when the config time runners donā€™t execute.

Allen


#3

My bad. I was inadvertently invoking a old ctest (v3.12) that was in the path. That was causing error. When I used 3.18 the build went through without issues. Thanks.