error building hdf5 with nvhpc

I am attempting to build hdf5 using the nvhpc 23.5 software suite with the eventual goal of linking it to VASP. I have not had success so far.

OS:
Red Hat Enterprise Linux 8

modules loaded:
cuda 12.2.0
nvhpc/23.5
openmpi/4.1.5

I have tried to build with both make and cmake with the same results.
setup:
tar -zxvf hdf5-hdf5-1_14_2.tar.gz
mkdir hdf5
cd hdf5

make version (obtained from nvidia forums Help configuring HDF5 with NVHPC: no version information available - nvc, nvc++ and nvfortran - NVIDIA Developer Forums) :
…/hdf5-hdf5-1_14_2/configure --prefix=/home/preston.vargas/software/hdf5 --enable-shared --enable-static --enable-fortran --enable-hl --enable-parallel --with-zlib --with-szlib=/home/preston.vargas/software/szip-1.12b CC=mpicc FC=mpifort F77=mpifort CPP=cpp CFLAGS=“-fPIC -O1 -nomp” FCFLAGS=“-fPIC -O1 -nomp” FFLAGS=“-fPIC -O1 -nomp”
make -j8 install

result:

make[2]: Nothing to be done for ‘install-data-am’.
/usr/bin/mkdir -p ‘/home/preston.vargas/software/hdf5/bin’
/usr/bin/install -c h5redeploy ‘/home/preston.vargas/software/hdf5/bin’
/usr/bin/install: ‘h5redeploy’ and ‘/home/preston.vargas/software/hdf5/bin/h5redeploy’ are the same file
make[2]: *** [Makefile:843: install-binSCRIPTS] Error 1
make[2]: Leaving directory ‘/home/preston.vargas/software/hdf5/bin’
make[1]: *** [Makefile:1081: install-am] Error 2
make[1]: Leaving directory ‘/home/preston.vargas/software/hdf5/bin’
make: *** [Makefile:729: install-recursive] Error 1

cmake version (obtained from nvidia forums as well: How to build parallel hdf5 with nvhpc? - #3 by nightroxide - nvc, nvc++ and nvfortran - NVIDIA Developer Forums) :
cmake -DCMAKE_C_COMPILER=which mpicc -DHDF5_BUILD_FORTRAN=ON -DCMAKE_INSTALL_PREFIX=/home/preston.vargas/software/hdf5 -DHDF5_ENABLE_PARALLEL=ON …/hdf5-hdf5-1_14_2

result:

make[2]: Nothing to be done for ‘install-data-am’.
/usr/bin/mkdir -p ‘/home/preston.vargas/software/hdf5/bin’
/usr/bin/install -c h5redeploy ‘/home/preston.vargas/software/hdf5/bin’
/usr/bin/install: ‘h5redeploy’ and ‘/home/preston.vargas/software/hdf5/bin/h5redeploy’ are the same file
make[2]: *** [Makefile:843: install-binSCRIPTS] Error 1
make[2]: Leaving directory ‘/home/preston.vargas/software/hdf5/bin’
make[1]: *** [Makefile:1081: install-am] Error 2
make[1]: Leaving directory ‘/home/preston.vargas/software/hdf5/bin’
make: *** [Makefile:729: install-recursive] Error 1

I don’t really know what to do about this error, and I’ve been searching for a solution for this for a while now. I appreciate any help.

Thanks.

Has anyone had any success compiling hdf5 with nvhpc?

I could compile HDF5 develop branch with NVHP 23.7 on Ubuntu 22.04 using Autotools:

hdf5/.github/workflows/lin-auto-nvhpc.yml at develop · hyoklee/hdf5