Package: gamera
Version: 3.4.2+svn1437-2
Severity: important
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-overloaded-ambiguous

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
...
> creating build/temp.linux-x86_64-2.7-pydebug/src
> x86_64-linux-gnu-gcc -pthread -g -O0 -Wall -Wstrict-prototypes 
> -fno-strict-aliasing -g -Og -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude 
> -I/usr/include/python2.7_d -c src/gameramodule.cpp -o 
> build/temp.linux-x86_64-2.7-pydebug/src/gameramodule.o -Wall
> cc1plus: warning: command line option '-Wstrict-prototypes' is valid for 
> C/ObjC but not for C++
> In file included from /usr/include/python2.7/Python.h:19:0,
>                  from include/gameramodule.hpp:24,
>                  from src/gameramodule.cpp:21:
> /usr/include/vigra/numerictraits.hxx:645:43: error: overflow in constant 
> expression [-fpermissive]
>      static const unsigned char maxConst = UCHAR_MAX;
>                                            ^
> 
> /usr/include/vigra/numerictraits.hxx:645:43: error: overflow in constant 
> expression [-fpermissive]
> /usr/include/vigra/numerictraits.hxx:645:43: error: overflow in constant 
> expression [-fpermissive]
> /usr/include/vigra/numerictraits.hxx:645:43: error: overflow in constant 
> expression [-fpermissive]
> /usr/include/vigra/numerictraits.hxx:723:48: error: overflow in constant 
> expression [-fpermissive]
>      static const short unsigned int maxConst = USHRT_MAX;
>                                                 ^
> 
> /usr/include/vigra/numerictraits.hxx:723:48: error: overflow in constant 
> expression [-fpermissive]
> /usr/include/vigra/numerictraits.hxx:723:48: error: overflow in constant 
> expression [-fpermissive]
> /usr/include/vigra/numerictraits.hxx:723:48: error: overflow in constant 
> expression [-fpermissive]
> error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
> debian/rules:59: recipe for target 'build/build-stamp-python2.7' failed
> make[1]: *** [build/build-stamp-python2.7] Error 1
....
> x86_64-linux-gnu-gcc -pthread -g -O0 -Wall -Wstrict-prototypes 
> -fno-strict-aliasing -g -Og -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude 
> -I/usr/include/python2.7_d -c src/imageobject.cpp -o 
> build/temp.linux-x86_64-2.7-pydebug/src/imageobject.o -Wall
> cc1plus: warning: command line option '-Wstrict-prototypes' is valid for 
> C/ObjC but not for C++
> In file included from include/gamera.hpp:62:0,
>                  from include/gameramodule.hpp:38,
>                  from src/imageobject.cpp:22:
> include/rle_data.hpp: In instantiation of 'void 
> Gamera::RleDataDetail::RleVector<Data>::set(size_t, 
> Gamera::RleDataDetail::RleVector<Data>::value_type, typename 
> Gamera::RleDataDetail::RleVector<Data>::list_type::iterator) [with Data = 
> short unsigned int; size_t = long unsigned int; 
> Gamera::RleDataDetail::RleVector<Data>::value_type = short unsigned int; 
> typename Gamera::RleDataDetail::RleVector<Data>::list_type::iterator = 
> std::_List_iterator<Gamera::RleDataDetail::Run<short unsigned int> >]':
> include/rle_data.hpp:423:2:   required from 'void 
> Gamera::RleDataDetail::RleVectorIteratorBase<V, Iterator, 
> ListIterator>::set(const value_type&) [with V = 
> Gamera::RleDataDetail::RleVector<short unsigned int>; Iterator = 
> Gamera::RleDataDetail::RleVectorIterator<Gamera::RleDataDetail::RleVector<short
>  unsigned int> >; ListIterator = 
> std::_List_iterator<Gamera::RleDataDetail::Run<short unsigned int> >; 
> Gamera::RleDataDetail::RleVectorIteratorBase<V, Iterator, 
> ListIterator>::value_type = short unsigned int]'
> include/accessor.hpp:55:7:   required from 'void 
> Gamera::ImageAccessor<T>::set(const value_type&, Iterator) const [with 
> Iterator = 
> Gamera::RleDataDetail::RleVectorIterator<Gamera::RleDataDetail::RleVector<short
>  unsigned int> >; T = short unsigned int; 
> Gamera::ImageAccessor<T>::value_type = short unsigned int]'
> include/image_view.hpp:299:7:   required from 'void 
> Gamera::ImageView<T>::set(const Gamera::Point&, 
> Gamera::ImageView<T>::value_type) [with T = Gamera::RleImageData<short 
> unsigned int>; Gamera::ImageView<T>::value_type = short unsigned int]'
> src/imageobject.cpp:835:73:   required from here
> include/rle_data.hpp:623:46: error: call of overloaded 
> 'prev(std::__cxx11::list<Gamera::RleDataDetail::Run<short unsigned int>, 
> std::allocator<Gamera::RleDataDetail::Run<short unsigned int> > >::iterator)' 
> is ambiguous
>       typename list_type::iterator last = prev(m_data[chunk].end());
>                                           ~~~~^~~~~~~~~~~~~~~~~~~~~
> 
> include/rle_data.hpp:160:7: note: candidate: T Gamera::RleDataDetail::prev(T) 
> [with T = std::_List_iterator<Gamera::RleDataDetail::Run<short unsigned int> 
> >]
>      T prev(T i) {
>        ^~~~
> 
> In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
>                  from /usr/include/c++/6/vector:60,
>                  from include/gamera.hpp:50,
>                  from include/gameramodule.hpp:38,
>                  from src/imageobject.cpp:22:
> /usr/include/c++/6/bits/stl_iterator_base_funcs.h:217:5: note: candidate: 
> _BidirectionalIterator std::prev(_BidirectionalIterator, typename 
> std::iterator_traits<_Iter>::difference_type) [with _BidirectionalIterator = 
> std::_List_iterator<Gamera::RleDataDetail::Run<short unsigned int> >; 
> typename std::iterator_traits<_Iter>::difference_type = long int]
>      prev(_BidirectionalIterator __x, typename
>      ^~~~
> 
> In file included from include/gamera.hpp:62:0,
>                  from include/gameramodule.hpp:38,
>                  from src/imageobject.cpp:22:
> include/rle_data.hpp: In instantiation of 'void 
> Gamera::RleDataDetail::RleVector<Data>::insert_in_run(size_t, 
> Gamera::RleDataDetail::RleVector<Data>::value_type, typename 
> Gamera::RleDataDetail::RleVector<Data>::list_type::iterator) [with Data = 
> short unsigned int; size_t = long unsigned int; 
> Gamera::RleDataDetail::RleVector<Data>::value_type = short unsigned int; 
> typename Gamera::RleDataDetail::RleVector<Data>::list_type::iterator = 
> std::_List_iterator<Gamera::RleDataDetail::Run<short unsigned int> >]':
> include/rle_data.hpp:620:19:   required from 'void 
> Gamera::RleDataDetail::RleVector<Data>::set(size_t, 
> Gamera::RleDataDetail::RleVector<Data>::value_type, typename 
> Gamera::RleDataDetail::RleVector<Data>::list_type::iterator) [with Data = 
> short unsigned int; size_t = long unsigned int; 
> Gamera::RleDataDetail::RleVector<Data>::value_type = short unsigned int; 
> typename Gamera::RleDataDetail::RleVector<Data>::list_type::iterator = 
> std::_List_iterator<Gamera::RleDataDetail::Run<short unsigned int> >]'
> include/rle_data.hpp:423:2:   required from 'void 
> Gamera::RleDataDetail::RleVectorIteratorBase<V, Iterator, 
> ListIterator>::set(const value_type&) [with V = 
> Gamera::RleDataDetail::RleVector<short unsigned int>; Iterator = 
> Gamera::RleDataDetail::RleVectorIterator<Gamera::RleDataDetail::RleVector<short
>  unsigned int> >; ListIterator = 
> std::_List_iterator<Gamera::RleDataDetail::Run<short unsigned int> >; 
> Gamera::RleDataDetail::RleVectorIteratorBase<V, Iterator, 
> ListIterator>::value_type = short unsigned int]'
> include/accessor.hpp:55:7:   required from 'void 
> Gamera::ImageAccessor<T>::set(const value_type&, Iterator) const [with 
> Iterator = 
> Gamera::RleDataDetail::RleVectorIterator<Gamera::RleDataDetail::RleVector<short
>  unsigned int> >; T = short unsigned int; 
> Gamera::ImageAccessor<T>::value_type = short unsigned int]'
> include/image_view.hpp:299:7:   required from 'void 
> Gamera::ImageView<T>::set(const Gamera::Point&, 
> Gamera::ImageView<T>::value_type) [with T = Gamera::RleImageData<short 
> unsigned int>; Gamera::ImageView<T>::value_type = short unsigned int]'
> src/imageobject.cpp:835:73:   required from here
> include/rle_data.hpp:681:48: error: call of overloaded 
> 'prev(std::__cxx11::list<Gamera::RleDataDetail::Run<short unsigned int>, 
> std::allocator<Gamera::RleDataDetail::Run<short unsigned int> > 
> >::iterator&)' is ambiguous
>       typename list_type::iterator prev_i = prev(i);
>                                             ~~~~^~~
> 
> include/rle_data.hpp:160:7: note: candidate: T Gamera::RleDataDetail::prev(T) 
> [with T = std::_List_iterator<Gamera::RleDataDetail::Run<short unsigned int> 
> >]
>      T prev(T i) {
>        ^~~~
> 
> In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
>                  from /usr/include/c++/6/vector:60,
>                  from include/gamera.hpp:50,
>                  from include/gameramodule.hpp:38,
>                  from src/imageobject.cpp:22:
> /usr/include/c++/6/bits/stl_iterator_base_funcs.h:217:5: note: candidate: 
> _BidirectionalIterator std::prev(_BidirectionalIterator, typename 
> std::iterator_traits<_Iter>::difference_type) [with _BidirectionalIterator = 
> std::_List_iterator<Gamera::RleDataDetail::Run<short unsigned int> >; 
> typename std::iterator_traits<_Iter>::difference_type = long int]
>      prev(_BidirectionalIterator __x, typename
>      ^~~~
> 
> In file included from include/gamera.hpp:62:0,
>                  from include/gameramodule.hpp:38,
>                  from src/imageobject.cpp:22:
> include/rle_data.hpp:719:48: error: call of overloaded 
> 'next(std::__cxx11::list<Gamera::RleDataDetail::Run<short unsigned int>, 
> std::allocator<Gamera::RleDataDetail::Run<short unsigned int> > 
> >::iterator&)' is ambiguous
>       typename list_type::iterator next_i = next(i);
>                                             ~~~~^~~
> 

Reply via email to