Sabyasachi,

What is the boost version of the system-provided boost installation?
You should be able to work around this issue by forcing deal.II to use its
bundled boost package via using `-DDEAL_II_FORCE_BUNDLED_BOOST=ON` when
configuring deal.II.

Best,
Daniel

On Sun, Jun 18, 2023 at 2:01 AM sabyasachi chatterjee <sabya.1...@gmail.com>
wrote:

> Hello,
>
> I recently upgraded to ubuntu 22.04 and the deal ii version I am using is
> 9.1.1. It used to compile fine in ubuntu 20.04. However, now I am seeing
> the following error:
>
>
> ***************************************************************************************
> In file included from
> /usr/include/boost/smart_ptr/detail/sp_thread_sleep.hpp:22,
>                  from /usr/include/boost/smart_ptr/detail/yield_k.hpp:23,
>                  from
> /usr/include/boost/smart_ptr/detail/spinlock_gcc_atomic.hpp:14,
>                  from /usr/include/boost/smart_ptr/detail/spinlock.hpp:42,
>                  from
> /usr/include/boost/smart_ptr/detail/spinlock_pool.hpp:25,
>                  from /usr/include/boost/smart_ptr/shared_ptr.hpp:29,
>                  from
> /usr/include/boost/archive/detail/helper_collection.hpp:27,
>                  from
> /usr/include/boost/archive/detail/basic_iarchive.hpp:28,
>                  from
> /usr/include/boost/archive/detail/common_iarchive.hpp:21,
>                  from
> /usr/include/boost/archive/basic_binary_iarchive.hpp:30,
>                  from
> /usr/include/boost/archive/binary_iarchive_impl.hpp:21,
>                  from /usr/include/boost/archive/binary_iarchive.hpp:20,
>                  from
> /home/sabyasachi/Documents/dealii_libraries/dealii_setup/deal.II-v9.1.1/include/deal.II/base/utilities.h:45,
>                  from
> /home/sabyasachi/Documents/dealii_libraries/dealii_setup/deal.II-v9.1.1/include/deal.II/base/tensor.h:26,
>                  from
> /home/sabyasachi/Documents/dealii_libraries/dealii_setup/deal.II-v9.1.1/include/deal.II/base/point.h:23,
>                  from
> /home/sabyasachi/Documents/dealii_libraries/dealii_setup/deal.II-v9.1.1/include/deal.II/base/quadrature.h:22,
>                  from
> /home/sabyasachi/Documents/dealii_libraries/dealii_setup/deal.II-v9.1.1/include/deal.II/base/quadrature_lib.h:22,
>                  from
> /home/sabyasachi/Documents/postdoc/irradiated_hardness_test_contact/main_hardness_contact.cc:1:
> /usr/include/boost/detail/no_exceptions_support.hpp:17:1: note: ‘#pragma
> message: This header is deprecated. Use
> <boost/core/no_exceptions_support.hpp> instead.’
>    17 | BOOST_HEADER_DEPRECATED("<boost/core/no_exceptions_support.hpp>")
>       | ^~~~~~~~~~~~~~~~~~~~~~~
> In file included from
> /home/sabyasachi/Documents/dealii_libraries/dealii_setup/deal.II-v9.1.1/include/deal.II/grid/grid_tools.h:45,
>                  from
> /home/sabyasachi/Documents/postdoc/irradiated_hardness_test_contact/main_hardness_contact.cc:33:
> /usr/include/boost/geometry/index/detail/serialization.hpp: In static
> member function ‘static
> boost::geometry::index::detail::rtree::load<MembersHolder>::node_pointer
> boost::geometry::index::detail::rtree::load<MembersHolder>::raw_apply(Archive&,
> unsigned int,
> boost::geometry::index::detail::rtree::load<MembersHolder>::size_type,
> boost::geometry::index::detail::rtree::load<MembersHolder>::size_type&,
> const parameters_type&, const translator_type&,
> boost::geometry::index::detail::rtree::load<MembersHolder>::allocators_type&,
> boost::geometry::index::detail::rtree::load<MembersHolder>::size_type)’:
> /usr/include/boost/geometry/index/detail/serialization.hpp:399:49: error:
> ‘Allocators’ was not declared in this scope; did you mean ‘allocators’?
>   399 |             node_pointer n = rtree::create_node<Allocators,
> internal_node>::apply(allocators);              // MAY THROW (A)
>       |                                                 ^~~~~~~~~~
>       |                                                 allocators
> /usr/include/boost/geometry/index/detail/serialization.hpp:399:74: error:
> template argument 1 is invalid
>   399 |             node_pointer n = rtree::create_node<Allocators,
> internal_node>::apply(allocators);              // MAY THROW (A)
>       |
>        ^
> /usr/include/boost/geometry/index/detail/serialization.hpp:422:49: error:
> ‘Allocators’ was not declared in this scope; did you mean ‘allocators’?
>   422 |             node_pointer n = rtree::create_node<Allocators,
> leaf>::apply(allocators);                       // MAY THROW (A)
>       |                                                 ^~~~~~~~~~
>       |                                                 allocators
>
> ********************************************************************************************
>
> Probably it is something related to boost library. My code is an extension
> of Step 18 and I think it does not need the boost library. Please suggest
> how to resolve this.
>
> Thanks,
> Sabyasachi
>
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/dd138e90-745e-475a-8ec5-49a4302b0883n%40googlegroups.com
> <https://groups.google.com/d/msgid/dealii/dd138e90-745e-475a-8ec5-49a4302b0883n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CAOYDWb%2BE4OaF_pXJqvcsfBpLSp6xSL%2BJLt_KDDqRxSJA0BgoNw%40mail.gmail.com.

Reply via email to