Package: pion
Version: 5.0.6+dfsg-1
Severity: important
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-no-match

This package fails to build with GCC 6.  GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.

Note that only the first error is reported; there might be more.  You
can find a snapshot of GCC 6 in experimental.  To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.

You may be able to find out more about this issue at
https://gcc.gnu.org/gcc-6/changes.html

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
>   CXX      tcp_server.lo
> In file included from /usr/include/boost/bind.hpp:22:0,
>                  from tcp_server.cpp:11:
> /usr/include/boost/bind/bind.hpp: In instantiation of 'void 
> boost::_bi::list2<A1, A2>::operator()(boost::_bi::type<void>, F&, A&, int) 
> [with F = boost::_mfi::mf1<void, pion::tcp::server, 
> boost::shared_ptr<pion::tcp::connection>&>; A = boost::_bi::list1<const 
> boost::shared_ptr<pion::tcp::connection>&>; A1 = 
> boost::_bi::value<pion::tcp::server*>; A2 = boost::arg<1>]':
> /usr/include/boost/bind/bind.hpp:905:50:   required from 
> 'boost::_bi::bind_t<R, F, L>::result_type boost::_bi::bind_t<R, F, 
> L>::operator()(A1&&) [with A1 = boost::shared_ptr<pion::tcp::connection>; R = 
> void; F = boost::_mfi::mf1<void, pion::tcp::server, 
> boost::shared_ptr<pion::tcp::connection>&>; L = 
> boost::_bi::list2<boost::_bi::value<pion::tcp::server*>, boost::arg<1> >; 
> boost::_bi::bind_t<R, F, L>::result_type = void]'
> /usr/include/boost/function/function_template.hpp:159:11:   required from 
> 'static void boost::detail::function::void_function_obj_invoker1<FunctionObj, 
> R, T0>::invoke(boost::detail::function::function_buffer&, T0) [with 
> FunctionObj = boost::_bi::bind_t<void, boost::_mfi::mf1<void, 
> pion::tcp::server, boost::shared_ptr<pion::tcp::connection>&>, 
> boost::_bi::list2<boost::_bi::value<pion::tcp::server*>, boost::arg<1> > >; R 
> = void; T0 = boost::shared_ptr<pion::tcp::connection>]'
> /usr/include/boost/function/function_template.hpp:940:38:   required from 
> 'void boost::function1<R, T1>::assign_to(Functor) [with Functor = 
> boost::_bi::bind_t<void, boost::_mfi::mf1<void, pion::tcp::server, 
> boost::shared_ptr<pion::tcp::connection>&>, 
> boost::_bi::list2<boost::_bi::value<pion::tcp::server*>, boost::arg<1> > >; R 
> = void; T0 = boost::shared_ptr<pion::tcp::connection>]'
> /usr/include/boost/function/function_template.hpp:728:7:   required from 
> 'boost::function1<R, T1>::function1(Functor, typename 
> boost::enable_if_c<(boost::type_traits::ice_not<(boost::is_integral<Functor>::value)>::value),
>  int>::type) [with Functor = boost::_bi::bind_t<void, boost::_mfi::mf1<void, 
> pion::tcp::server, boost::shared_ptr<pion::tcp::connection>&>, 
> boost::_bi::list2<boost::_bi::value<pion::tcp::server*>, boost::arg<1> > >; R 
> = void; T0 = boost::shared_ptr<pion::tcp::connection>; typename 
> boost::enable_if_c<(boost::type_traits::ice_not<(boost::is_integral<Functor>::value)>::value),
>  int>::type = int]'
> tcp_server.cpp:183:84:   required from here
> /usr/include/boost/bind/bind.hpp:313:35: error: no match for call to 
> '(boost::_mfi::mf1<void, pion::tcp::server, 
> boost::shared_ptr<pion::tcp::connection>&>) (pion::tcp::server*&, const 
> boost::shared_ptr<pion::tcp::connection>&)'
>          unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_]);
>          ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> In file included from /usr/include/boost/bind/mem_fn.hpp:215:0,
>                  from /usr/include/boost/mem_fn.hpp:22,
>                  from /usr/include/boost/bind/bind.hpp:26,
>                  from /usr/include/boost/bind.hpp:22,
>                  from tcp_server.cpp:11:
> /usr/include/boost/bind/mem_fn_template.hpp:163:7: note: candidate: R 
> boost::_mfi::mf1<R, T, A1>::operator()(T*, A1) const [with R = void; T = 
> pion::tcp::server; A1 = boost::shared_ptr<pion::tcp::connection>&] <near 
> match>
>      R operator()(T * p, A1 a1) const
>        ^~~~~~~~
> 
> /usr/include/boost/bind/mem_fn_template.hpp:163:7: note:   conversion of 
> argument 2 would be ill-formed:
> In file included from /usr/include/boost/bind.hpp:22:0,
>                  from tcp_server.cpp:11:
> /usr/include/boost/bind/bind.hpp:313:35: error: binding 'const 
> boost::shared_ptr<pion::tcp::connection>' to reference of type 
> 'boost::shared_ptr<pion::tcp::connection>&' discards qualifiers
>          unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_]);
>          ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 

Reply via email to