Package: xplanet
Version: 1.3.0-3
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
...
> g++ -DHAVE_CONFIG_H -I. -I../..  -I../../src -I/usr/include/freetype2 
> -I/usr/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz 
> -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 
> -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 
> -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector-strong -Wformat 
> -Werror=format-security -c -o addArcs.o addArcs.cpp
> addArcs.cpp: In function 'void addArcs(PlanetProperties*, Planet*, View*, 
> ProjectionBase*, std::multimap<double, Annotation*>&)':
> addArcs.cpp:261:65: error: no match for 'operator!=' (operand types are 
> 'std::basic_istream<char>' and 'long int')
>              while (inFile.getline (line, MAX_LINE_LENGTH, '\n') != NULL)
>                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
> 
> addArcs.cpp:261:65: note: candidate: operator!=(int, long int) <built-in>
> addArcs.cpp:261:65: note:   no known conversion for argument 1 from 
> 'std::basic_istream<char>' to 'int'
> In file included from /usr/include/c++/6/iosfwd:40:0,
>                  from /usr/include/c++/6/ios:38,
>                  from /usr/include/c++/6/istream:38,
>                  from /usr/include/c++/6/fstream:38,
>                  from addArcs.cpp:4:
> /usr/include/c++/6/bits/postypes.h:221:5: note: candidate: template<class 
> _StateT> bool std::operator!=(const std::fpos<_StateT>&, const 
> std::fpos<_StateT>&)
>      operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
>      ^~~~~~~~
> 
> /usr/include/c++/6/bits/postypes.h:221:5: note:   template argument 
> deduction/substitution failed:
> In file included from /usr/include/stdlib.h:32:0,
>                  from /usr/include/c++/6/cstdlib:72,
>                  from /usr/include/c++/6/ext/string_conversions.h:41,
>                  from /usr/include/c++/6/bits/basic_string.h:5402,
>                  from /usr/include/c++/6/string:52,
>                  from /usr/include/c++/6/bits/locale_classes.h:40,
>                  from /usr/include/c++/6/bits/ios_base.h:41,
>                  from /usr/include/c++/6/ios:42,
>                  from /usr/include/c++/6/istream:38,
>                  from /usr/include/c++/6/fstream:38,
>                  from addArcs.cpp:4:
> addArcs.cpp:261:68: note:   'std::basic_istream<char>' is not derived from 
> 'const std::fpos<_StateT>'
>              while (inFile.getline (line, MAX_LINE_LENGTH, '\n') != NULL)
>                                                                     ^
> 

Reply via email to