[Pkg-kde-extras] Bug#964687: quassel: FTBFS: qmetatype.h:818:16: error: ambiguous overload for ‘operator<<’ (operand types are ‘QDataStream’ and ‘const =?UTF-8?Q?DccConfig::IpDetectionMode=E2=80=99?=)

Lucas Nussbaum lucas at debian.org
Thu Jul 9 11:48:40 BST 2020


Source: quassel
Version: 1:0.13.1-3
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200709 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/common && /usr/bin/c++  -DHAVE_EXECINFO -DHAVE_KDE -DHAVE_KF5 -DHAVE_QT5 -DHAVE_SSL -DHAVE_SYSLOG -DHAVE_UMASK -DHAVE_ZLIB -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DWITH_OXYGEN_ICONS -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/common -I/<<PKGBUILDDIR>>/src/common -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/common/mod_common_autogen/include -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -Wall -Wextra -Wnon-virtual-dtor -fno-strict-aliasing -Wundef -Wcast-align -Wpointer-arith -Wformat-security -fno-check-new -fno-common -Woverloaded-virtual  -fno-operator-names -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -fexceptions -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -fPIC -std=gnu++11 -o CMakeFiles/mod_common.dir/event.cpp.o -c /<<PKGBUILDDIR>>/src/common/event.cpp
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:54,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtNetwork/qabstractsocket.h:44,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtNetwork/qhostaddress.h:48,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtNetwork/QHostAddress:1,
>                  from /<<PKGBUILDDIR>>/src/common/dccconfig.h:23,
>                  from /<<PKGBUILDDIR>>/src/common/dccconfig.cpp:21:
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h: In instantiation of ‘static void QtMetaTypePrivate::QMetaTypeFunctionHelper<T, Accepted>::Save(QDataStream&, const void*) [with T = DccConfig::IpDetectionMode; bool Accepted = true]’:
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h:1874:39:   required from ‘void qRegisterMetaTypeStreamOperators(const char*, T*) [with T = DccConfig::IpDetectionMode]’
> /<<PKGBUILDDIR>>/src/common/dccconfig.cpp:33:87:   required from here
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h:818:16: error: ambiguous overload for ‘operator<<’ (operand types are ‘QDataStream’ and ‘const DccConfig::IpDetectionMode’)
>   818 |         stream << *static_cast<const T*>(t);
>       |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QDataStream:1,
>                  from /<<PKGBUILDDIR>>/src/common/syncableobject.h:24,
>                  from /<<PKGBUILDDIR>>/src/common/dccconfig.h:25,
>                  from /<<PKGBUILDDIR>>/src/common/dccconfig.cpp:21:
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qdatastream.h:389:1: note: candidate: ‘typename std::enable_if<std::is_enum<_Tp>::value, QDataStream&>::type& operator<<(QDataStream&, const T&) [with T = DccConfig::IpDetectionMode; typename std::enable_if<std::is_enum<_Tp>::value, QDataStream&>::type = QDataStream&]’
>   389 | operator<<(QDataStream &s, const T &t)
>       | ^~~~~~~~
> In file included from /<<PKGBUILDDIR>>/src/common/dccconfig.cpp:25:
> /<<PKGBUILDDIR>>/src/common/types.h:152:14: note: candidate: ‘QDataStream& operator<<(QDataStream&, T) [with T = DccConfig::IpDetectionMode; <template-parameter-1-2> = void]’
>   152 | QDataStream &operator<<(QDataStream &out, T value) {
>       |              ^~~~~~~~
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:54,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtNetwork/qabstractsocket.h:44,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtNetwork/qhostaddress.h:48,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtNetwork/QHostAddress:1,
>                  from /<<PKGBUILDDIR>>/src/common/dccconfig.h:23,
>                  from /<<PKGBUILDDIR>>/src/common/dccconfig.cpp:21:
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h: In instantiation of ‘static void QtMetaTypePrivate::QMetaTypeFunctionHelper<T, Accepted>::Load(QDataStream&, void*) [with T = DccConfig::IpDetectionMode; bool Accepted = true]’:
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h:1874:39:   required from ‘void qRegisterMetaTypeStreamOperators(const char*, T*) [with T = DccConfig::IpDetectionMode]’
> /<<PKGBUILDDIR>>/src/common/dccconfig.cpp:33:87:   required from here
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h:823:16: error: ambiguous overload for ‘operator>>’ (operand types are ‘QDataStream’ and ‘DccConfig::IpDetectionMode’)
>   823 |         stream >> *static_cast<T*>(t);
>       |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QDataStream:1,
>                  from /<<PKGBUILDDIR>>/src/common/syncableobject.h:24,
>                  from /<<PKGBUILDDIR>>/src/common/dccconfig.h:25,
>                  from /<<PKGBUILDDIR>>/src/common/dccconfig.cpp:21:
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qdatastream.h:394:1: note: candidate: ‘typename std::enable_if<std::is_enum<_Tp>::value, QDataStream&>::type& operator>>(QDataStream&, T&) [with T = DccConfig::IpDetectionMode; typename std::enable_if<std::is_enum<_Tp>::value, QDataStream&>::type = QDataStream&]’
>   394 | operator>>(QDataStream &s, T &t)
>       | ^~~~~~~~
> In file included from /<<PKGBUILDDIR>>/src/common/dccconfig.cpp:25:
> /<<PKGBUILDDIR>>/src/common/types.h:166:14: note: candidate: ‘QDataStream& operator>>(QDataStream&, T&) [with T = DccConfig::IpDetectionMode; <template-parameter-1-2> = void]’
>   166 | QDataStream &operator>>(QDataStream &in, T &value) {
>       |              ^~~~~~~~
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:54,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtNetwork/qabstractsocket.h:44,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtNetwork/qhostaddress.h:48,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtNetwork/QHostAddress:1,
>                  from /<<PKGBUILDDIR>>/src/common/dccconfig.h:23,
>                  from /<<PKGBUILDDIR>>/src/common/dccconfig.cpp:21:
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h: In instantiation of ‘static void QtMetaTypePrivate::QMetaTypeFunctionHelper<T, Accepted>::Save(QDataStream&, const void*) [with T = DccConfig::PortSelectionMode; bool Accepted = true]’:
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h:1874:39:   required from ‘void qRegisterMetaTypeStreamOperators(const char*, T*) [with T = DccConfig::PortSelectionMode]’
> /<<PKGBUILDDIR>>/src/common/dccconfig.cpp:34:91:   required from here
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h:818:16: error: ambiguous overload for ‘operator<<’ (operand types are ‘QDataStream’ and ‘const DccConfig::PortSelectionMode’)
>   818 |         stream << *static_cast<const T*>(t);
>       |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QDataStream:1,
>                  from /<<PKGBUILDDIR>>/src/common/syncableobject.h:24,
>                  from /<<PKGBUILDDIR>>/src/common/dccconfig.h:25,
>                  from /<<PKGBUILDDIR>>/src/common/dccconfig.cpp:21:
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qdatastream.h:389:1: note: candidate: ‘typename std::enable_if<std::is_enum<_Tp>::value, QDataStream&>::type& operator<<(QDataStream&, const T&) [with T = DccConfig::PortSelectionMode; typename std::enable_if<std::is_enum<_Tp>::value, QDataStream&>::type = QDataStream&]’
>   389 | operator<<(QDataStream &s, const T &t)
>       | ^~~~~~~~
> In file included from /<<PKGBUILDDIR>>/src/common/dccconfig.cpp:25:
> /<<PKGBUILDDIR>>/src/common/types.h:152:14: note: candidate: ‘QDataStream& operator<<(QDataStream&, T) [with T = DccConfig::PortSelectionMode; <template-parameter-1-2> = void]’
>   152 | QDataStream &operator<<(QDataStream &out, T value) {
>       |              ^~~~~~~~
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:54,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtNetwork/qabstractsocket.h:44,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtNetwork/qhostaddress.h:48,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtNetwork/QHostAddress:1,
>                  from /<<PKGBUILDDIR>>/src/common/dccconfig.h:23,
>                  from /<<PKGBUILDDIR>>/src/common/dccconfig.cpp:21:
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h: In instantiation of ‘static void QtMetaTypePrivate::QMetaTypeFunctionHelper<T, Accepted>::Load(QDataStream&, void*) [with T = DccConfig::PortSelectionMode; bool Accepted = true]’:
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h:1874:39:   required from ‘void qRegisterMetaTypeStreamOperators(const char*, T*) [with T = DccConfig::PortSelectionMode]’
> /<<PKGBUILDDIR>>/src/common/dccconfig.cpp:34:91:   required from here
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h:823:16: error: ambiguous overload for ‘operator>>’ (operand types are ‘QDataStream’ and ‘DccConfig::PortSelectionMode’)
>   823 |         stream >> *static_cast<T*>(t);
>       |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QDataStream:1,
>                  from /<<PKGBUILDDIR>>/src/common/syncableobject.h:24,
>                  from /<<PKGBUILDDIR>>/src/common/dccconfig.h:25,
>                  from /<<PKGBUILDDIR>>/src/common/dccconfig.cpp:21:
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qdatastream.h:394:1: note: candidate: ‘typename std::enable_if<std::is_enum<_Tp>::value, QDataStream&>::type& operator>>(QDataStream&, T&) [with T = DccConfig::PortSelectionMode; typename std::enable_if<std::is_enum<_Tp>::value, QDataStream&>::type = QDataStream&]’
>   394 | operator>>(QDataStream &s, T &t)
>       | ^~~~~~~~
> In file included from /<<PKGBUILDDIR>>/src/common/dccconfig.cpp:25:
> /<<PKGBUILDDIR>>/src/common/types.h:166:14: note: candidate: ‘QDataStream& operator>>(QDataStream&, T&) [with T = DccConfig::PortSelectionMode; <template-parameter-1-2> = void]’
>   166 | QDataStream &operator>>(QDataStream &in, T &value) {
>       |              ^~~~~~~~
> make[3]: *** [src/common/CMakeFiles/mod_common.dir/build.make:222: src/common/CMakeFiles/mod_common.dir/dccconfig.cpp.o] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2020/07/09/quassel_0.13.1-3_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the pkg-kde-extras mailing list