Undefined reference to __extendhfxf2 while building parallel HDF5 1.14.6 with NVHPC 24.11

Hi,

I’m attempting to build MPI-enabled HDF 1.14.6 with NVHPC 24.11 and cmake 3.30.2 on a Redhat EL8 machine.

The module (from nvhpc/modulefiles) used is:

nvhpc-hpcx-cuda12/24.11

The cmake line:

cmake .. -DCMAKE_INSTALL_PREFIX=/work1/u8935479/nvidia/netcdf-4.9.3 -DHDF5_BUILD_FORTRAN=ON -DHDF5_ENABLE_PARALLEL=ON -DCMAKE_VERBOSE_MAKEFILE=ON

Then I got error as:

[ 20%] Linking C executable ../bin/cache_tagging
cd /work1/u8935479/bld/hdf5-1.14.6/build/test && /home/yhtseng00/coda/tools/cmake-3.30.2/bin/cmake -E cmake_link_script CMakeFiles/cache_tagging.dir/link.txt --verbose=1
/work1/u8935479/nvidia/hpc_sdk/Linux_x86_64/24.11/compilers/bin/nvc -c99 -Minform=warn -s -Wl,-rpath -Wl,/work1/u8935479/nvidia/hpc_sdk/Linux_x86_64/24.11/comm_libs/12.6/hpcx/hpcx-2.20/ompi/lib -Wl,–enable-new-dtags -pthread -Wl,-rpath -Wl,/work1/u8935479/nvidia/hpc_sdk/Linux_x86_64/24.11/comm_libs/12.6/hpcx/hpcx-2.20/ompi/lib -Wl,–enable-new-dtags -pthread CMakeFiles/cache_tagging.dir/cache_tagging.c.o -o ../bin/cache_tagging -Wl,-rpath,“$ORIGIN/../lib:$ORIGIN/” ../bin/libhdf5_test.so.310.5.1 -lm ../bin/libhdf5.so.310.5.1 -ldl /work1/u8935479/nvidia/hpc_sdk/Linux_x86_64/24.11/comm_libs/12.6/hpcx/hpcx-2.20/ompi/lib/libmpi.so -Wl,-rpath-link,/work1/u8935479/nvidia/netcdf-4.9.3/lib64
../bin/libhdf5.so.310.5.1: undefined reference to __extendhfxf2' ../bin/libhdf5.so.310.5.1: undefined reference to __truncxfhf2’
make[2]: *** [test/CMakeFiles/cache_tagging.dir/build.make:103: bin/cache_tagging] Error 2
make[2]: Leaving directory ‘/work1/u8935479/bld/hdf5-1.14.6/build’
make[1]: *** [CMakeFiles/Makefile2:2882: test/CMakeFiles/cache_tagging.dir/all] Error 2
make[1]: Leaving directory ‘/work1/u8935479/bld/hdf5-1.14.6/build’
make: *** [Makefile:169: all] Error 2

Did I miss something in the LDFLAGS or such?

Hi Mike and welcome!

I’m not sure what’s wrong here but have a email out to the folks who build our libraries to see if they have any ideas.

-Mat

They suggest you update the compiler version. Looks like we didn’t add this builtin routine until the 25.5 release.

You can find our latest release, 25.11, here: NVIDIA HPC SDK Current Release Downloads | NVIDIA Developer

Great! I’ll try if it works.

Thank you :)