[Trilinos-Users] MueLu Muemex Build problems
Julian Andrej
juan at tf.uni-kiel.de
Mon Jan 18 07:11:54 EST 2016
Hello,
i'm using a recent git checkout and try to compile MueLu with Matlab
support. The build fails in the linking process. I would be happy if
anyone can assist.
The corresponding build options are:
rm -rf CMakeFiles CMakeCache.txt
cmake \
-D
CMAKE_INSTALL_PREFIX:FILEPATH="/home/juan/opt/trilinos-nompi-matlab" \
-D Trilinos_ENABLE_DEBUG:BOOL=OFF \
-D Trilinos_ENABLE_ALL_PACKAGES:BOOL=OFF \
-D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
-D Trilinos_ENABLE_EXAMPLES:BOOL=OFF \
-D Trilinos_ENABLE_TESTS:BOOL=OFF \
-D Trilinos_ENABLE_MueLu:BOOL=ON \
-D Trilinos_ENABLE_EXPLICIT_INSTANTIATION:BOOL=ON \
-D Teuchos_ENABLE_COMPLEX:BOOL=ON \
-D Tpetra_INST_COMPLEX_DOUBLE:BOOL=ON \
-D Tpetra_INST_INT_LONG_LONG:BOOL=ON \
-D Tpetra_INST_INT_LONG:BOOL=ON \
-D TPL_ENABLE_MPI:BOOL=OFF \
-D MATLAB_ROOT:STRING="/opt/matlab" \
-D MATLAB_ARCH:STRING="glnxa64" \
-D TPL_ENABLE_MATLAB:BOOL=ON \
-D CMAKE_CXX_FLAGS:STRING="-fPIC" \
-D CMAKE_C_FLAGS:STRING="-fPIC" \
-D CMAKE_Fortran_FLAGS:STRING="-fPIC" \
../
and the Error log of the failing portion is:
MueLu_ParameterListInterpreter.cpp:(.text._ZNK5MueLu14MatlabSmootherIdilN6Kokkos6Compat23KokkosDeviceWrapperNodeINS1_6SerialENS1_9HostSpaceEEEE5ApplyERN6Xpetra11MultiVectorIdilS6_EERKSA_b[_ZNK5MueLu14MatlabSmootherIdilN6Kokkos6Compat23KokkosDeviceWrapperNodeINS1_6SerialENS1_9HostSpaceEEEE5ApplyERN6Xpetra11MultiVectorIdilS6_EERKSA_b]+0x46d):
undefined reference to
`MueLu::MuemexData<Teuchos::RCP<Xpetra::MultiVector<double, int, long,
Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial,
Kokkos::HostSpace> > > >::getData()'
collect2: error: ld returned 1 exit status
packages/muelu/matlab/bin/CMakeFiles/muemex.mexa64.dir/build.make:169:
recipe for target 'packages/muelu/matlab/bin/muemex.mexa64' failed
make[2]: *** [packages/muelu/matlab/bin/muemex.mexa64] Error 1
CMakeFiles/Makefile2:8970: recipe for target
'packages/muelu/matlab/bin/CMakeFiles/muemex.mexa64.dir/all' failed
make[1]: ***
[packages/muelu/matlab/bin/CMakeFiles/muemex.mexa64.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
More information about the Trilinos-Users
mailing list