Hello everyone,
I am trying to install HDF5 (1.14.0) on Ubuntu 22.04 (intel) system with the following command (enabling the parallel and using mpi):
./configure CC=mpicc FC=mpif90 --prefix="/home/user/PHDF5PATH" --enable-fortran --enable-parallel
but I got error: C compiler cannot create executables, when I looked at the log file the error starts as soon as ‘-V’ and ‘-qversion’ did not recognized for the mpicc and gcc and resulted in fatal error.
Following you can see part of log file that encounters the errors:
gcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04)
… rest of stderr output deleted …
configure:4839: $? = 0
configure:4828: mpicc -V >&5
gcc: error: unrecognized command-line option ‘-V’
gcc: fatal error: no input files
compilation terminated.
configure:4839: $? = 1
configure:4828: mpicc -qversion >&5
gcc: error: unrecognized command-line option ‘-qversion’; did you mean ‘–version’?
gcc: fatal error: no input files
compilation terminated.
configure:4839: $? = 1
configure:4859: checking whether the C compiler works
configure:4881: mpicc /home/user/OMPIPATH/include/ /home/user/OMPIPATH/include/ /home/user/OMPIPATH/lib/ conftest.c >&5
/usr/bin/ld: cannot find /home/user/OMPIPATH/include/: file format not recognized
/usr/bin/ld: cannot find /home/user/OMPIPATH/include/: file format not recognized
/usr/bin/ld: cannot find /home/user/OMPIPATH/lib/: file format not recognized
collect2: error: ld returned 1 exit status
configure:4885: $? = 1
configure:4923: result: no