KratosMultiphysics / Kratos

Kratos Multiphysics (A.K.A Kratos) is a framework for building parallel multi-disciplinary simulation software. Modularity, extensibility and HPC are the main objectives. Kratos has BSD license and is written in C++ with extensive Python interface.
https://kratosmultiphysics.github.io/Kratos/
Other
1.03k stars 245 forks source link

Can't compile TrilinosApplication #11900

Open azzeddinetiba opened 10 months ago

azzeddinetiba commented 10 months ago

Description Hello, Cmake doesn't seem to be able to find trilinos libraries. I followed the installation istructions in here

my /usr/lib/x86_64-linux-gnu does contain the trilinos libraries. And Kratos compiles just fine with openMP and the other applications.

Scope

configure script

add_app () {
    export KRATOS_APPLICATIONS="${KRATOS_APPLICATIONS}$1;"
}

# Load modules required for compilation
module purge
module load boost
module load python
module load openmpi
module switch gcc gcc/10.2.0

# Set compiler
export CC=${CC:-gcc}
export CXX=${CXX:-g++}

# Set variables
export KRATOS_SOURCE="${KRATOS_SOURCE:-"$( cd "$(dirname "$0")" ; pwd -P )"/..}"
export KRATOS_BUILD="${KRATOS_SOURCE}/build"
export KRATOS_APP_DIR="${KRATOS_SOURCE}/applications"
export KRATOS_INSTALL_PYTHON_USING_LINKS=ON

# Set basic configuration
export KRATOS_BUILD_TYPE=${KRATOS_BUILD_TYPE:-"Release"}
export PYTHON_EXECUTABLE=${PYTHON_EXECUTABLE:-"/usr/bin/python3"}

# Set applications to compile
export KRATOS_APPLICATIONS=
add_app ${KRATOS_APP_DIR}/LinearSolversApplication
add_app ${KRATOS_APP_DIR}/MeshMovingApplication
add_app ${KRATOS_APP_DIR}/MappingApplication
add_app ${KRATOS_APP_DIR}/FluidDynamicsApplication
add_app ${KRATOS_APP_DIR}/ConstitutiveLawsApplication
add_app ${KRATOS_APP_DIR}/StructuralMechanicsApplication
add_app ${KRATOS_APP_DIR}/CoSimulationApplication
add_app ${KRATOS_APP_DIR}/FluidDynamicsBiomedicalApplication
add_app ${KRATOS_APP_DIR}/MetisApplication
add_app ${KRATOS_APP_DIR}/TrilinosApplication

# Clean
clear
rm -rf "${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}/cmake_install.cmake"
rm -rf "${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}/CMakeCache.txt"
rm -rf "${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}/CMakeFiles"

# Configure
cmake -H"${KRATOS_SOURCE}" -B"${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}" \
-DUSE_MPI=ON                                                       \
-DKRATOS_SHARED_MEMORY_PARALLELIZATION="OpenMP" \
-DUSE_EIGEN_MKL=OFF                                                 \
-DTRILINOS_INCLUDE_DIR="/usr/include/trilinos"
-DTRILINOS_LIBRARY_DIR="/usr/lib/x86_64-linux-gnu"
-DTRILINOS_LIBRARY_PREFIX="trilinos_"

# Build
cmake --build "${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}" --target install -- -j$(nproc)

The error message

CMake Warning (dev) at CMakeLists.txt:1 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 3.5 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.

-- No KRATOS_SOURCE_DIR is defined, using: /home/tiba/share_directory/Kratos
-- No KRATOS_BINARY_DIR is defined, using: /home/tiba/share_directory/Kratos/build/Release
-- No INSTALL_RUNKRATOS is defined, setting to ON
-- No CMAKE_INSTALL_MESSAGE is defined. Setting to NEVER
-- Found Git: /usr/bin/git (found version "2.25.1") 
-- Additional default options were set for GCC
-- CMAKE_SYSTEM_NAME = Linux
-- CMAKE_CXX_COMPILER_ID = GNU
-- CMAKE_CXX_FLAGS =  -funroll-loops -Wall -Wl,--no-as-needed -ldl -Wsuggest-override
-- CMAKE_C_FLAGS =  -funroll-loops -Wall -Wl,--no-as-needed -ldl
CMake Deprecation Warning at cmake_modules/pybind11Tools.cmake:8 (cmake_minimum_required):
  Compatibility with CMake < 3.5 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.
