Package: tagcoll2
Version: 2.0.14-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
...
> /bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. 
>  -I..  -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector-strong 
> -Wformat -Werror=format-security -Wall -c -o TextFormat.lo TextFormat.cc
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I.. -Wdate-time 
> -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat 
> -Werror=format-security -Wall -c TextFormat.cc  -fPIC -DPIC -o TextFormat.o
> In file included from ../tagcoll/TextFormat.tcc:286:0,
>                  from TextFormat.cc:208:
> ../tagcoll/patch.tcc: In instantiation of 'void tagcoll::PatchList<ITEM, 
> TAG>::addPatch(const tagcoll::Patch<ITEM, TAG>&) [with ITEM = 
> std::__cxx11::basic_string<char>; TAG = std::__cxx11::basic_string<char>]':
> ../tagcoll/patch.h:190:3:   required from 'tagcoll::Inserter<ITEM, TAG>& 
> tagcoll::Inserter<ITEM, TAG>::operator=(const tagcoll::Patch<ITEM, TAG>&) 
> [with ITEM = std::__cxx11::basic_string<char>; TAG = 
> std::__cxx11::basic_string<char>]'
> ../tagcoll/TextFormat.tcc:204:9:   required from 
> 'tagcoll::textformat::PatchAssembler<OUT>& 
> tagcoll::textformat::PatchAssembler<OUT>::operator=(const std::pair<_U1, 
> _U2>&) [with ITEMS = std::set<std::__cxx11::basic_string<char>, 
> std::less<std::__cxx11::basic_string<char> >, 
> std::allocator<std::__cxx11::basic_string<char> > >; TAGS = 
> wibble::Empty<std::__cxx11::basic_string<char> >; OUT = 
> tagcoll::Inserter<std::__cxx11::basic_string<char>, 
> std::__cxx11::basic_string<char> >]'
> ../tagcoll/TextFormat.tcc:159:12:   required from 'void 
> tagcoll::textformat::parse(tagcoll::input::Input&, OUT) [with OUT = 
> tagcoll::textformat::PatchAssembler<tagcoll::Inserter<std::__cxx11::basic_string<char>,
>  std::__cxx11::basic_string<char> > >]'
> TextFormat.cc:201:43:   required from here
> ../tagcoll/patch.tcc:56:50: error: no matching function for call to 
> 'make_pair(const std::__cxx11::basic_string<char>&, const 
> tagcoll::Patch<std::__cxx11::basic_string<char>, 
> std::__cxx11::basic_string<char> >&)'
>    this->insert(make_pair<ITEM, Patch<ITEM, TAG> >(patch.item, patch));
>                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
> 
> In file included from /usr/include/c++/6/bits/stl_algobase.h:64:0,
>                  from /usr/include/c++/6/bits/char_traits.h:39,
>                  from /usr/include/c++/6/ios:40,
>                  from /usr/include/c++/6/ostream:38,
>                  from /usr/include/c++/6/iterator:64,
>                  from /usr/include/wibble/mixin.h:7,
>                  from ../tagcoll/TextFormat.h:26,
>                  from TextFormat.cc:21:
> /usr/include/c++/6/bits/stl_pair.h:406:5: note: candidate: template<class 
> _T1, class _T2> constexpr std::pair<typename 
> std::__decay_and_strip<_Tp>::__type, typename 
> std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&)
>      make_pair(_T1&& __x, _T2&& __y)
>      ^~~~~~~~~
> 
> /usr/include/c++/6/bits/stl_pair.h:406:5: note:   template argument 
> deduction/substitution failed:
> In file included from ../tagcoll/TextFormat.tcc:286:0,
>                  from TextFormat.cc:208:
> ../tagcoll/patch.tcc:56:57: note:   cannot convert 
> 'patch.tagcoll::Patch<std::__cxx11::basic_string<char>, 
> std::__cxx11::basic_string<char> >::item' (type 'const 
> std::__cxx11::basic_string<char>') to type 
> 'std::__cxx11::basic_string<char>&&'
>    this->insert(make_pair<ITEM, Patch<ITEM, TAG> >(patch.item, patch));
>                                                    ~~~~~~^~~~
> 
> Makefile:741: recipe for target 'TextFormat.lo' failed

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise

Reply via email to