Package: xosview
Version: 1.17-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++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security 
> -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -O3 -I. -MMD -Ilinux/  -c -o 
> linux/acpitemp.o linux/acpitemp.cc
> linux/acpitemp.cc: In member function 'void ACPITemp::getacpitemp()':
> linux/acpitemp.cc:121:41: error: no match for 'operator<<' (operand types are 
> 'std::basic_ostream<char>' and 'std::ifstream {aka 
> std::basic_ifstream<char>}')
>      std::cerr << "Can not open file : " << temp_file << std::endl;
>      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
> 
> In file included from /usr/include/c++/6/iostream:39:0,
>                  from ./Xrm.h:12,
>                  from ./xwin.h:4,
>                  from ./xosview.h:10,
>                  from ./meter.h:10,
>                  from ./fieldmeter.h:10,
>                  from linux/acpitemp.h:15,
>                  from linux/acpitemp.cc:12:
> /usr/include/c++/6/ostream:628:5: note: candidate: std::basic_ostream<_CharT, 
> _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&&, const _Tp&) 
> [with _CharT = char; _Traits = std::char_traits<char>; _Tp = 
> std::basic_ifstream<char>] <near match>
>      operator<<(basic_ostream<_CharT, _Traits>&& __os, const _Tp& __x)
>      ^~~~~~~~
> 
> /usr/include/c++/6/ostream:628:5: note:   conversion of argument 1 would be 
> ill-formed:
> linux/acpitemp.cc:121:15: error: cannot bind 'std::basic_ostream<char>' 
> lvalue to 'std::basic_ostream<char>&&'
>      std::cerr << "Can not open file : " << temp_file << std::endl;
>      ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to