<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: compiling HDF5P 1.10.7 --enable-fortran fails with error: C compiler cannot create executables in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/compiling-HDF5P-1-10-7-enable-fortran-fails-with-error-C/m-p/1593872#M11680</link>
    <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/298242"&gt;@RobbieTheK&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You set:&lt;BR /&gt;MPICC='mpiicc -cc=icx'&lt;BR /&gt;MPICXX='mpiicpc -cxx=icpx'&lt;BR /&gt;MPIF77='mpiifort -fc=ifx'&lt;BR /&gt;MPIF90='mpiifort -fc=ifx'&lt;BR /&gt;MPIFC='mpiifort -fc=ifx'&lt;BR /&gt;&lt;BR /&gt;which is not recognized by configure.&lt;BR /&gt;&lt;BR /&gt;Just please use the corresponding llvm wrapper scripts&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="bash"&gt;./configure --prefix=/cluster/shared/apps/hdf5p/1.10.7 --enable-fortran --enable-parallel CC=mpiicx FC=mpiifx CXX=mpiicpx CFLAGS="-fPIC -O3 -xHost -ip -fno-alias -align" FFLAGS="-fPIC -O3 -xHost -ip -fno-alias -align" CXXFLAGS="-fPIC -O3 -xHost -ip -fno-alias -align"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;+ I think I remember there was an issue with -align so I would just skip it and use -O3 -xHOST as compiler flags.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Apr 2024 13:55:36 GMT</pubDate>
    <dc:creator>TobiasK</dc:creator>
    <dc:date>2024-04-30T13:55:36Z</dc:date>
    <item>
      <title>compiling HDF5P 1.10.7 --enable-fortran fails with error: C compiler cannot create executables</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/compiling-HDF5P-1-10-7-enable-fortran-fails-with-error-C/m-p/1593576#M11679</link>
      <description>&lt;P&gt;Very similar to&amp;nbsp;&lt;A href="https://community.intel.com/t5/Intel-MPI-Library/How-to-build-HDF5-using-Intel-compiler/m-p/1359488?profile.language=fr" target="_self"&gt;How to build HDF5 using Intel compiler? &lt;/A&gt;&lt;/P&gt;&lt;P&gt;What options do I need to get&amp;nbsp; --enable-fortran to work? Just --enable-parallel works without errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;checking for gcc... mpiicc&lt;BR /&gt;checking whether the C compiler works... no&lt;BR /&gt;configure: error: in `/&lt;SPAN&gt;cluster&lt;/SPAN&gt;/home/me/hdf5-hdf5-1_10_7':&lt;BR /&gt;configure: error: C compiler cannot create executables&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;./configure --prefix=/cluster/shared/apps/hdf5p/1.10.7 --enable-fortran --enable-parallel CC=mpiicc FC=mpiifort CXX=mpiicpc CFLAGS="-fPIC -O3 -xHost -ip -fno-alias -align" FFLAGS="-fPIC -O3 -xHost -ip -fno-alias -align" CXXFLAGS="-fPIC -O3 -xHost -ip -fno-alias -align" FFLAGS="-I$INTEL/oneapi/mpi/latest/include -L$INTEL/oneapi/mpi/latest/lib" &lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;module loaded:&lt;/P&gt;&lt;PRE&gt;1) oneapi/tbb/2021.11 &lt;LI-EMOJI id="lia_smiling-face-with-sunglasses" title=":smiling_face_with_sunglasses:"&gt;&lt;/LI-EMOJI&gt; oneapi/intel_ipp_intel64/2021.10 15) oneapi/dal/2024.0.0&lt;BR /&gt;2) oneapi/oclfpga/2024.0.0 9) oneapi/ifort/2024.0.2 16) oneapi/compiler/2024.0.2&lt;BR /&gt;3) oneapi/compiler-rt/2024.0.2 10) oneapi/dpl/2022.3 17) oneapi/ccl/2021.11.2&lt;BR /&gt;4) oneapi/vtune/2024.0 11) oneapi/dpct/2024.0.0 18) oneapi/advisor/2024.0&lt;BR /&gt;5) oneapi/mpi/2021.11 12) oneapi/dnnl/3.3.0 19) oneapi/2024.0.0/2024.0.0&lt;BR /&gt;6) oneapi/mkl/2024.0 13) oneapi/dev-utilities/2024.0.0 20) oneapi/hpctoolkit/mpi/2021.11&lt;BR /&gt;7) oneapi/intel_ippcp_intel64/2021.9 14) oneapi/debugger/2024.0.0&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 19:09:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/compiling-HDF5P-1-10-7-enable-fortran-fails-with-error-C/m-p/1593576#M11679</guid>
      <dc:creator>RobbieTheK</dc:creator>
      <dc:date>2024-04-29T19:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: compiling HDF5P 1.10.7 --enable-fortran fails with error: C compiler cannot create executables</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/compiling-HDF5P-1-10-7-enable-fortran-fails-with-error-C/m-p/1593872#M11680</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/298242"&gt;@RobbieTheK&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You set:&lt;BR /&gt;MPICC='mpiicc -cc=icx'&lt;BR /&gt;MPICXX='mpiicpc -cxx=icpx'&lt;BR /&gt;MPIF77='mpiifort -fc=ifx'&lt;BR /&gt;MPIF90='mpiifort -fc=ifx'&lt;BR /&gt;MPIFC='mpiifort -fc=ifx'&lt;BR /&gt;&lt;BR /&gt;which is not recognized by configure.&lt;BR /&gt;&lt;BR /&gt;Just please use the corresponding llvm wrapper scripts&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="bash"&gt;./configure --prefix=/cluster/shared/apps/hdf5p/1.10.7 --enable-fortran --enable-parallel CC=mpiicx FC=mpiifx CXX=mpiicpx CFLAGS="-fPIC -O3 -xHost -ip -fno-alias -align" FFLAGS="-fPIC -O3 -xHost -ip -fno-alias -align" CXXFLAGS="-fPIC -O3 -xHost -ip -fno-alias -align"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;+ I think I remember there was an issue with -align so I would just skip it and use -O3 -xHOST as compiler flags.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 13:55:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/compiling-HDF5P-1-10-7-enable-fortran-fails-with-error-C/m-p/1593872#M11680</guid>
      <dc:creator>TobiasK</dc:creator>
      <dc:date>2024-04-30T13:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: compiling HDF5P 1.10.7 --enable-fortran fails with error: C compiler cannot create executables</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/compiling-HDF5P-1-10-7-enable-fortran-fails-with-error-C/m-p/1593897#M11683</link>
      <description>&lt;P&gt;Well that fails with:&lt;/P&gt;&lt;PRE&gt;checking if Fortran interface enabled... yes&lt;BR /&gt;checking whether we are using the GNU Fortran compiler... no&lt;BR /&gt;checking whether mpiifx accepts -g... no&lt;BR /&gt;checking for Fortran flag to compile .f90 files... unknown&lt;BR /&gt;configure: error: Fortran could not compile .f90 files&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I export PATH to include &amp;nbsp;&lt;SPAN&gt;/cluster/shared/apps/oneapi/2024.0/etc/modulefiles/, which I'm surprise does not get exported with the setvars&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And then a different failure as noted in uploaded config.log:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;checking if Fortran compiler version compatible with Fortran 2003 HDF... yes&lt;BR /&gt;checking how to get verbose linking output from mpiifx... -v&lt;BR /&gt;checking for Fortran libraries of mpiifx... -loopopt=1 -L/cluster/shared/apps/oneapi/hpctoolkit/mpi/2021.11/opt/mpi/libfabric/lib -L/cluster/shared/apps/oneapi/hpctoolkit/mpi/2021.11/lib -L/cluster/shared/apps/oneapi/ccl/2021.11/lib/ -L/cluster/shared/apps/oneapi/dal/2024.0/lib -L/cluster/shared/apps/oneapi/dnnl/2024.0/lib -L/cluster/shared/apps/oneapi/compiler/2024.0/lib -L/cluster/shared/apps/oneapi/ipp/2021.10/lib -L/cluster/shared/apps/oneapi/ippcp/2021.9/lib -L/cluster/shared/apps/oneapi/mkl/2024.0/lib -L/cluster/shared/apps/oneapi/mpi/2021.11/opt/mpi/libfabric/lib -L/cluster/shared/apps/oneapi/mpi/2021.11/lib -L/cluster/shared/apps/oneapi/tbb/2021.11/lib -L/usr/lib64/openmpi/lib -L/usr/lib64/openmpi/lib/paraview -L/cluster/shared/apps/oneapi/hpctoolkit/compiler/2024.0/lib -L/cluster/shared/apps/oneapi/hpctoolkit/compiler/2024.0/lib/clang/17/lib/x86_64-unknown-linux-gnu -L/usr/lib/gcc/x86_64-redhat-linux/11/ -L/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/ -L/lib/../lib64 -L/lib/../lib64/ -L/usr/lib/../lib64 -L/usr/lib/../lib64/ -L/cluster/shared/apps/oneapi/hpctoolkit/mpi/2021.11/opt/mpi/libfabric/lib/ -L/cluster/shared/apps/oneapi/hpctoolkit/mpi/2021.11/lib/ -L/cluster/shared/apps/oneapi/dal/2024.0/lib/ -L/cluster/shared/apps/oneapi/dnnl/2024.0/lib/ -L/cluster/shared/apps/oneapi/compiler/2024.0/lib/ -L/cluster/shared/apps/oneapi/ipp/2021.10/lib/ -L/cluster/shared/apps/oneapi/ippcp/2021.9/lib/ -L/cluster/shared/apps/oneapi/mkl/2024.0/lib/ -L/cluster/shared/apps/oneapi/mpi/2021.11/opt/mpi/libfabric/lib/ -L/cluster/shared/apps/oneapi/mpi/2021.11/lib/ -L/cluster/shared/apps/oneapi/tbb/2021.11/lib/ -L./ -L/usr/lib64/openmpi/lib/ -L/usr/lib64/openmpi/lib/paraview/ -L/usr/lib/gcc/x86_64-redhat-linux/11/../../../ -L/lib64 -L/lib/ -L/usr/lib64 -L/usr/lib -lifport -lifcoremt -limf -lsvml -lm -lipgo -lirc -lpthread -lirc_s -ldl&lt;BR /&gt;checking for dummy main to link with Fortran libraries... unknown&lt;BR /&gt;configure: error: in `/cluster/home/me/hdf5-hdf5-1_10_7':&lt;BR /&gt;configure: error: linking to Fortran libraries from C fails&lt;BR /&gt;See `config.log' for more details&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 15:03:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/compiling-HDF5P-1-10-7-enable-fortran-fails-with-error-C/m-p/1593897#M11683</guid>
      <dc:creator>RobbieTheK</dc:creator>
      <dc:date>2024-04-30T15:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: compiling HDF5P 1.10.7 --enable-fortran fails with error: C compiler cannot create executables</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/compiling-HDF5P-1-10-7-enable-fortran-fails-with-error-C/m-p/1594229#M11686</link>
      <description>&lt;P&gt;Hat tip to &lt;A href="https://forum.hdfgroup.org/t/how-to-compile-v-1-10-7-on-rhel-oneapi-error-c-compiler-cannot-create-executables/12257/7?u=rk3199" target="_self"&gt;this HDF5 discussion thread&lt;/A&gt; I had to install autotools 2.71 and re-run autogen.sh and as the user said there "&lt;SPAN&gt;Intel introduced a compiler flag starting with “-l” which is getting interpreted as a library".&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 18:55:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/compiling-HDF5P-1-10-7-enable-fortran-fails-with-error-C/m-p/1594229#M11686</guid>
      <dc:creator>RobbieTheK</dc:creator>
      <dc:date>2024-05-01T18:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: compiling HDF5P 1.10.7 --enable-fortran fails with error: C compiler cannot create executables</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/compiling-HDF5P-1-10-7-enable-fortran-fails-with-error-C/m-p/1594397#M11688</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/298242"&gt;@RobbieTheK&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;glad you found what's going wrong.&lt;BR /&gt;&lt;BR /&gt;If you had uploaded the new config.log and not the original again I would have been able to point you to our known issues:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/developer/articles/release-notes/oneapi-fortran-compiler-release-notes.html#inpage-nav-5-6" target="_blank"&gt;https://www.intel.com/content/www/us/en/developer/articles/release-notes/oneapi-fortran-compiler-release-notes.html#inpage-nav-5-6&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 08:21:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/compiling-HDF5P-1-10-7-enable-fortran-fails-with-error-C/m-p/1594397#M11688</guid>
      <dc:creator>TobiasK</dc:creator>
      <dc:date>2024-05-02T08:21:38Z</dc:date>
    </item>
  </channel>
</rss>

