Ok. After installing newer cmake version and making _lapack_libraries OPTIONAL, LAPACK configuration has gone fine. For PETSc, I did something dirty. I figured that FindPETSC.cmake searches for libraries in a file named petscvariables. I made my own copy of petscvariables file and modified the linker line in this file. I changed the path hints to find this file and then the rest was as expected.
The installation was successful (I had to unload apt module, see the trailing discussion here <https://groups.google.com/forum/?hl=en-GB#!topic/dealii/9IMUhsjSGZ8>). I did a cross compilation (see here <https://groups.google.com/forum/?hl=en-GB#!searchin/dealii/cross$20compilation%7Csort:date/dealii/k4ZU250SAu8/R5AJBe91BgAJ>). Instead of using a Toolchain file, I used the option -DCMAKE_SYSTEM_NAME=CrayLinuxEnvironment as mentioned here <https://cmake.org/cmake/help/v3.6/manual/cmake-toolchains.7.html#cross-compiling-for-the-cray-linux-environment>. The complete cmake invocation is as below. cmake_new=~/bin/cmake-3.16.4/usr/local/bin/cmake $cmake_new -DCMAKE_INSTALL_PREFIX=~/bin/dealii-9.1.1/ \ -DWITH_64BIT_INDICES=ON \ -DCMAKE_PREFIX_PATH=/opt/cray/pe/lib64 \ -DWITH_MPI=ON \ -DMPI_DIR=/opt/cray/pe/mpt/default/gni/mpich-gnu/5.1/ \ -DMPI_CXX_INCLUDE_PATH=/opt/cray/pe/mpt/default/gni/mpich-gnu/5.1/include/ \ -DCMAKE_CXX_COMPILER=/opt/cray/pe/craype/2.5.13/bin/CC \ -DCMAKE_C_COMPILER=/opt/cray/pe/craype/2.5.13/bin/cc \ -DCMAKE_Fortran_COMPILER=/opt/cray/pe/craype/2.5.13/bin/ftn \ -DWITH_BLAS=ON \ -DWITH_LAPACK=ON \ -DWITH_SCALAPACK=ON \ -DWITH_PETSC=ON \ -DWITH_P4EST=ON -DP4EST_DIR=~/bin/p4est-2.2/ \ -DCMAKE_SYSTEM_NAME=CrayLinuxEnvironment \ ~/source/dealii-9.1.1 However, make test shows all tests failing with the error /bin/sh: <test name>.<release|debug>: command not found. When I navigated to tests/quick_tests and individually ran the tests, the output was as follows. $ ./lapack.debug Illegal instruction Can anyone help me with this issue? Is this because I have cross-compiled? The make test instruction was run on login node. It so, is there a way I check my installation on login node itself without needing submitting a job? -- 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/390c861b-65ec-4075-8715-ecafcd6a2864%40googlegroups.com.