ASPECT installation within SUSE distribution

Hi all,

I am trying to install ASPECT on a server with a SUSE distribution. When going through the step of running ./candi.sh, the following lines appear:

This is candi (compile and install)

Project: deal.II-toolchain: Found configuration.
Error: Your operating system could not be automatically recognised.

And when asking about the version of SUSE I am using, this is what gets printed: anegredo@localhost:~> cat /etc/os-release
NAME=“openSUSE Tumbleweed”

VERSION=“20221115”

Thanks in advance!

You can just use

  ./candi.sh --platform=./deal.II-toolchain/platforms/supported/linux_cluster.platform

Thank you very much,

I have been trying this but the error:

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.

Thank you again!

Can you take a look at the older suse instructions here:
https://github.com/dealii/candi/blob/master/deal.II-toolchain/platforms/supported/opensuse15.platform

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

CMake Error at cmake/macros/macro_check_compiler_setup.cmake:81 (try_compile):
Failed to generate test project build system.
Call Stack (most recent call first):
cmake/modules/FindDEAL_II_MPI.cmake:115 (check_compiler_setup)
cmake/configure/configure_10_mpi.cmake:27 (find_package)
/home/user/dealiicandi/tmp/build/deal.IIv9.7.0/CMakeFiles/CMakeTmp/evaluate_expression.tmp:1 (feature_MPI_find_external)
cmake/macros/macro_evaluate_expression.cmake:29 (include)
cmake/macros/macro_configure_feature.cmake:238 (evaluate_expression)
cmake/configure/configure_10_mpi.cmake:77 (configure_feature)
cmake/macros/macro_verbose_include.cmake:18 (include)
CMakeLists.txt:141 (verbose_include)

– Configuring incomplete, errors occurred!
Failure with exit status: 1
Exit message: There was a problem configuring dealii v9.7.0.

@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?

John

Thank you very much for your answer.

This is the beginning of the candi installation process: Package configuration in: ~/dealii-candi/configuration


Number of (at most) build processes to use: JOBS=1


Packages:
cmake
astyle
p4est
sundials
trilinos
dealii


Currently loaded modulefiles:
No modules loaded


Compiler Variables:

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

Thanks again,

Patricia

About the alternative you mention, I also attach here the .txt file in case it is useful.

Thanks again,
Patricia.

candi_configure_trilinos.txt (11.9 KB)

@PatriciaRodBat - Hmm, I’m still not sure why Trilinos would successfully compile, but deal.II would run into these errors.

One possibility is that a different configuration from a prior installation attempt is causing an issue.

Can you try deleting the entire installation folder and then re-running candi from scratch?

Hi all,

@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:

Option 1: Modify candi.cfg

DEAL_II_CONFOPTS="-D DEAL_II_WITH_MPI:BOOL=ON \
-D CMAKE_C_COMPILER=mpicc \
-D CMAKE_CXX_COMPILER=mpicxx"

Option 2: Modify dealii.package

CONFOPTS=" \
... \
-D DEAL_II_WITH_MPI:BOOL=ON \
-D CMAKE_C_COMPILER=mpicc \
-D CMAKE_CXX_COMPILER=mpicxx \
..."

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!

Best,
Ninghui Tian

It worked! I combined both answers, they were very helpful, thanks a lot.

Best,

Patricia

Patricia! I’m glad the solutions worked for you.

Patricia Rodríguez Batista via Computational Infrastructure for Geodynamics <notifications@geodynamics.discoursemail.com>于2025年10月2日 周四23:06写道:

I think you can achieve the same by setting USE_DEAL_II_CMAKE_MPI_COMPILER=ON in candi.cfg. This is the default since use CMAKE_MPI_COMPILER by default by tjhei · Pull Request #409 · dealii/candi · GitHub for a few months, I think.

@tjhei Thanks for the clarification and for making things easier!