dealii / candi

candi - (Compile & Install) - Downloads, configures, builds and installs deal.II
GNU Lesser General Public License v3.0
61 stars 61 forks source link

Test DEAL_II_HAVE_USABLE_FLAGS_DEBUG failed #269

Open mwichro opened 2 years ago

mwichro commented 2 years ago

I am setting up a compilation of deal.II on a machine that does not have MUMPS installed on it. It failed while configuring deal.II itself, and I have no idea what went wrong. I suppose the problem is somewhere in Trilinos because I tried to set up deal.II manually and link it with Trilinos compilation generated by the script, while without Trilinos the issue is gone. I am using the newest CMake 3.22.1, which I have downloaded as a binary release.

Other packages that are missing: splint tcl-dev environment-modules libsuitesparse-dev qt4-dev-tools

I do not have a root privilege there so I am not able to install those (that is also why I am trying to set up everything via Candi in the first place)

CMakeError.log CMakeOutput.log candi.cfg

koecher commented 2 years ago

Thanks for reporting.

Can you try switching on scalapack in the first section of packages?

koecher commented 2 years ago

additionally you can test PR #251 from me (unmerged so far) and maybe #259

mwichro commented 2 years ago

Can you try switching on scalapack in the first section of packages?

mpif90 is installed I am quite sure it is working:

CMake Error at /usr/share/cmake-3.13/Modules/CMakeTestFortranCompiler.cmake:45 (message): The Fortran compiler

"/usr/bin/mpif90"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /export/home/mwichro/dealii-candi/tmp/build/scalapack-2.1.0/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_49359/fast"
/usr/bin/make -f CMakeFiles/cmTC_49359.dir/build.make CMakeFiles/cmTC_49359.dir/build
make[1]: Entering directory '/export/home/mwichro/dealii-candi/tmp/build/scalapack-2.1.0/CMakeFiles/CMakeTmp'
Building Fortran object CMakeFiles/cmTC_49359.dir/testFortranCompiler.f.o
/usr/bin/mpif90   -g -O3 -fallow-argument-mismatch  -fPIE   -c /export/home/mwichro/dealii-candi/tmp/build/scalapack-2.1.0/CMakeFiles/CMakeTmp/testFortranCompiler.f -o CMakeFiles/cmTC_49359.dir/testFortranCompiler.f.o
gfortran: error: unrecognized command line option ‘-fallow-argument-mismatch’; did you mean ‘-Wno-argument-mismatch’?
make[1]: *** [CMakeFiles/cmTC_49359.dir/build.make:66: CMakeFiles/cmTC_49359.dir/testFortranCompiler.f.o] Error 1
make[1]: Leaving directory '/export/home/mwichro/dealii-candi/tmp/build/scalapack-2.1.0/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_49359/fast] Error 2
koecher commented 2 years ago

your fortran compiler doesn't accept the configuration: ˋ-fallow-argument-mismatchˋ You need to remove this from the scalapack package or update your compiler to a more recent version.

mpif90 is installed I am quite sure it is working:

gfortran: error: unrecognized command line option ‘-fallow-argument-mismatch’; did you mean ‘-Wno-argument-mismatch’?