IFPACK2 Compile Failure - GCC 4.8.4 on Hansen Test System
Created by: nmhamster
Reproducer:
module load devpack/openmpi/1.10.0/gcc/4.8.4/cuda/7.5.18
(Hansen)
Configure Trilinos, Run make
and output:
[ 90%] Building CXX object packages/ifpack2/src/CMakeFiles/ifpack2.dir/Ifpack2_AdditiveSchwarz_Serial.cpp.o
In file included from /home/sdhammo/git/trilinos-github-repo/build-devpack-gcc-4.8.4/packages/ifpack2/src/Ifpack2_AdditiveSchwarz_Serial.cpp:50:0:
/home/sdhammo/git/trilinos-github-repo/packages/ifpack2/src/Ifpack2_AdditiveSchwarz_def.hpp: In instantiation of ‘void Ifpack2::AdditiveSchwarz<MatrixType, LocalInverseType>::setup() [with MatrixType = Tpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >; LocalInverseType = Ifpack2::Preconditioner<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >]’:
/home/sdhammo/git/trilinos-github-repo/build-devpack-gcc-4.8.4/packages/ifpack2/src/Ifpack2_AdditiveSchwarz_Serial.cpp:61:1: required from here
/home/sdhammo/git/trilinos-github-repo/packages/ifpack2/src/Ifpack2_AdditiveSchwarz_def.hpp:1531:75: error: conversion from ‘Teuchos::ArrayRCP<long int>’ to non-scalar type ‘Teuchos::ArrayRCP<int>’ requested
ArrayRCP<local_ordinal_type> perm = sol.getPermutationRCPConst (true);
^
/home/sdhammo/git/trilinos-github-repo/packages/ifpack2/src/Ifpack2_AdditiveSchwarz_def.hpp:1532:74: error: conversion from ‘Teuchos::ArrayRCP<long int>’ to non-scalar type ‘Teuchos::ArrayRCP<int>’ requested
ArrayRCP<local_ordinal_type> revperm = sol.getPermutationRCPConst ();
^
In file included from /home/sdhammo/git/trilinos-github-repo/packages/zoltan2/src/algorithms/order/Zoltan2_OrderingAlgorithms.hpp:51:0,
from /home/sdhammo/git/trilinos-github-repo/packages/zoltan2/src/problems/Zoltan2_OrderingProblem.hpp:54,
from /home/sdhammo/git/trilinos-github-repo/packages/ifpack2/src/Ifpack2_AdditiveSchwarz_def.hpp:68,
from /home/sdhammo/git/trilinos-github-repo/build-devpack-gcc-4.8.4/packages/ifpack2/src/Ifpack2_AdditiveSchwarz_Serial.cpp:50:
/home/sdhammo/git/trilinos-github-repo/packages/zoltan2/src/algorithms/order/Zoltan2_AlgRCM.hpp: In instantiation of ‘int Zoltan2::AlgRCM<Adapter>::order(const Teuchos::RCP<Zoltan2::OrderingSolution<typename Adapter::lno_t, typename Adapter::gno_t> >&) [with Adapter = Zoltan2::MatrixAdapter<Xpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >, Xpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> > >; typename Adapter::gno_t = long int; typename Adapter::lno_t = int]’:
/home/sdhammo/git/trilinos-github-repo/packages/zoltan2/src/problems/Zoltan2_OrderingProblem.hpp:199:7: required from ‘void Zoltan2::OrderingProblem<Adapter>::solve(bool) [with Adapter = Zoltan2::XpetraRowMatrixAdapter<Xpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >, Xpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> > >]’
/home/sdhammo/git/trilinos-github-repo/packages/ifpack2/src/Ifpack2_AdditiveSchwarz_def.hpp:1517:5: required from ‘void Ifpack2::AdditiveSchwarz<MatrixType, LocalInverseType>::setup() [with MatrixType = Tpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >; LocalInverseType = Ifpack2::Preconditioner<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >]’
/home/sdhammo/git/trilinos-github-repo/build-devpack-gcc-4.8.4/packages/ifpack2/src/Ifpack2_AdditiveSchwarz_Serial.cpp:61:1: required from here
/home/sdhammo/git/trilinos-github-repo/packages/zoltan2/src/algorithms/order/Zoltan2_AlgRCM.hpp:112:69: error: conversion from ‘const Teuchos::ArrayRCP<long int>’ to non-scalar type ‘const Teuchos::ArrayRCP<int>’ requested
const ArrayRCP<lno_t> invPerm = solution->getPermutationRCP(true);
^
In file included from /home/sdhammo/git/trilinos-github-repo/packages/zoltan2/src/algorithms/order/Zoltan2_OrderingAlgorithms.hpp:49:0,
from /home/sdhammo/git/trilinos-github-repo/packages/zoltan2/src/problems/Zoltan2_OrderingProblem.hpp:54,
from /home/sdhammo/git/trilinos-github-repo/packages/ifpack2/src/Ifpack2_AdditiveSchwarz_def.hpp:68,
from /home/sdhammo/git/trilinos-github-repo/build-devpack-gcc-4.8.4/packages/ifpack2/src/Ifpack2_AdditiveSchwarz_Serial.cpp:50:
/home/sdhammo/git/trilinos-github-repo/packages/zoltan2/src/algorithms/order/Zoltan2_AlgNatural.hpp: In instantiation of ‘int Zoltan2::AlgNatural<Adapter>::order(const Teuchos::RCP<Zoltan2::OrderingSolution<typename Adapter::lno_t, typename Adapter::gno_t> >&) [with Adapter = Zoltan2::MatrixAdapter<Xpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >, Xpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> > >; typename Adapter::gno_t = long int; typename Adapter::lno_t = int]’:
/home/sdhammo/git/trilinos-github-repo/packages/zoltan2/src/problems/Zoltan2_OrderingProblem.hpp:205:7: required from ‘void Zoltan2::OrderingProblem<Adapter>::solve(bool) [with Adapter = Zoltan2::XpetraRowMatrixAdapter<Xpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >, Xpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> > >]’
/home/sdhammo/git/trilinos-github-repo/packages/ifpack2/src/Ifpack2_AdditiveSchwarz_def.hpp:1517:5: required from ‘void Ifpack2::AdditiveSchwarz<MatrixType, LocalInverseType>::setup() [with MatrixType = Tpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >; LocalInverseType = Ifpack2::Preconditioner<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >]’
/home/sdhammo/git/trilinos-github-repo/build-devpack-gcc-4.8.4/packages/ifpack2/src/Ifpack2_AdditiveSchwarz_Serial.cpp:61:1: required from here
/home/sdhammo/git/trilinos-github-repo/packages/zoltan2/src/algorithms/order/Zoltan2_AlgNatural.hpp:93:44: error: cannot convert ‘long int*’ to ‘Zoltan2::AlgNatural<Zoltan2::MatrixAdapter<Xpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >, Xpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> > > >::lno_t* {aka int*}’ in initialization
lno_t *perm = solution->getPermutation();
^
In file included from /home/sdhammo/git/trilinos-github-repo/packages/zoltan2/src/algorithms/order/Zoltan2_OrderingAlgorithms.hpp:52:0,
from /home/sdhammo/git/trilinos-github-repo/packages/zoltan2/src/problems/Zoltan2_OrderingProblem.hpp:54,
from /home/sdhammo/git/trilinos-github-repo/packages/ifpack2/src/Ifpack2_AdditiveSchwarz_def.hpp:68,
from /home/sdhammo/git/trilinos-github-repo/build-devpack-gcc-4.8.4/packages/ifpack2/src/Ifpack2_AdditiveSchwarz_Serial.cpp:50:
/home/sdhammo/git/trilinos-github-repo/packages/zoltan2/src/algorithms/order/Zoltan2_AlgSortedDegree.hpp: In instantiation of ‘int Zoltan2::AlgSortedDegree<Adapter>::order(const Teuchos::RCP<Zoltan2::OrderingSolution<typename Adapter::lno_t, typename Adapter::gno_t> >&) [with Adapter = Zoltan2::MatrixAdapter<Xpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >, Xpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> > >; typename Adapter::gno_t = long int; typename Adapter::lno_t = int]’:
/home/sdhammo/git/trilinos-github-repo/packages/zoltan2/src/problems/Zoltan2_OrderingProblem.hpp:217:7: required from ‘void Zoltan2::OrderingProblem<Adapter>::solve(bool) [with Adapter = Zoltan2::XpetraRowMatrixAdapter<Xpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >, Xpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> > >]’
/home/sdhammo/git/trilinos-github-repo/packages/ifpack2/src/Ifpack2_AdditiveSchwarz_def.hpp:1517:5: required from ‘void Ifpack2::AdditiveSchwarz<MatrixType, LocalInverseType>::setup() [with MatrixType = Tpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >; LocalInverseType = Ifpack2::Preconditioner<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >]’
/home/sdhammo/git/trilinos-github-repo/build-devpack-gcc-4.8.4/packages/ifpack2/src/Ifpack2_AdditiveSchwarz_Serial.cpp:61:1: required from here
/home/sdhammo/git/trilinos-github-repo/packages/zoltan2/src/algorithms/order/Zoltan2_AlgSortedDegree.hpp:91:44: error: cannot convert ‘long int*’ to ‘Zoltan2::AlgSortedDegree<Zoltan2::MatrixAdapter<Xpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >, Xpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> > > >::lno_t* {aka int*}’ in initialization
lno_t *perm = solution->getPermutation();
^
make[2]: *** [packages/ifpack2/src/CMakeFiles/ifpack2.dir/Ifpack2_AdditiveSchwarz_Serial.cpp.o] Error 1
make[1]: *** [packages/ifpack2/src/CMakeFiles/ifpack2.dir/all] Error 2
make: *** [all] Error 2