v9.3.2 compilation error: sundials

24 views
Skip to first unread message

Praveen C

unread,
Dec 14, 2021, 3:58:05 AM12/14/21
to Deal.II Googlegroup
Dear all

While compiling v9.3.2, I get failure at this point. It seems to be this problem


but I am still facing it. Is it not fixed in v9.3.2 ?

Thanks
praveen

[ 58%] Building CXX object source/sundials/CMakeFiles/obj_sundials_release.dir/arkode.cc.o
[ 58%] Building CXX object source/sundials/CMakeFiles/obj_sundials_release.dir/ida.cc.o
[ 58%] Building CXX object source/sundials/CMakeFiles/obj_sundials_release.dir/copy.cc.o
[ 59%] Building CXX object source/matrix_free/CMakeFiles/obj_matrix_free_release.dir/vector_data_exchange.cc.o
[ 59%] Building CXX object source/sundials/CMakeFiles/obj_sundials_release.dir/kinsol.cc.o
[ 59%] Building CXX object source/sundials/CMakeFiles/obj_sundials_release.dir/n_vector.cc.o
In file included from /Users/praveen/Applications/deal.II/9.3.2/source/sundials/n_vector.cc:20:
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:522:10: error: cannot initialize return object of type 'void *' with an rvalue of type 'MPI_Comm' (aka 'int')
  return get_communicator<VectorType>(v);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:897:24: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::NVectorOperations::get_communicator_as_void_ptr<dealii::LinearAlgebra::distributed::Vector<double>, 0>' requested here
    NVectorOperations::get_communicator_as_void_ptr<VectorType>;
                       ^
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:407:16: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::create_empty_nvector<dealii::LinearAlgebra::distributed::Vector<double>>' requested here
  N_Vector v = create_empty_nvector<VectorType>();
               ^
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:376:7: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::create_nvector<dealii::LinearAlgebra::distributed::Vector<double>>' requested here
      create_nvector(
      ^
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:522:10: error: cannot initialize return object of type 'void *' with an rvalue of type 'MPI_Comm' (aka 'int')
  return get_communicator<VectorType>(v);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:897:24: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::NVectorOperations::get_communicator_as_void_ptr<dealii::LinearAlgebra::distributed::BlockVector<double>, 0>' requested here
    NVectorOperations::get_communicator_as_void_ptr<VectorType>;
                       ^
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:407:16: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::create_empty_nvector<dealii::LinearAlgebra::distributed::BlockVector<double>>' requested here
  N_Vector v = create_empty_nvector<VectorType>();
               ^
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:376:7: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::create_nvector<dealii::LinearAlgebra::distributed::BlockVector<double>>' requested here
      create_nvector(
      ^
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:522:10: error: cannot initialize return object of type 'void *' with an rvalue of type 'MPI_Comm' (aka 'int')
  return get_communicator<VectorType>(v);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:897:24: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::NVectorOperations::get_communicator_as_void_ptr<dealii::LinearAlgebra::distributed::Vector<float>, 0>' requested here
    NVectorOperations::get_communicator_as_void_ptr<VectorType>;
                       ^
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:407:16: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::create_empty_nvector<dealii::LinearAlgebra::distributed::Vector<float>>' requested here
  N_Vector v = create_empty_nvector<VectorType>();
               ^
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:376:7: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::create_nvector<dealii::LinearAlgebra::distributed::Vector<float>>' requested here
      create_nvector(
      ^
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:522:10: error: cannot initialize return object of type 'void *' with an rvalue of type 'MPI_Comm' (aka 'int')
  return get_communicator<VectorType>(v);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:897:24: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::NVectorOperations::get_communicator_as_void_ptr<dealii::LinearAlgebra::distributed::BlockVector<float>, 0>' requested here
    NVectorOperations::get_communicator_as_void_ptr<VectorType>;
                       ^
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:407:16: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::create_empty_nvector<dealii::LinearAlgebra::distributed::BlockVector<float>>' requested here
  N_Vector v = create_empty_nvector<VectorType>();
               ^
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:376:7: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::create_nvector<dealii::LinearAlgebra::distributed::BlockVector<float>>' requested here
      create_nvector(
      ^
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:522:10: error: cannot initialize return object of type 'void *' with an rvalue of type 'MPI_Comm' (aka 'int')
  return get_communicator<VectorType>(v);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:897:24: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::NVectorOperations::get_communicator_as_void_ptr<dealii::TrilinosWrappers::MPI::Vector, 0>' requested here
    NVectorOperations::get_communicator_as_void_ptr<VectorType>;
                       ^
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:407:16: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::create_empty_nvector<dealii::TrilinosWrappers::MPI::Vector>' requested here
  N_Vector v = create_empty_nvector<VectorType>();
               ^
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:376:7: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::create_nvector<dealii::TrilinosWrappers::MPI::Vector>' requested here
      create_nvector(
      ^
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:522:10: error: cannot initialize return object of type 'void *' with an rvalue of type 'MPI_Comm' (aka 'int')
  return get_communicator<VectorType>(v);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:897:24: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::NVectorOperations::get_communicator_as_void_ptr<dealii::TrilinosWrappers::MPI::BlockVector, 0>' requested here
    NVectorOperations::get_communicator_as_void_ptr<VectorType>;
                       ^
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:407:16: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::create_empty_nvector<dealii::TrilinosWrappers::MPI::BlockVector>' requested here
  N_Vector v = create_empty_nvector<VectorType>();
               ^
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:376:7: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::create_nvector<dealii::TrilinosWrappers::MPI::BlockVector>' requested here
      create_nvector(
      ^
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:522:10: error: cannot initialize return object of type 'void *' with an rvalue of type 'MPI_Comm' (aka 'int')
  return get_communicator<VectorType>(v);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:897:24: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::NVectorOperations::get_communicator_as_void_ptr<dealii::PETScWrappers::MPI::Vector, 0>' requested here
    NVectorOperations::get_communicator_as_void_ptr<VectorType>;
                       ^
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:407:16: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::create_empty_nvector<dealii::PETScWrappers::MPI::Vector>' requested here
  N_Vector v = create_empty_nvector<VectorType>();
               ^
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:376:7: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::create_nvector<dealii::PETScWrappers::MPI::Vector>' requested here
      create_nvector(
      ^
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:522:10: error: cannot initialize return object of type 'void *' with an rvalue of type 'MPI_Comm' (aka 'int')
  return get_communicator<VectorType>(v);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:897:24: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::NVectorOperations::get_communicator_as_void_ptr<dealii::PETScWrappers::MPI::BlockVector, 0>' requested here
    NVectorOperations::get_communicator_as_void_ptr<VectorType>;
                       ^
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:407:16: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::create_empty_nvector<dealii::PETScWrappers::MPI::BlockVector>' requested here
  N_Vector v = create_empty_nvector<VectorType>();
               ^
/Users/praveen/Applications/deal.II/9.3.2/include/deal.II/sundials/n_vector.templates.h:376:7: note: in instantiation of function template specialization 'dealii::SUNDIALS::internal::create_nvector<dealii::PETScWrappers::MPI::BlockVector>' requested here
      create_nvector(
      ^
8 errors generated.
make[2]: *** [source/sundials/CMakeFiles/obj_sundials_release.dir/n_vector.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [source/sundials/CMakeFiles/obj_sundials_release.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 59%] Built target obj_matrix_free_release
^Cmake[2]: *** [source/non_matching/CMakeFiles/obj_non_matching_release.dir/coupling.cc.o] Interrupt: 2
make[1]: *** [source/non_matching/CMakeFiles/obj_non_matching_release.dir/all] Interrupt: 2
make: *** [all] Interrupt: 2

Wolfgang Bangerth

unread,
Dec 14, 2021, 9:37:24 AM12/14/21
to dea...@googlegroups.com
On 12/14/21 1:57 AM, Praveen C wrote:
>
> While compiling v9.3.2, I get failure at this point. It seems to be this problem
>
> https://github.com/dealii/dealii/issues/12914
> <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdealii%2Fdealii%2Fissues%2F12914&data=04%7C01%7CWolfgang.Bangerth%40colostate.edu%7Cad821ad48d1f4406c67808d9bedfd83f%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637750690909216175%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=TggQvI1FbecbMOAVJfZRy6S1xAhsGhP%2BeDLlEDDsDyY%3D&reserved=0>
>
> but I am still facing it. Is it not fixed in v9.3.2 ?

Yes, I think we forgot to put that into 9.3.2.

Would you be interested in proposing a patch against the 9.3 branch so that if
we ever get around to a 9.3.3 release this will be fixed? In the meantime, of
course, you can always work with the master branch or just apply the patch
locally before you install.

Best
W.

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Reply all
Reply to author
Forward
0 new messages