Package: kwstyle
Version: 1.0.0+cvs20120330-3
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
...
> /usr/bin/c++    
> -I/<<BUILDDIR>>/kwstyle-1.0.0+cvs20120330/obj-x86_64-linux-gnu 
> -I/<<BUILDDIR>>/kwstyle-1.0.0+cvs20120330/obj-x86_64-linux-gnu/Utilities  -g 
> -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
> -D_FORTIFY_SOURCE=2  -O2 -g -DNDEBUG   -o 
> CMakeFiles/KWStyleLib.dir/kwsCheckStatementPerLine.o -c 
> /<<BUILDDIR>>/kwstyle-1.0.0+cvs20120330/kwsCheckStatementPerLine.cxx
> /<<BUILDDIR>>/kwstyle-1.0.0+cvs20120330/kwsXMLReader.cxx: In member function 
> 'bool kws::XMLReader::Open(const char*)':
> /<<BUILDDIR>>/kwstyle-1.0.0+cvs20120330/kwsXMLReader.cxx:33:14: error: no 
> match for 'operator==' (operand types are 'std::ifstream {aka 
> std::basic_ifstream<char>}' and 'long int')
>    if (m_File == NULL)
>        ~~~~~~~^~~~
> 
> /<<BUILDDIR>>/kwstyle-1.0.0+cvs20120330/kwsXMLReader.cxx:33:14: note: 
> candidate: operator==(int, long int) <built-in>
> /<<BUILDDIR>>/kwstyle-1.0.0+cvs20120330/kwsXMLReader.cxx:33:14: note:   no 
> known conversion for argument 1 from 'std::ifstream {aka 
> std::basic_ifstream<char>}' to 'int'
> In file included from /usr/include/c++/6/bits/locale_facets.h:48:0,
>                  from /usr/include/c++/6/bits/basic_ios.h:37,
>                  from /usr/include/c++/6/ios:44,
>                  from /usr/include/c++/6/ostream:38,
>                  from /usr/include/c++/6/iostream:39,
>                  from 
> /<<BUILDDIR>>/kwstyle-1.0.0+cvs20120330/kwsXMLReader.h:17,
>                  from 
> /<<BUILDDIR>>/kwstyle-1.0.0+cvs20120330/kwsXMLReader.cxx:14:
> /usr/include/c++/6/bits/streambuf_iterator.h:204:5: note: candidate: 
> template<class _CharT, class _Traits> bool std::operator==(const 
> std::istreambuf_iterator<_CharT, _Traits>&, const 
> std::istreambuf_iterator<_CharT, _Traits>&)
>      operator==(const istreambuf_iterator<_CharT, _Traits>& __a,
>      ^~~~~~~~
> 
> /usr/include/c++/6/bits/streambuf_iterator.h:204:5: note:   template argument 
> deduction/substitution failed:
> In file included from /usr/include/string.h:32:0,
>                  from 
> /<<BUILDDIR>>/kwstyle-1.0.0+cvs20120330/kwsXMLReader.cxx:15:
> /<<BUILDDIR>>/kwstyle-1.0.0+cvs20120330/kwsXMLReader.cxx:33:17: note:   
> 'std::ifstream {aka std::basic_ifstream<char>}' is not derived from 'const 
> std::istreambuf_iterator<_CharT, _Traits>'
>    if (m_File == NULL)
>                  ^
> 
> In file included from /usr/include/c++/6/bits/ios_base.h:46:0,
>                  from /usr/include/c++/6/ios:42,
>                  from /usr/include/c++/6/ostream:38,
>                  from /usr/include/c++/6/iostream:39,
>                  from 
> /<<BUILDDIR>>/kwstyle-1.0.0+cvs20120330/kwsXMLReader.h:17,
>                  from 
> /<<BUILDDIR>>/kwstyle-1.0.0+cvs20120330/kwsXMLReader.cxx:14:
> /usr/include/c++/6/system_error:303:3: note: candidate: bool 
> std::operator==(const std::error_condition&, const std::error_condition&)
>    operator==(const error_condition& __lhs,
>    ^~~~~~~~
> 
> /usr/include/c++/6/system_error:303:3: note:   no known conversion for 
> argument 1 from 'std::ifstream {aka std::basic_ifstream<char>}' to 'const 
> std::error_condition&'
> /usr/include/c++/6/system_error:296:3: note: candidate: bool 
> std::operator==(const std::error_condition&, const std::error_code&)
>    operator==(const error_condition& __lhs, const error_code& __rhs) noexcept
>    ^~~~~~~~
> 
> /usr/include/c++/6/system_error:296:3: note:   no known conversion for 
> argument 1 from 'std::ifstream {aka std::basic_ifstream<char>}' to 'const 
> std::error_condition&'
> /usr/include/c++/6/system_error:289:3: note: candidate: bool 
> std::operator==(const std::error_code&, const std::error_condition&)
>    operator==(const error_code& __lhs, const error_condition& __rhs) noexcept
>    ^~~~~~~~
> 
> /usr/include/c++/6/system_error:289:3: note:   no known conversion for 
> argument 1 from 'std::ifstream {aka std::basic_ifstream<char>}' to 'const 
> std::error_code&'
> /usr/include/c++/6/system_error:284:3: note: candidate: bool 
> std::operator==(const std::error_code&, const std::error_code&)
>    operator==(const error_code& __lhs, const error_code& __rhs) noexcept
>    ^~~~~~~~
> 
> /usr/include/c++/6/system_error:284:3: note:   no known conversion for 
> argument 1 from 'std::ifstream {aka std::basic_ifstream<char>}' to 'const 
> std::error_code&'

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

Reply via email to