Hello,
I try to install dealii on a CentOS virtual machine. It fails when
installing scalapack and mumps, both related to mpi fortran. Is it due to
openmpi compatibility?
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/108b6df6-a7e3-4ea0-a57f-6427397567fen%40googlegroups.com.
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is GNU 9.3.1
-- The Fortran compiler identification is GNU 9.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/lib64/openmpi/bin/mpicc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - failed
-- Check for working Fortran compiler: /usr/lib64/openmpi/bin/mpif90
-- Check for working Fortran compiler: /usr/lib64/openmpi/bin/mpif90 - broken
CMake Error at
/home/123456/libs/candi-master/candi_install/cmake-3.20.5-linux-x86_64/share/cmake-3.20/Modules/CMakeTestFortranCompiler.cmake:51
(message):
The Fortran compiler
"/usr/lib64/openmpi/bin/mpif90"
is not able to compile a simple test program.
It fails with the following output:
Change Dir:
/home/123456/libs/candi-master/candi_install/tmp/build/scalapack-2.1.0/CMakeFiles/CMakeTmp
Run Build Command(s):/opt/rh/devtoolset-9/root/usr/bin/gmake -f Makefile
cmTC_238a2/fast && /opt/rh/devtoolset-9/root/usr/bin/gmake -f
CMakeFiles/cmTC_238a2.dir/build.make CMakeFiles/cmTC_238a2.dir/build
gmake[1]: Entering directory
'/home/123456/libs/candi-master/candi_install/tmp/build/scalapack-2.1.0/CMakeFiles/CMakeTmp'
Building Fortran object CMakeFiles/cmTC_238a2.dir/testFortranCompiler.f.o
/usr/lib64/openmpi/bin/mpif90 -g -O3 -fallow-argument-mismatch -fPIE -c
/home/123456/libs/candi-master/candi_install/tmp/build/scalapack-2.1.0/CMakeFiles/CMakeTmp/testFortranCompiler.f
-o CMakeFiles/cmTC_238a2.dir/testFortranCompiler.f.o
gfortran: error: unrecognized command line option
‘-fallow-argument-mismatch’; did you mean ‘-Wno-argument-mismatch’?
gmake[1]: *** [CMakeFiles/cmTC_238a2.dir/build.make:78:
CMakeFiles/cmTC_238a2.dir/testFortranCompiler.f.o] Error 1
gmake[1]: Leaving directory
'/home/123456/libs/candi-master/candi_install/tmp/build/scalapack-2.1.0/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_238a2/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
-- Configuring incomplete, errors occurred!
See also
"/home/123456/libs/candi-master/candi_install/tmp/build/scalapack-2.1.0/CMakeFiles/CMakeOutput.log".
See also
"/home/123456/libs/candi-master/candi_install/tmp/build/scalapack-2.1.0/CMakeFiles/CMakeError.log".
-- The C compiler identification is GNU 9.3.1
-- The Fortran compiler identification is GNU 9.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/lib64/openmpi/bin/mpicc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /usr/lib64/openmpi/bin/mpif90 - skipped
-- Checking whether /usr/lib64/openmpi/bin/mpif90 supports Fortran 90
-- Checking whether /usr/lib64/openmpi/bin/mpif90 supports Fortran 90 - yes
-- checking that C and Fortran compilers can link
-- checking that C and Fortran compilers can link - OK
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.27.1")
-- Checking for one of the modules 'lapack-netlib;lapack'
-- Checking for one of the modules 'blas-netlib;blas'
-- Performing Test LAPACK_real64_links
-- Performing Test LAPACK_real64_links - Success
-- Performing Test LAPACK_real32_links
-- Performing Test LAPACK_real32_links - Success
-- Found LAPACK: /usr/lib64/liblapack.so;/usr/lib64/libblas.so found
components: Netlib
-- Checking for one of the modules 'ompi-c'
-- Performing Test MPI_C_links
-- Performing Test MPI_C_links - Success
-- Checking for one of the modules 'ompi-fort'
-- Performing Test MPI_Fortran_links
-- Performing Test MPI_Fortran_links - Failed
CMake Error at
/home/123456/libs/candi-master/candi_install/cmake-3.20.5-linux-x86_64/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230
(message):
Could NOT find MPI (missing: Fortran)
Call Stack (most recent call first):
/home/123456/libs/candi-master/candi_install/cmake-3.20.5-linux-x86_64/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594
(_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindMPI.cmake:541 (find_package_handle_standard_args)
CMakeLists.txt:42 (find_package)
-- Configuring incomplete, errors occurred!
See also
"/home/123456/libs/candi-master/candi_install/tmp/build/mumps-5.4.0.5/CMakeFiles/CMakeOutput.log".
See also
"/home/123456/libs/candi-master/candi_install/tmp/build/mumps-5.4.0.5/CMakeFiles/CMakeError.log".
# Global configuration.
# Meta-project to build
PROJECT=deal.II-toolchain
# Option {ON|OFF}: Use fresh build directory by remove existing ones?
CLEAN_BUILD=OFF
#########################################################################
# Where do you want the downloaded source files to go?
#DOWNLOAD_PATH=${PREFIX_PATH}/tmp/src
# Where do you want to unpack source files to go?
#UNPACK_PATH=${PREFIX_PATH}/tmp/unpack
# Where do you want the build files to go?
#BUILD_PATH=${PREFIX_PATH}/tmp/build
# Where do you want the compiled software installed?
INSTALL_PATH=${PREFIX_PATH}
#########################################################################
# Set up mirror server url(s), to speed up downloads, e.g.
# MIRROR="${MIRROR} http://server1.org/package_mirror_dir/"
# MIRROR="${MIRROR} ftp://server2.org/package_mirror_dir/"
MIRROR="https://tjhei.info/candi-mirror/
https://cecas.clemson.edu/dealii/mirror/"
#########################################################################
# Choose additional configuration and components of deal.II
DEAL_II_CONFOPTS=""
# Option {ON|OFF}: Enable machine-specific optimizations (e.g. -march=native)?
NATIVE_OPTIMIZATIONS=ON
# Option {ON|OFF}: Enable 64-bit indices for large computations?
USE_64_BIT_INDICES=ON
# Option {ON|OFF}: Enable building of dealii examples?
BUILD_EXAMPLES=ON
# Option {ON|OFF}: Unset CXX and set the compiler as MPI_CXX_COMPILER when
configuring deal.II
#
# This is recommended for very recent CMake versions but it currently is not
reliable enough
# to enable by default.
USE_DEAL_II_CMAKE_MPI_COMPILER=OFF
# Option {ON|OFF}: Run tests after installation?
RUN_DEAL_II_TESTS=OFF
# Choose the python interpreter to use. We pick python2, python3,
# python in that order by default. If you want to override this
# choice, uncomment the following:
#PYTHON_INTERPRETER=python3
# Now we pick the packages to install:
PACKAGES="load:dealii-prepare"
# These are system dependencies that are often pre-installed:
PACKAGES="${PACKAGES} once:zlib"
PACKAGES="${PACKAGES} once:bzip2"
#PACKAGES="${PACKAGES} once:git"
PACKAGES="${PACKAGES} once:cmake"
PACKAGES="${PACKAGES} once:boost"
PACKAGES="${PACKAGES} once:numdiff"
PACKAGES="${PACKAGES} once:openblas"
PACKAGES="${PACKAGES} once:scalapack"
# These packages are not dependencies but are tools used for deal.II
development:
#PACKAGES="${PACKAGES} once:astyle"
#PACKAGES="${PACKAGES} once:numdiff"
# These packages determine the active components of deal.II:
PACKAGES="${PACKAGES} once:adolc"
PACKAGES="${PACKAGES} once:arpack-ng"
PACKAGES="${PACKAGES} once:assimp"
PACKAGES="${PACKAGES} once:ginkgo"
PACKAGES="${PACKAGES} once:gmsh"
PACKAGES="${PACKAGES} once:gsl"
PACKAGES="${PACKAGES} once:mumps"
PACKAGES="${PACKAGES} once:opencascade"
PACKAGES="${PACKAGES} once:parmetis"
PACKAGES="${PACKAGES} once:sundials"
PACKAGES="${PACKAGES} once:superlu_dist"
PACKAGES="${PACKAGES} once:hdf5"
PACKAGES="${PACKAGES} once:netcdf"
PACKAGES="${PACKAGES} once:p4est"
PACKAGES="${PACKAGES} once:trilinos"
PACKAGES="${PACKAGES} once:petsc"
PACKAGES="${PACKAGES} once:slepc"
PACKAGES="${PACKAGES} once:symengine"
PACKAGES="${PACKAGES} dealii"
#########################################################################
# Install the following deal.II version (choose master, v9.3.0, v9.2.0, ...)
DEAL_II_VERSION=master
#########################################################################
# If you want to use Trilinos, decide if you want v12.x.x (AUTO) or v11.x.x
TRILINOS_MAJOR_VERSION=AUTO
#TRILINOS_MAJOR_VERSION=12
#TRILINOS_MAJOR_VERSION=11
# If enabled, Trilinos is configured with complex number support in
# Teuchos and Tpetra. This takes a long time to compile and requires a
# lot of RAM. It is also likely not something you will need.
TRILINOS_WITH_COMPLEX=OFF
#########################################################################
# Option {ON|OFF}: Do you want to use MKL?
MKL=OFF
# MKL_DIR=
# BLAS_DIR=
# LAPACK_DIR=
#########################################################################
# If you have commits from the deal.II master to cherry-pick in stable version
# bugfix for TrilinosWrapper::SparseMatrix ::add(factor, SparseMatrix)
#DEAL_CHERRYPICKCOMMITS="8bcaf55df6754238b2e4e41bf6a5dd276a97bdd2
${DEAL_CHERRYPICKCOMMITS}"
#########################################################################
# Option {ON|OFF}: If you want to change the source code of one or multiple
# packages switch on the developer mode to avoid a package fetch and unpack.
# Note: a previous run of candi with the same settings must be done without
# this mode!
DEVELOPER_MODE=OFF
################################################################################
# OPTION {ON|OFF}: Remove build directory after successful installation
INSTANT_CLEAN_BUILD_AFTER_INSTALL=OFF
# OPTION {ON|OFF}: Remove downloaded packed src after successful installation
INSTANT_CLEAN_SRC_AFTER_INSTALL=OFF
# OPTION {ON|OFF}: Remove unpack directory after successful installation
INSTANT_CLEAN_UNPACK_AFTER_INSTALL=OFF