[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#811659: FTBFS with GCC 6: cannot convert x to y



Package: wvstreams
Version: 4.6.1-7
Severity: important
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-cannot-convert

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.

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> x86_64-linux-gnu-g++ -c -o streams/wvstream.o streams/wvstream.cc -MMD -MF streams/.wvstream.d -MP -MQ streams/wvstream.o -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/tcl8.3 -DDEBUG=0 -I./include -D_BSD_SOURCE -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUNSTABLE -fPIC -Wall -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fno-tree-dce -fno-optimize-sibling-calls -fPIC -DPIC -fno-tree-dce -fno-optimize-sibling-calls -Wall -Woverloaded-virtual
> In file included from /usr/include/time.h:27:0,
>                  from streams/wvstream.cc:11:
> /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
>  # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
>    ^~~~~~~
> 
> streams/wvstream.cc: In member function 'void WvStream::_build_selectinfo(IWvStream::SelectInfo&, time_t, bool, bool, bool, bool)':
> streams/wvstream.cc:910:22: error: cannot convert 'IWvStreamCallback {aka std::tr1::function<void()>}' to 'bool' in assignment
>   si.wants.readable = readcb;
>                       ^~~~~~
> 
> streams/wvstream.cc:911:22: error: cannot convert 'IWvStreamCallback {aka std::tr1::function<void()>}' to 'bool' in assignment
>   si.wants.writable = writecb;
>                       ^~~~~~~
> 
> streams/wvstream.cc:912:25: error: cannot convert 'IWvStreamCallback {aka std::tr1::function<void()>}' to 'bool' in assignment
>   si.wants.isexception = exceptcb;
>                          ^~~~~~~~
> 
> streams/wvstream.cc: In member function 'IWvStream::SelectRequest WvStream::get_select_request()':
> streams/wvstream.cc:1022:62: error: no matching function for call to 'IWvStream::SelectRequest::SelectRequest(IWvStreamCallback&, IWvStreamCallback&, IWvStreamCallback&)'
>      return IWvStream::SelectRequest(readcb, writecb, exceptcb);
>                                                               ^
> 

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


Reply to: