checking whether a simple MPI-IO C program can be linked…no
configure: error: unable to link a simple MPI-IO C program
Failure with exit status: 1
Exist message: There was a problem configuring hdf5 1.12.2.
I have kept going trying ./candi.sh --platform=./deal.II-toolchain/platforms/supported/linux_cluster.platform
–packages=“cmake astyle sundials p4est trilinos dealii” -y
so, explicitly not using hdf5, but then another error appears with sundials, and another one with a different package… And I would like to be able to use all of them.
They might be out of date, but can you make sure that you install mpich-devel and run mpi-selector to pick your MPI installation? Make sure you have only mpich or openmpi installed but not both.
Thank you, that seemed to be working but after a few hours of installing, there was this problem with dealii, would you maybe have an idea of how to continue?
Again, thank you very much.
– Could NOT find MPI_C (missing: MPI_mpi_LIBRARY MPI_C_HEADER_DIR MPI_C_WORKS)
– Could NOT find MPI_CXX (missing: MPI_mpicxx_LIBRARY MPI_mpi_LIBRARY MPI_CXX_HEADER_DIR MPI_CXX_WORKS)
– Found MPI_Fortran: /usr/lib64/mpi/gcc/openmpi3/bin/mpif90 (found version “3.1”)
– Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND) (found version “3.1”)
– MPI_MPI_H not found! The call was:
– find_file(MPI_MPI_H NAMES mpi.h HINTS)
– Performing Test MPI_UNDERLINKAGE_OK
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
MPI_mpi_LIBRARY
linked by target “CheckCompilerSetupExec” in directory /home/anegredo/dealii-candi/tmp/unpack/deal.II-v9.7.0/cmake/macros/check_compiler_setup
linked by target “CheckCompilerSetupExec” in directory /home/anegredo/dealii-candi/tmp/unpack/deal.II-v9.7.0/cmake/macros/check_compiler_setup
MPI_mpicxx_LIBRARY
linked by target “CheckCompilerSetupExec” in directory /home/anegredo/dealii-candi/tmp/unpack/deal.II-v9.7.0/cmake/macros/check_compiler_setup
@PatriciaRodBat - That’s odd that deal.II was not able to find the MPI libraries, but earlier packages successfully found them.
At the beginning of the candi installation process there is a message that shows what different libraries are being used, after which you hit “go”. Could you run candi again, copy this information, and then provide it here?
Alternatively, can you send over one of the files such as tmp/build/trilinos-release-14-4-0/candi_configure under the install directory?
CC variable not set, but default mpicc found.
CC = /usr/lib64/mpi/gcc/openmpi3/bin/mpicc
CXX variable not set, but default mpicxx found.
CXX = /usr/lib64/mpi/gcc/openmpi3/bin/mpicxx
FC variable not set, but default mpif90 found.
FC = /usr/lib64/mpi/gcc/openmpi3/bin/mpif90
FF variable not set, but default mpif77 found.
FF = /usr/lib64/mpi/gcc/openmpi3/bin/mpif77
@PatriciaRodBat I’ve encountered a similar issue in the past, and while I couldn’t identify the root cause, the solution that worked for me involved modifying configuration files. Specifically, I added the following options to either the candi.cfg or dealii.package file:
These settings ensure that MPI is properly enabled and that the appropriate compilers (mpicc and mpicxx) are explicitly defined. I hope this helps resolve the issue.
If @tjhei or @jbnaliboff could provide further insights into the root cause, that would be great!