Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
None
-
6.0.0, 6.0
-
None
-
debian 10
Description
Error build from sources: dev branch from github:
env: Debian 10
gcc (Debian 8.3.0-6) 8.3.0
./configure -static -skip qt3d -no-warnings-are-errors -release -recheck-all -prefix /home/rgaraev/Qt5132/Static600 -opensource -confirm-license -nomake examples -nomake tests -c++std c++17 -I /usr/include/xcb/ -L /usr/lib/x86_64-linux-gnu/ \
-xcb-xlib -xcb \
-feature-thread \
-feature-xkbcommon \
-qt-libpng \
-qt-libjpeg \
-qt-zlib \
-I /usr/include/xcb/ -L /usr/lib/x86_64-linux-gnu/
Error build:
g++ -c -include .pch/Qt6SerialBus -pipe -O2 -fPIC -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -Wextra -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -ffunction-sections -fdata-sections -D_REENTRANT -DQT_NO_FOREACH -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_SERIALBUS_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_SERIALPORT_LIB -DQT_CORE_LIB -I. -I../../include -I../../include/QtSerialBus -I../../include/QtSerialBus/6.0.0 -I../../include/QtSerialBus/6.0.0/QtSerialBus -I/src/60/qt5/qtbase/include/QtCore/6.0.0 -I/src/60/qt5/qtbase/include/QtCore/6.0.0/QtCore -I/src/60/qt5/qtbase/include -I/src/60/qt5/qtbase/include/QtCore -I/src/60/qt5/qtbase/include/QtNetwork -I/src/60/qt5/qtserialport/include -I/src/60/qt5/qtserialport/include/QtSerialPort -I.moc -I/usr/include/xcb -I/usr/include/xcb -I/src/60/qt5/qtbase/mkspecs/linux-g++ -o .obj/qmodbustcpclient.o qmodbustcpclient.cpp In file included from qmodbustcpclient.cpp:38: qmodbustcpclient_p.h: In member function ‘void QModbusTcpClientPrivate::setupTcpSocket()’: qmodbustcpclient_p.h:90:93: error: no matching function for call to ‘QOverload<QAbstractSocket::SocketError>::of(QAbstractSocket::SocketError (QAbstractSocket::*)() const)’ QOverload<QAbstractSocket::SocketError>::of(&QAbstractSocket::error), q, ^ In file included from /src/60/qt5/qtbase/include/QtCore/qglobal.h:1, from /src/60/qt5/qtbase/include/QtCore/QtCore:4, from ../../include/QtSerialBus/QtSerialBusDepends:3: /src/60/qt5/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:1202:34: note: candidate: ‘template<class R> static constexpr decltype (ptr) QOverload<Args>::of(R (*)(Args ...)) [with R = R; Args = {QAbstractSocket::SocketError}]’ static Q_DECL_CONSTEXPR auto of(R (*ptr)(Args...)) noexcept -> decltype(ptr) ^~ /src/60/qt5/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:1202:34: note: template argument deduction/substitution failed: In file included from qmodbustcpclient.cpp:38: qmodbustcpclient_p.h:90:93: note: mismatched types ‘R (*)(QAbstractSocket::SocketError)’ and ‘QAbstractSocket::SocketError (QAbstractSocket::*)() const’ QOverload<QAbstractSocket::SocketError>::of(&QAbstractSocket::error), q, ^ In file included from /src/60/qt5/qtbase/include/QtCore/qglobal.h:1, from /src/60/qt5/qtbase/include/QtCore/QtCore:4, from ../../include/QtSerialBus/QtSerialBusDepends:3: /src/60/qt5/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:1185:34: note: candidate: ‘template<class R, class T> static constexpr decltype (ptr) QConstOverload<Args>::of(R (T::*)(Args ...) const) [with R = R; T = T; Args = {QAbstractSocket::SocketError}]’ static Q_DECL_CONSTEXPR auto of(R (T::*ptr)(Args...) const) noexcept -> decltype(ptr) ^~ /src/60/qt5/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:1185:34: note: template argument deduction/substitution failed: In file included from qmodbustcpclient.cpp:38: qmodbustcpclient_p.h:90:93: note: candidate expects 2 arguments, 1 provided QOverload<QAbstractSocket::SocketError>::of(&QAbstractSocket::error), q, ^ In file included from /src/60/qt5/qtbase/include/QtCore/qglobal.h:1, from /src/60/qt5/qtbase/include/QtCore/QtCore:4, from ../../include/QtSerialBus/QtSerialBusDepends:3: /src/60/qt5/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:1173:34: note: candidate: ‘template<class R, class T> static constexpr decltype (ptr) QNonConstOverload<Args>::of(R (T::*)(Args ...)) [with R = R; T = T; Args = {QAbstractSocket::SocketError}]’ static Q_DECL_CONSTEXPR auto of(R (T::*ptr)(Args...)) noexcept -> decltype(ptr) ^~ /src/60/qt5/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:1173:34: note: template argument deduction/substitution failed: In file included from qmodbustcpclient.cpp:38: qmodbustcpclient_p.h:90:93: note: types ‘R (T::)(QAbstractSocket::SocketError)’ and ‘QAbstractSocket::SocketError (QAbstractSocket::)() const’ have incompatible cv-qualifiers QOverload<QAbstractSocket::SocketError>::of(&QAbstractSocket::error), q,