Call Stack (most recent call first):
  CMakeLists.txt:296 (include)

CMake Warning (dev) at cmake_modules/FindPythonLibsNew.cmake:60 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  cmake_modules/pybind11Tools.cmake:16 (find_package)
  CMakeLists.txt:296 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonInterp: /usr/bin/python3 (found version "3.8.10") 
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.8.so
-- LTO is Disabled
-- AR VERSION: /usr/bin/ar
-- Python version used for the interface will be 3.8
-- Standard install dir /home/tiba/share_directory/Kratos/bin/Release
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
-- Using OpenMP for shared memory parallelization
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0")  
-- Boost Include: /usr/include
-- Boost Linkdir: 
-- Found MPI_C: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so (found version "3.1") 
-- Found MPI_CXX: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so (found version "3.1") 
-- Found MPI: TRUE (found version "3.1")  
EPETRA_INCLUDE_PATH: /usr/include/trilinos
EPETRA_LIBRARY: EPETRA_LIBRARY-NOTFOUND
CMake Warning (dev) at /usr/local/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (EPETRA)
  does not match the name of the calling package (TRILINOS).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake_modules/FindTRILINOS.cmake:155 (find_package_handle_standard_args)
  CMakeLists.txt:518 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find EPETRA (missing: EPETRA_LIBRARY) 
TEUCHOS_INCLUDE_PATH: /usr/include/trilinos
TEUCHOS_LIBRARIES: 
CMake Warning (dev) at /usr/local/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (TRIUTILS)
  does not match the name of the calling package (TRILINOS).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake_modules/FindTRILINOS.cmake:176 (find_package_handle_standard_args)
  CMakeLists.txt:518 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find TRIUTILS (missing: TRIUTILS_LIBRARY) 
CMake Error at cmake_modules/FindTRILINOS.cmake:257 (MESSAGE):
  Could not find Trilinos or one of its packages.  Please set the CMake var
  TRILINOS_ROOT or the environment vars TRILINOS_INCLUDE_DIR and
  TRILINOS_LIBRARY_DIR, note also that if in your system the library have a
  prefix, like "libtrilinos_epetra.so" instead of "libepetra.so" you can
  specify the prefix by the variable -DTRILINOS_LIBRARY_PREFIX="trilinos_".

  An alternative is using Spack and load Trilinos, this will be automatically
  detected as well.
Call Stack (most recent call first):
  CMakeLists.txt:518 (find_package)

-- Configuring incomplete, errors occurred!
../scripts/configure.sh: 66: -DTRILINOS_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu: not found
../scripts/configure.sh: 67: -DTRILINOS_LIBRARY_PREFIX=trilinos_: not found
CMake Warning (dev) at CMakeLists.txt:1 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Deprecation Warning at CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 3.5 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.

-- No KRATOS_SOURCE_DIR is defined, using: /home/tiba/share_directory/Kratos
-- No KRATOS_BINARY_DIR is defined, using: /home/tiba/share_directory/Kratos/build/Release
-- No INSTALL_RUNKRATOS is defined, setting to ON
-- No CMAKE_INSTALL_MESSAGE is defined. Setting to NEVER
-- Additional default options were set for GCC
-- CMAKE_SYSTEM_NAME = Linux
-- CMAKE_CXX_COMPILER_ID = GNU
-- CMAKE_CXX_FLAGS =  -funroll-loops -Wall -Wl,--no-as-needed -ldl -Wsuggest-override
-- CMAKE_C_FLAGS =  -funroll-loops -Wall -Wl,--no-as-needed -ldl
CMake Deprecation Warning at cmake_modules/pybind11Tools.cmake:8 (cmake_minimum_required):
  Compatibility with CMake < 3.5 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.
Call Stack (most recent call first):
  CMakeLists.txt:296 (include)

