On 2/16/23 04:49, 'yy.wayne' via deal.II User Group wrote:

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?

We really don't know. The important part of the error message is this:

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

For some reason, the Scalapack cmake script tries to call the Fortran compiler with ‘-fallow-argument-mismatch’ as a flag, but the compiler does not understand this. This is confusing to me because the gfortran documentation suggests that this should be possible:
  https://gcc.gnu.org/onlinedocs/gfortran/Option-Summary.html
On the other hand, the suggestion ‘-Wno-argument-mismatch’ is not listed on that page. This may be related to
  https://groups.google.com/g/comp.lang.fortran/c/vITMz5e1nHQ
So one could surmise that the cmake script used with Scalapack is simply not prepared to deal with different compiler versions -- but I really don't know.

I don't know enough about Scalapack or candi to help much more. If you tried to install Scalapack yourself, without the help from candi, what happens?

Best
 W.


--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 bange...@colostate.edu
                           www: http://www.math.colostate.edu/~bangerth/


--
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/37beb13a-171e-3937-432b-448dfaf97922%40colostate.edu.

Reply via email to