@yernisrinivasnekkali , you may want to try 1.14.4 snapshot:
curl -O -L https://github.com/HDFGroup/hdf5/archive/refs/tags/snapshot-1.14.tar.gz
tar zxf snapshot-1.14.tar.gz
cd hdf5-snapshot-1.14
./configure --prefix=/tmp CC="$(which icx)" FC="$(which ifx)" --enable-build-mode=production --enable-fortran
make -j
make check -j
I tested it yesterday and --enable-fortran
worked fine with 2024.1 Intel oneAPI.