CMake Warning (dev) at cmake_modules/FindPythonLibsNew.cmake:60 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  cmake_modules/pybind11Tools.cmake:16 (find_package)
  CMakeLists.txt:296 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- LTO is Disabled
-- AR VERSION: /usr/bin/ar
-- Python version used for the interface will be 3.8
-- User defined install dir /home/tiba/share_directory/Kratos/bin/Release
-- Using OpenMP for shared memory parallelization
-- Boost Include: /usr/include
-- Boost Linkdir: 
EPETRA_INCLUDE_PATH: /usr/include/trilinos
EPETRA_LIBRARY: EPETRA_LIBRARY-NOTFOUND
CMake Warning (dev) at /usr/local/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (EPETRA)
  does not match the name of the calling package (TRILINOS).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake_modules/FindTRILINOS.cmake:155 (find_package_handle_standard_args)
  CMakeLists.txt:518 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find EPETRA (missing: EPETRA_LIBRARY) 
TEUCHOS_INCLUDE_PATH: /usr/include/trilinos
TEUCHOS_LIBRARIES: 
CMake Warning (dev) at /usr/local/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (TRIUTILS)
  does not match the name of the calling package (TRILINOS).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake_modules/FindTRILINOS.cmake:176 (find_package_handle_standard_args)
  CMakeLists.txt:518 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find TRIUTILS (missing: TRIUTILS_LIBRARY) 
CMake Error at cmake_modules/FindTRILINOS.cmake:257 (MESSAGE):
  Could not find Trilinos or one of its packages.  Please set the CMake var
  TRILINOS_ROOT or the environment vars TRILINOS_INCLUDE_DIR and
  TRILINOS_LIBRARY_DIR, note also that if in your system the library have a
  prefix, like "libtrilinos_epetra.so" instead of "libepetra.so" you can
  specify the prefix by the variable -DTRILINOS_LIBRARY_PREFIX="trilinos_".

  An alternative is using Spack and load Trilinos, this will be automatically
  detected as well.
Call Stack (most recent call first):
  CMakeLists.txt:518 (find_package)

-- Configuring incomplete, errors occurred!
make: *** [Makefile:1027: cmake_check_build_system] Error 1

Thank you in advance !

loumalouomega commented 10 months ago

I noticed this happens in some versions of CMake, and I don't know how to fix properly the Cmake file, but can be solved with the following into your configure.sh:

-DTRILINOS_LIBRARY_PREFIX="trilinos_"                                            \
-DTRILINOS_INCLUDE_DIR="/usr/include/trilinos"                                   \
-DTRILINOS_LIBRARY_DIR="/usr/lib/x86_64-linux-gnu/"                              \
azzeddinetiba commented 10 months ago

Hello @loumalouomega , they're already added in my configure. sh

loumalouomega commented 10 months ago

Hello @loumalouomega , they're already added in my configure. sh

CMake Warning (dev) at CMakeLists.txt:1 (project): cmake_minimum_required() should be called prior to this top-level project() call. Please see the cmake-commands(7) manual for usage documentation of both commands. This warning is for project developers. Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 9.4.0 -- The CXX compiler identification is GNU 9.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Deprecation Warning at CMakeLists.txt:2 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake.

Which version of cmake are you using?

azzeddinetiba commented 10 months ago

@loumalouomega 3.27.4

loumalouomega commented 10 months ago

@loumalouomega 3.27.4

Are you 100% sure?, cmake is compalining the version. Looks like you are trying to compile with SLURM, are you sure you are using the same cmake?, verify that. Maybe SLURM is loading an old version.

azzeddinetiba commented 10 months ago

I'm pretty sure it's the version I'm using yes :

which -a cmake ->

/usr/local/bin/cmake
/usr/bin/cmake
/bin/cmake

/usr/local/bin/cmake --version ->

cmake version 3.27.4

CMake suite maintained and supported by Kitware (kitware.com/cmake).

in my configure I replaced cmake with /usr/local/bin/cmake. It gives the same result

loumalouomega commented 10 months ago

I'm pretty sure it's the version I'm using yes :

which -a cmake ->

/usr/local/bin/cmake
/usr/bin/cmake
/bin/cmake

