How to compile v 1.10.7 on RHEL oneAPI: error: C compiler cannot create executables

Hi, @rk3199 !

Please try

  1. HDF5 1.14.4.2 (latest release)
  2. Intel OneAPI 2024.1 (latest release)
  3. ./configure --prefix=/tmp CXX=“$(which mpiicpc) -cc=$(which icpx)” CC=“$(which mpiicc) -cc=$(which icx)” FC=“$(which mpiifort) -fc=$(which ifx)” LDFLAGS=“-L/opt/intel/oneapi/mpi/latest/lib” --enable-fortran --enable-parallel

Here’s a complete working example of GitHub Action:

Here’s a proof:

I hope this helps!

See also: instaltion of hdf5 with latest intel compilers - #5 by hyoklee

1 Like