Domi Tpetra Node config issue (was: "Trilinos installation failure on Ubuntu 14.04")
Created by: fertinaz
Tyring to install Trilinos cloned from git repo on my Ubuntu 14.04 laptop. Installation basically fails at this step:
Byte compiling Anasazi.py
[ 95%] Built target PyTrilinos_Anasazi
[ 95%] Swig source /home/fertinaz/Trilinos/packages/PyTrilinos/src/Pliris.i
Scanning dependencies of target PyTrilinos_Pliris
[ 95%] Building CXX object packages/PyTrilinos/src/CMakeFiles/PyTrilinos_Pliris.dir/PlirisPYTHON_wrap.cpp.o
[ 95%] Linking CXX shared module PyTrilinos/_Pliris.so
Byte compiling Pliris.py
[ 95%] Built target PyTrilinos_Pliris
[ 95%] Swig source /home/fertinaz/Trilinos/packages/PyTrilinos/src/Epetra.i
Scanning dependencies of target PyTrilinos_Epetra
[ 95%] Building CXX object packages/PyTrilinos/src/CMakeFiles/PyTrilinos_Epetra.dir/EpetraPYTHON_wrap.cpp.o
[ 95%] Linking CXX shared module PyTrilinos/_Epetra.so
Byte compiling Epetra.py
[ 95%] Built target PyTrilinos_Epetra
[ 95%] Swig source /home/fertinaz/Trilinos/packages/PyTrilinos/src/Domi.i
/home/fertinaz/Trilinos/packages/tpetra/core/src/Tpetra_ConfigDefs.hpp:187: Error: CPP #error ""No default Tpetra Node type specified. Please set the CMake option Tpetra_DefaultNode to a valid Node type."". Use the -cpperraswarn option to continue swig processing.
make[2]: *** [packages/PyTrilinos/src/DomiPYTHON_wrap.cpp] Error 1
make[1]: *** [packages/PyTrilinos/src/CMakeFiles/PyTrilinos_Domi.dir/all] Error 2
make: *** [all] Error 2
This is my configuration file:
#! /bin/sh
#Package details
base=$HOME
pkg=Trilinos
cd $base/$pkg
#Reconfigure completely from scratch
rm -rf build CMakeCache.txt CMakeFiles/
#Do not build in source
mkdir build
cd build
cmake .. \
-DTrilinos_ENABLE_CXX11=ON \
-DTrilinos_ENABLE_DEBUG=ON \
-DBUILD_SHARED_LIBS=ON \
-DTPL_ENABLE_MPI=ON \
-DTrilinos_ENABLE_ALL_PACKAGES=ON \
-DCMAKE_INSTALL_PREFIX=$base/$pkg/install \
-DTPL_ENABLE_Netcdf=OFF \
$base/$pkg
# -DTpetra_DefaultNode:STRING=Kokkos::Compat::KokkosSerialWrapperNode \
# Run installer
make install
#make -j4 install 2>&1 | tee log.make.install
Some other info you might find useful: cmake version 3.9.2 mpirun (Open MPI) 1.6.5