/usr/local/bin/cmake --version ->

cmake version 3.27.4

CMake suite maintained and supported by Kitware (kitware.com/cmake).

in my configure I replaced cmake with /usr/local/bin/cmake. It gives the same result

Strange....

loumalouomega commented 10 months ago

Explicit the version of cmake in the configure:

add_app () {
    export KRATOS_APPLICATIONS="${KRATOS_APPLICATIONS}$1;"
}

# Load modules required for compilation
module purge
module load boost
module load python
module load openmpi
module switch gcc gcc/10.2.0

# Set compiler
export CC=${CC:-gcc}
export CXX=${CXX:-g++}

# Set variables
export KRATOS_SOURCE="${KRATOS_SOURCE:-"$( cd "$(dirname "$0")" ; pwd -P )"/..}"
export KRATOS_BUILD="${KRATOS_SOURCE}/build"
export KRATOS_APP_DIR="${KRATOS_SOURCE}/applications"
export KRATOS_INSTALL_PYTHON_USING_LINKS=ON

# Set basic configuration
export KRATOS_BUILD_TYPE=${KRATOS_BUILD_TYPE:-"Release"}
export PYTHON_EXECUTABLE=${PYTHON_EXECUTABLE:-"/usr/bin/python3"}

# Set applications to compile
export KRATOS_APPLICATIONS=
add_app ${KRATOS_APP_DIR}/LinearSolversApplication
add_app ${KRATOS_APP_DIR}/MeshMovingApplication
add_app ${KRATOS_APP_DIR}/MappingApplication
add_app ${KRATOS_APP_DIR}/FluidDynamicsApplication
add_app ${KRATOS_APP_DIR}/ConstitutiveLawsApplication
add_app ${KRATOS_APP_DIR}/StructuralMechanicsApplication
add_app ${KRATOS_APP_DIR}/CoSimulationApplication
add_app ${KRATOS_APP_DIR}/FluidDynamicsBiomedicalApplication
add_app ${KRATOS_APP_DIR}/MetisApplication
add_app ${KRATOS_APP_DIR}/TrilinosApplication

# Clean
clear
rm -rf "${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}/cmake_install.cmake"
rm -rf "${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}/CMakeCache.txt"
rm -rf "${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}/CMakeFiles"

# Configure
/usr/local/bin/cmake -H"${KRATOS_SOURCE}" -B"${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}" \
-DUSE_MPI=ON                                                       \
-DKRATOS_SHARED_MEMORY_PARALLELIZATION="OpenMP" \
-DUSE_EIGEN_MKL=OFF                                                 \
-DTRILINOS_INCLUDE_DIR="/usr/include/trilinos"
-DTRILINOS_LIBRARY_DIR="/usr/lib/x86_64-linux-gnu"
-DTRILINOS_LIBRARY_PREFIX="trilinos_"

# Build
cmake --build "${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}" --target install -- -j$(nproc)
azzeddinetiba commented 10 months ago

I'm sorry, I'm not sure I understand ? What should I add on the configure file ?

loumalouomega commented 10 months ago

I'm sorry, I'm not sure I understand ? What should I add on the configure file ?

cmake -> /usr/local/bin/cmake in the configure.sh

azzeddinetiba commented 10 months ago

Yes I tried

in my configure I replaced cmake with /usr/local/bin/cmake. It gives the same result

it gives the same result

loumalouomega commented 10 months ago

Yes I tried

in my configure I replaced cmake with /usr/local/bin/cmake. It gives the same result

it gives the same result

Then I don't know, but the error you shared looks like realted with Cmake version

azzeddinetiba commented 10 months ago

In fact, in the error message I think it recognizes the good cmake

