--- Begin Message ---
Package: ceph
Version: 0.80.11-1
Severity: important
User: debian-...@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
...
> libtool: compile: g++ -DHAVE_CONFIG_H -I. -D__CEPH__ -D_FILE_OFFSET_BITS=64
> -D_REENTRANT -D_THREAD_SAFE -D__STDC_FORMAT_MACROS -D_GNU_SOURCE
> -DCEPH_LIBDIR=\"/usr/lib/x86_64-linux-gnu\"
> -DCEPH_PKGLIBDIR=\"/usr/lib/x86_64-linux-gnu/ceph\" -DGTEST_HAS_TR1_TUPLE=0
> -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/nss -I/usr/include/nspr -Wall
> -Wtype-limits -Wignored-qualifiers -Winit-self -Wpointer-arith
> -Werror=format-security -fno-strict-aliasing -fsigned-char -rdynamic
> -ftemplate-depth-1024 -Wnon-virtual-dtor -Wno-invalid-offsetof
> -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc
> -fno-builtin-free -Wstrict-null-sentinel -g -O2 -fstack-protector-strong
> -Wformat -Werror=format-security -c osd/OSD.cc -fPIC -DPIC -o
> osd/.libs/libosd_la-OSD.o
> In file included from osd/OSD.h:20:0,
> from osd/ECBackend.h:18,
> from osd/ECTransaction.cc:21:
> osd/PG.h:790:25: warning: 'template<class> class std::auto_ptr' is deprecated
> [-Wdeprecated-declarations]
> void build_prior(std::auto_ptr<PriorSet> &prior_set);
> ^~~~~~~~
>
> In file included from /usr/include/c++/6/memory:81:0,
> from /usr/include/boost/move/algorithm.hpp:32,
> from /usr/include/boost/move/move.hpp:32,
> from /usr/include/boost/variant/detail/move.hpp:28,
> from /usr/include/boost/variant/detail/initializer.hpp:23,
> from /usr/include/boost/variant/variant.hpp:30,
> from /usr/include/boost/variant.hpp:17,
> from osd/ECTransaction.cc:15:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
>
> In file included from osd/OSD.h:20:0,
> from osd/ECBackend.h:18,
> from osd/ECTransaction.cc:21:
> osd/PG.h:1633:12: warning: 'template<class> class std::auto_ptr' is
> deprecated [-Wdeprecated-declarations]
> std::auto_ptr< PriorSet > prior_set;
> ^~~~~~~~
>
> In file included from /usr/include/c++/6/memory:81:0,
> from /usr/include/boost/move/algorithm.hpp:32,
> from /usr/include/boost/move/move.hpp:32,
> from /usr/include/boost/variant/detail/move.hpp:28,
> from /usr/include/boost/variant/detail/initializer.hpp:23,
> from /usr/include/boost/variant/variant.hpp:30,
> from /usr/include/boost/variant.hpp:17,
> from osd/ECTransaction.cc:15:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
>
> In file included from osd/OSD.h:20:0,
> from osd/ReplicatedBackend.h:18,
> from osd/PGBackend.cc:20:
> osd/PG.h:790:25: warning: 'template<class> class std::auto_ptr' is deprecated
> [-Wdeprecated-declarations]
> void build_prior(std::auto_ptr<PriorSet> &prior_set);
> ^~~~~~~~
>
> In file included from /usr/include/c++/6/memory:81:0,
> from /usr/include/boost/detail/allocator_utilities.hpp:17,
> from /usr/include/boost/statechart/detail/memory.hpp:14,
> from /usr/include/boost/statechart/event.hpp:13,
> from osd/PG.h:19,
> from osd/OSD.h:20,
> from osd/ReplicatedBackend.h:18,
> from osd/PGBackend.cc:20:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
>
> In file included from osd/PGBackend.h:28:0,
> from osd/PG.h:51,
> from osd/PG.cc:15:
> ./common/LogClient.h: In instantiation of 'std::ostream&
> LogClientTemp::operator<<(const T&) [with T =
> std::__cxx11::basic_ostringstream<char>; std::ostream =
> std::basic_ostream<char>]':
> osd/PG.cc:2845:26: required from here
> ./common/LogClient.h:42:15: error: no match for 'operator<<' (operand types
> are 'std::stringstream {aka std::__cxx11::basic_stringstream<char>}' and
> 'const std::__cxx11::basic_ostringstream<char>')
> return ss << rhs;
> ~~~^~~~~~
....
>
> 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/iterator:64,
> from /usr/include/boost/statechart/state_machine.hpp:56,
> from osd/PG.h:22,
> from osd/PG.cc:15:
> /usr/include/c++/6/system_error:209:5: note: candidate: template<class
> _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>&
> std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::error_code&)
> operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
> ^~~~~~~~
>
> /usr/include/c++/6/system_error:209:5: note: template argument
> deduction/substitution failed:
> In file included from osd/PGBackend.h:28:0,
> from osd/PG.h:51,
> from osd/PG.cc:15:
> ./common/LogClient.h:42:15: note: cannot convert 'rhs' (type 'const
> std::__cxx11::basic_ostringstream<char>') to type 'const std::error_code&'
> return ss << rhs;
> ~~~^~~~~~
>
> In file included from /usr/include/c++/6/iterator:64:0,
> from /usr/include/boost/statechart/state_machine.hpp:56,
> from osd/PG.h:22,
> from osd/PG.cc:15:
> /usr/include/c++/6/ostream:497:5: note: candidate: template<class _CharT,
> class _Traits> std::basic_ostream<_CharT, _Traits>&
> std::operator<<(std::basic_ostream<_CharT, _Traits>&, _CharT)
> operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
> ^~~~~~~~
>
> /usr/include/c++/6/ostream:497:5: note: template argument
> deduction/substitution failed:
> In file included from osd/PGBackend.h:28:0,
> from osd/PG.h:51,
> from osd/PG.cc:15:
> ./common/LogClient.h:42:15: note: deduced conflicting types for parameter
> '_CharT' ('char' and 'std::__cxx11::basic_ostringstream<char>')
> return ss << rhs;
> ~~~^~~~~~
>
> In file included from /usr/include/c++/6/iterator:64:0,
> from /usr/include/boost/statechart/state_machine.hpp:56,
> from osd/PG.h:22,
> from osd/PG.cc:15:
> /usr/include/c++/6/ostream:502:5: note: candidate: template<class _CharT,
> class _Traits> std::basic_ostream<_CharT, _Traits>&
> std::operator<<(std::basic_ostream<_CharT, _Traits>&, char)
> operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
> ^~~~~~~~
>
> /usr/include/c++/6/ostream:502:5: note: template argument
> deduction/substitution failed:
> In file included from osd/PGBackend.h:28:0,
> from osd/PG.h:51,
> from osd/PG.cc:15:
> ./common/LogClient.h:42:15: note: cannot convert 'rhs' (type 'const
> std::__cxx11::basic_ostringstream<char>') to type 'char'
> return ss << rhs;
> ~~~^~~~~~
>
> In file included from /usr/include/c++/6/iterator:64:0,
> from /usr/include/boost/statechart/state_machine.hpp:56,
> from osd/PG.h:22,
> from osd/PG.cc:15:
> /usr/include/c++/6/ostream:508:5: note: candidate: template<class _Traits>
> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char,
> _Traits>&, char)
> operator<<(basic_ostream<char, _Traits>& __out, char __c)
> ^~~~~~~~
>
> /usr/include/c++/6/ostream:508:5: note: template argument
> deduction/substitution failed:
> In file included from osd/PGBackend.h:28:0,
> from osd/PG.h:51,
> from osd/PG.cc:15:
> ./common/LogClient.h:42:15: note: cannot convert 'rhs' (type 'const
> std::__cxx11::basic_ostringstream<char>') to type 'char'
> return ss << rhs;
> ~~~^~~~~~
>
> In file included from /usr/include/c++/6/iterator:64:0,
> from /usr/include/boost/statechart/state_machine.hpp:56,
> from osd/PG.h:22,
> from osd/PG.cc:15:
> /usr/include/c++/6/ostream:514:5: note: candidate: template<class _Traits>
> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char,
> _Traits>&, signed char)
> operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
> ^~~~~~~~
>
> /usr/include/c++/6/ostream:514:5: note: template argument
> deduction/substitution failed:
> In file included from osd/PGBackend.h:28:0,
> from osd/PG.h:51,
> from osd/PG.cc:15:
> ./common/LogClient.h:42:15: note: cannot convert 'rhs' (type 'const
> std::__cxx11::basic_ostringstream<char>') to type 'signed char'
> return ss << rhs;
> ~~~^~~~~~
>
> In file included from /usr/include/c++/6/iterator:64:0,
> from /usr/include/boost/statechart/state_machine.hpp:56,
> from osd/PG.h:22,
> from osd/PG.cc:15:
> /usr/include/c++/6/ostream:519:5: note: candidate: template<class _Traits>
> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char,
> _Traits>&, unsigned char)
> operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
> ^~~~~~~~
>
> /usr/include/c++/6/ostream:519:5: note: template argument
> deduction/substitution failed:
> In file included from osd/PGBackend.h:28:0,
> from osd/PG.h:51,
> from osd/PG.cc:15:
> ./common/LogClient.h:42:15: note: cannot convert 'rhs' (type 'const
> std::__cxx11::basic_ostringstream<char>') to type 'unsigned char'
> return ss << rhs;
> ~~~^~~~~~
>
> In file included from /usr/include/c++/6/iterator:64:0,
> from /usr/include/boost/statechart/state_machine.hpp:56,
> from osd/PG.h:22,
> from osd/PG.cc:15:
> /usr/include/c++/6/ostream:539:5: note: candidate: template<class _CharT,
> class _Traits> std::basic_ostream<_CharT, _Traits>&
> std::operator<<(std::basic_ostream<_CharT, _Traits>&, const _CharT*)
> operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
> ^~~~~~~~
>
> /usr/include/c++/6/ostream:539:5: note: template argument
> deduction/substitution failed:
> In file included from osd/PGBackend.h:28:0,
> from osd/PG.h:51,
> from osd/PG.cc:15:
> ./common/LogClient.h:42:15: note: mismatched types 'const _CharT*' and
> 'std::__cxx11::basic_ostringstream<char>'
> return ss << rhs;
> ~~~^~~~~~
>
> In file included from /usr/include/c++/6/ostream:638:0,
> from /usr/include/c++/6/iterator:64,
> from /usr/include/boost/statechart/state_machine.hpp:56,
> from osd/PG.h:22,
> from osd/PG.cc:15:
> /usr/include/c++/6/bits/ostream.tcc:321:5: note: candidate: template<class
> _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>&
> std::operator<<(std::basic_ostream<_CharT, _Traits>&, const char*)
> operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
> ^~~~~~~~
>
> /usr/include/c++/6/bits/ostream.tcc:321:5: note: template argument
> deduction/substitution failed:
> In file included from osd/PGBackend.h:28:0,
> from osd/PG.h:51,
> from osd/PG.cc:15:
> ./common/LogClient.h:42:15: note: cannot convert 'rhs' (type 'const
> std::__cxx11::basic_ostringstream<char>') to type 'const char*'
> return ss << rhs;
> ~~~^~~~~~
>
> In file included from /usr/include/c++/6/iterator:64:0,
> from /usr/include/boost/statechart/state_machine.hpp:56,
> from osd/PG.h:22,
> from osd/PG.cc:15:
> /usr/include/c++/6/ostream:556:5: note: candidate: template<class _Traits>
> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char,
> _Traits>&, const char*)
> operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
> ^~~~~~~~
>
> /usr/include/c++/6/ostream:556:5: note: template argument
> deduction/substitution failed:
> In file included from osd/PGBackend.h:28:0,
> from osd/PG.h:51,
> from osd/PG.cc:15:
> ./common/LogClient.h:42:15: note: cannot convert 'rhs' (type 'const
> std::__cxx11::basic_ostringstream<char>') to type 'const char*'
> return ss << rhs;
> ~~~^~~~~~
>
> In file included from /usr/include/c++/6/iterator:64:0,
> from /usr/include/boost/statechart/state_machine.hpp:56,
> from osd/PG.h:22,
> from osd/PG.cc:15:
> /usr/include/c++/6/ostream:569:5: note: candidate: template<class _Traits>
> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char,
> _Traits>&, const signed char*)
> operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
> ^~~~~~~~
>
> /usr/include/c++/6/ostream:569:5: note: template argument
> deduction/substitution failed:
> In file included from osd/PGBackend.h:28:0,
> from osd/PG.h:51,
> from osd/PG.cc:15:
> ./common/LogClient.h:42:15: note: cannot convert 'rhs' (type 'const
> std::__cxx11::basic_ostringstream<char>') to type 'const signed char*'
> return ss << rhs;
> ~~~^~~~~~
>
> In file included from /usr/include/c++/6/iterator:64:0,
> from /usr/include/boost/statechart/state_machine.hpp:56,
> from osd/PG.h:22,
> from osd/PG.cc:15:
> /usr/include/c++/6/ostream:574:5: note: candidate: template<class _Traits>
> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char,
> _Traits>&, const unsigned char*)
> operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
> ^~~~~~~~
>
> /usr/include/c++/6/ostream:574:5: note: template argument
> deduction/substitution failed:
> In file included from osd/PGBackend.h:28:0,
> from osd/PG.h:51,
> from osd/PG.cc:15:
> ./common/LogClient.h:42:15: note: cannot convert 'rhs' (type 'const
> std::__cxx11::basic_ostringstream<char>') to type 'const unsigned char*'
> return ss << rhs;
> ~~~^~~~~~
>
> In file included from /usr/include/c++/6/iterator:64:0,
> from /usr/include/boost/statechart/state_machine.hpp:56,
> from osd/PG.h:22,
> from osd/PG.cc:15:
> /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::__cxx11::basic_ostringstream<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:
> In file included from osd/PGBackend.h:28:0,
> from osd/PG.h:51,
> from osd/PG.cc:15:
> ./common/LogClient.h:42:12: error: cannot bind 'std::basic_ostream<char>'
> lvalue to 'std::basic_ostream<char>&&'
> return ss << rhs;
> ^~
--
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise
--- End Message ---