Package: libavg
Version: 1.8.1-2
Severity: important
User: [email protected]
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
...
> g++ -DHAVE_CONFIG_H -I. -I../../src  -I.. -I/usr/include/libxml2 -pthread 
> -Wdate-time -D_FORTIFY_SOURCE=2  -msse2 -O3 -ffast-math -Wall -pipe 
> -Wno-invalid-offsetof -Woverloaded-virtual -Wswitch -Wuninitialized 
> -Wempty-body -g -O2 -fstack-protector-strong -Wformat -Werror=format-security 
> -c -o testbase.o testbase.cpp
> In file included from StringHelper.cpp:22:0:
> StringHelper.h: In instantiation of 'void avg::fromString(const string&, T&) 
> [with T = int; std::__cxx11::string = std::__cxx11::basic_string<char>]':
> StringHelper.cpp:70:20:   required from here
> StringHelper.h:115:35: error: no match for 'operator!=' (operand types are 
> 'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' and 
> 'int')
>      bool bOk = (stream >> result) != 0;
>                 ~~~~~~~~~~~~~~~~~~~^~~~
> 
> StringHelper.h:115:35: note: candidate: operator!=(int, int) <built-in>
> StringHelper.h:115:35: note:   no known conversion for argument 1 from 
> 'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' to 
> 'int'
> 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/string:40,
>                  from Exception.h:26,
>                  from StringHelper.h:26,
>                  from StringHelper.cpp:22:
> /usr/include/c++/6/bits/stl_pair.h:357:5: note: candidate: template<class 
> _T1, class _T2> constexpr bool std::operator!=(const std::pair<_T1, _T2>&, 
> const std::pair<_T1, _T2>&)
>      operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
>      ^~~~~~~~
> 
> /usr/include/c++/6/bits/stl_pair.h:357:5: note:   template argument 
> deduction/substitution failed:
> In file included from StringHelper.cpp:22:0:
> StringHelper.h:115:35: note:   'std::basic_istream<char>::__istream_type {aka 
> std::basic_istream<char>}' is not derived from 'const std::pair<_T1, _T2>'
>      bool bOk = (stream >> result) != 0;
>                 ~~~~~~~~~~~~~~~~~~~^~~~
> 
> In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
>                  from /usr/include/c++/6/bits/char_traits.h:39,
>                  from /usr/include/c++/6/string:40,
>                  from Exception.h:26,
>                  from StringHelper.h:26,
>                  from StringHelper.cpp:22:
> /usr/include/c++/6/bits/stl_iterator.h:304:5: note: candidate: template<class 
> _Iterator> bool std::operator!=(const std::reverse_iterator<_Iterator>&, 
> const std::reverse_iterator<_Iterator>&)
>      operator!=(const reverse_iterator<_Iterator>& __x,
>      ^~~~~~~~
> 
> /usr/include/c++/6/bits/stl_iterator.h:304:5: note:   template argument 
> deduction/substitution failed:
> In file included from StringHelper.cpp:22:0:
> StringHelper.h:115:35: note:   'std::basic_istream<char>::__istream_type {aka 
> std::basic_istream<char>}' is not derived from 'const 
> std::reverse_iterator<_Iterator>'
>      bool bOk = (stream >> result) != 0;
>                 ~~~~~~~~~~~~~~~~~~~^~~~
> 
> In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
>                  from /usr/include/c++/6/bits/char_traits.h:39,
>                  from /usr/include/c++/6/string:40,
>                  from Exception.h:26,
>                  from StringHelper.h:26,
>                  from StringHelper.cpp:22:
> /usr/include/c++/6/bits/stl_iterator.h:354:5: note: candidate: template<class 
> _IteratorL, class _IteratorR> bool std::operator!=(const 
> std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
>      operator!=(const reverse_iterator<_IteratorL>& __x,
>      ^~~~~~~~
> 
> /usr/include/c++/6/bits/stl_iterator.h:354:5: note:   template argument 
> deduction/substitution failed:
> In file included from StringHelper.cpp:22:0:
> StringHelper.h:115:35: note:   'std::basic_istream<char>::__istream_type {aka 
> std::basic_istream<char>}' is not derived from 'const 
> std::reverse_iterator<_Iterator>'
>      bool bOk = (stream >> result) != 0;
>                 ~~~~~~~~~~~~~~~~~~~^~~~
> 
> In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
>                  from /usr/include/c++/6/bits/char_traits.h:39,
>                  from /usr/include/c++/6/string:40,
>                  from Exception.h:26,
>                  from StringHelper.h:26,
>                  from StringHelper.cpp:22:
> /usr/include/c++/6/bits/stl_iterator.h:1118:5: note: candidate: 
> template<class _IteratorL, class _IteratorR> bool std::operator!=(const 
> std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)
>      operator!=(const move_iterator<_IteratorL>& __x,
>      ^~~~~~~~

Reply via email to