How to install MPI support hdf5 with intel 2019 compiler

Following the below commands, I want to install MPI support hdf5 on my HPC with intel compiler. But at configuring step, I get errors:

  • configure: error: in `/public/home/xianglj/SPST/software/hdf5-1.10.5’:

  • configure: error: C compiler cannot create executables

How can I fix these?

[xianglj@HPC-Login-SPST hdf5-1.10.5]$ module list
Currently Loaded Modulefiles:

  1. /mpi/intelmpi/2019.1.144 2) /compiler/intel/composer_xe_2019.1.053
    [xianglj@HPC-Login-SPST hdf5-1.10.5]$ which mpicc
    /public/software/compiler/intel/composer_xe_2019.1.022/6/impi/2019.1.144/intel64/bin/mpicc
    [xianglj@HPC-Login-SPST hdf5-1.10.5]$ CC=mpicc ./configure --enable-parallel --prefix=/public/home/xianglj/SPST/software/hdf5-1.10.5-parallel
    checking for a BSD-compatible install… /usr/bin/install -c
    checking whether build environment is sane… yes
    checking for a thread-safe mkdir -p… /usr/bin/mkdir -p
    checking for gawk… gawk
    checking whether make sets $(MAKE)… yes
    checking whether make supports nested variables… yes
    checking whether make supports nested variables… (cached) yes
    checking whether to enable maintainer-specific portions of Makefiles… no
    checking build system type… x86_64-unknown-linux-gnu
    checking host system type… x86_64-unknown-linux-gnu
    checking shell variables initial values… done
    checking if basename works… yes
    checking if xargs works… yes
    checking for cached host… none
    checking for config x86_64-unknown-linux-gnu… no
    checking for config x86_64-unknown-linux-gnu… no
    checking for config unknown-linux-gnu… no
    checking for config unknown-linux-gnu… no
    checking for config x86_64-linux-gnu… no
    checking for config x86_64-linux-gnu… no
    checking for config x86_64-unknown… no
    checking for config linux-gnu… found
    compiler ‘mpicc’ is GNU gcc-4.8.5
    compiler ‘mpif90’ is GNU gfortran-4.8.5
    compiler ‘g++’ is GNU g+±4.8.5
    checking for config ./config/site-specific/host-HPC-Login-SPST… no
    checking build mode… production
    checking for gcc… mpicc
    checking whether the C compiler works… no
    configure: error: in /public/home/xianglj/SPST/software/hdf5-1.10.5': configure: error: C compiler cannot create executables Seeconfig.log’ for more details

[Emphasis added] You need to find out why the compiler failed by looking at config.log.

As reported by the configure log, the compiler ‘mpicc’ is GNU :wink:

Intel suite provides different kind of MPI compiler wrappers [1]. You should declare CC=mpiicc (with double i) which select Intel icc as the underlying compiler.

[1] Intel MPI compiler wrapper