Building HDF5 using mpifortran in NVIDIA HPC SDK

Hi all, I am trying to build parallel HDF5 using the mpifortran given by the NVIDIA HPC SDK 24.5. However, I was unable to build the HDF5. The error message is

gfortran: error: libhdf5_fortran.so.102: No such file or directory
gfortran: error: unrecognized command line option ‘-rpath’
gfortran: error: unrecognized command line option ‘-rpath’
gfortran: error: unrecognized command line option ‘-soname’

Do anyone know how to solve these issues?

gfortran is not a NVIDIA compiler. (it is also not nvcc, which is what this forum is about, nor does nvcc call gfortran, ever)

questions about using nvfortran should be asked on the forum for that.