... EPETRA_INCLUDE_PATH: /usr/include/trilinos EPETRA_LIBRARY: EPETRA_LIBRARY-NOTFOUND CMake Warning (dev) at /usr/local/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to find_package_handle_standard_args (EPETRA) does not match the name of the calling package (TRILINOS). This can lead to problems in calling code that expects find_package result variables (e.g., _FOUND) to follow a certain pattern. Call Stack (most recent call first): cmake_modules/FindTRILINOS.cmake:155 (find_package_handle_standard_args) CMakeLists.txt:518 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Could NOT find EPETRA (missing: EPETRA_LIBRARY) TEUCHOS_INCLUDE_PATH: /usr/include/trilinos TEUCHOS_LIBRARIES: CMake Warning (dev) at /usr/local/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to find_package_handle_standard_args (TRIUTILS) does not match the name of the calling package (TRILINOS). This can lead to problems in calling code that expects find_package result variables (e.g., _FOUND) to follow a certain pattern. Call Stack (most recent call first): cmake_modules/FindTRILINOS.cmake:176 (find_package_handle_standard_args) CMakeLists.txt:518 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Could NOT find TRIUTILS (missing: TRIUTILS_LIBRARY) ...

loumalouomega commented 10 months ago

Can you share the result of ls in the library folder?

azzeddinetiba commented 10 months ago

lsOut.txt

loumalouomega commented 10 months ago

lsOut.txt

A priori is Okay and the same content as my library folder, so I am completely lost why it fails. Can you give me more info about this machine?, it is a Ubuntu server with SLURM. Can you try to compile in the host node? (just start it, the host node is not for compiling, it is to see if works)

azzeddinetiba commented 10 months ago

I'm not familiar with SLURM. It's a container (lxc) with Ubuntu 20.04.3

loumalouomega commented 10 months ago

I'm not familiar with SLURM. It's a container (lxc) with Ubuntu 20.04.3

Do you need to use Ubuntu 20.04? just asking.

If not SLURM why this:

# Load modules required for compilation
module purge
module load boost
module load python
module load openmpi
module switch gcc gcc/10.2.0

@roigcarlo help

azzeddinetiba commented 10 months ago

Do you need to use Ubuntu 20.04? just asking.

Theoretically, I can upgrade. For now, I don't have any other problems with Ubuntu 20.04, so I avoid to.

If not SLURM why this:

# Load modules required for compilation
module purge
module load boost
module load python
module load openmpi
module switch gcc gcc/10.2.0

True, I forgot to remove those lines. I had copied it with the rest of the script from here (Removing them gives the same results)

loumalouomega commented 10 months ago

Do you need to use Ubuntu 20.04? just asking.

Theoretically, I can upgrade. For now, I don't have any other problems with Ubuntu 20.04, so I avoid to.

If not SLURM why this:

# Load modules required for compilation
module purge
module load boost
module load python
module load openmpi
module switch gcc gcc/10.2.0

True, I forgot to remove those lines. I had copied it with the rest of the script from here (Removing them gives the same results)

That is older than time itself, can you tried proivided scripts instead, maybe there is something stupid there.

loumalouomega commented 10 months ago

Do you need to use Ubuntu 20.04? just asking.

Theoretically, I can upgrade. For now, I don't have any other problems with Ubuntu 20.04, so I avoid to.

If not SLURM why this:

# Load modules required for compilation
module purge
module load boost
module load python
module load openmpi
module switch gcc gcc/10.2.0

True, I forgot to remove those lines. I had copied it with the rest of the script from here (Removing them gives the same results)

That is older than time itself, can you tried proivided scripts instead, maybe there is something stupid there.

Otherwise I xan only think in updating Ubuntu, and maybe we have crashed CMake compatibility beyond our understaning.

roigcarlo commented 10 months ago

Hi @azzeddinetiba

In ubuntu, typically you do not need to pass the prefix / suffix options, cmake should be able to find trilinos if its correctly installed.

loumalouomega commented 10 months ago

Hi @azzeddinetiba

In ubuntu, typically you do not need to pass the prefix / suffix options, cmake should be able to find trilinos if its correctly installed.

* Can you confirm that trilinos is actually installed in the system? (And tell me if you did it through compilation or a package manager)

* After, please, can you provide a list of the names and location of the libraries?

We already checked that a priori

roigcarlo commented 10 months ago

A ok, I see the log, i though it was the compilation log sorry. If there are there, Have you tried to just remove everything related with trilinos from the configure file? it should work out of the box just with enabling the app if all are default libs