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

**URL:** <https://forum.hdfgroup.org/t/how-to-compile-v-1-10-7-on-rhel-oneapi-error-c-compiler-cannot-create-executables/12257>\
**Category:** HDF5 Library\
**Created:** [April 29, 2024, 10:22pm UTC](https://forum.hdfgroup.org/t/how-to-compile-v-1-10-7-on-rhel-oneapi-error-c-compiler-cannot-create-executables/12257 "2024-04-29T22:22:52Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![hyoklee](https://forum.hdfgroup.org/user_avatar/forum.hdfgroup.org/hyoklee/32/1528_2.png) [@hyoklee](https://forum.hdfgroup.org/u/hyoklee)\
**Post date:** [April 30, 2024, 5:17pm UTC](https://forum.hdfgroup.org/t/how-to-compile-v-1-10-7-on-rhel-oneapi-error-c-compiler-cannot-create-executables/12257/3 "2024-04-30T17:17:42Z")

</div>

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:

> <https://github.com/hyoklee/actions/blob/main/.github/workflows/lin-auto-icx-f-p.yml>

Here’s a proof:

> **[GitHub - hyoklee/actions: Test GitHub Actions](https://github.com/hyoklee/actions/?tab=readme-ov-file#parallel)**
>
> Test GitHub Actions. Contribute to hyoklee/actions development by creating an account on GitHub.

I hope this helps!

See also: [instaltion of hdf5 with latest intel compilers - #5 by hyoklee](https://forum.hdfgroup.org/t/instaltion-of-hdf5-with-latest-intel-compilers/12142/5)

---

_[View the full topic](https://forum.hdfgroup.org/t/how-to-compile-v-1-10-7-on-rhel-oneapi-error-c-compiler-cannot-create-executables/12257)._
