Details
-
Bug
-
Resolution: Fixed
-
P0: Blocker
-
6.6.0 FF
-
None
-
445213484 (dev), d0cdb48c9 (6.5)
Description
agent:2023/01/09 19:50:34 build.go:403: /home/qt/work/qt/tqtc-qtvncserver/src/vncserver/qvncclientcursor.cpp: In member function ‘virtual void QVncClientCursor::changeCursor(QCursor*, QWindow*)’: agent:2023/01/09 19:50:34 build.go:403: /home/qt/work/qt/tqtc-qtvncserver/src/vncserver/qvncclientcursor.cpp:90:24: error: ‘qAsConst’ was not declared in this scope agent:2023/01/09 19:50:34 build.go:403: 90 | for (auto client : qAsConst(clients)) agent:2023/01/09 19:50:34 build.go:403: | ^~~~~~~~ agent:2023/01/09 19:50:34 build.go:403: Sccache command failed, re-try calling build tool directly agent:2023/01/09 19:50:34 build.go:403: /home/qt/work/qt/tqtc-qtvncserver/src/vncserver/qvncclientcursor.cpp: In member function ‘virtual void QVncClientCursor::changeCursor(QCursor*, QWindow*)’: agent:2023/01/09 19:50:34 build.go:403: /home/qt/work/qt/tqtc-qtvncserver/src/vncserver/qvncclientcursor.cpp:90:24: error: ‘qAsConst’ was not declared in this scope agent:2023/01/09 19:50:34 build.go:403: 90 | for (auto client : qAsConst(clients)) agent:2023/01/09 19:50:34 build.go:403: | ^~~~~~~~ agent:2023/01/09 19:50:35 build.go:403: [19/37] sccache /usr/bin/g++ -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_VNCSERVER_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x050000 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_GUI_LIB -DQT_MOC_COMPAT -DQT_NETWORK_LIB -DQT_NO_AS_CONST -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QEXCHANGE -DQT_NO_USING_NAMESPACE -DQT_USE_QSTRINGBUILDER -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DVncServer_EXPORTS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/qt/work/qt/tqtc-qtvncserver_build/src/vncserver/VncServer_autogen/include -I/home/qt/work/qt/tqtc-qtvncserver_build/include -I/home/qt/work/qt/tqtc-qtvncserver_build/include/QtVncServer -I/home/qt/work/qt/tqtc-qtvncserver/src/vncserver -I/home/qt/work/qt/tqtc-qtvncserver_build/src/vncserver -I/home/qt/work/qt/tqtc-qtvncserver_build/include/QtVncServer/6.6.0 -I/home/qt/work/qt/tqtc-qtvncserver_build/include/QtVncServer/6.6.0/QtVncServer -isystem /home/qt/work/install/include/QtCore -isystem /home/qt/work/install/include -isystem /home/qt/work/install/mkspecs/linux-g++ -isystem /home/qt/work/install/include/QtGui -isystem /home/qt/work/install/include/QtNetwork -isystem /home/qt/work/install/include/QtCore/6.6.0 -isystem /home/qt/work/install/include/QtCore/6.6.0/QtCore -isystem /home/qt/work/install/include/QtGui/6.6.0 -isystem /home/qt/work/install/include/QtGui/6.6.0/QtGui -isystem /home/qt/work/install/include/QtNetwork/6.6.0 -isystem /home/qt/work/install/include/QtNetwork/6.6.0/QtNetwork -g -DNDEBUG -O2 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -fPIC -pthread -Wsuggest-override -std=c++17 -MD -MT src/vncserver/CMakeFiles/VncServer.dir/qvncserver.cpp.o -MF src/vncserver/CMakeFiles/VncServer.dir/qvncserver.cpp.o.d -o src/vncserver/CMakeFiles/VncServer.dir/qvncserver.cpp.o -c /home/qt/work/qt/tqtc-qtvncserver/src/vncserver/qvncserver.cpp agent:2023/01/09 19:50:35 build.go:403: FAILED: src/vncserver/CMakeFiles/VncServer.dir/qvncserver.cpp.o agent:2023/01/09 19:50:35 build.go:403: sccache /usr/bin/g++ -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_VNCSERVER_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x050000 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_GUI_LIB -DQT_MOC_COMPAT -DQT_NETWORK_LIB -DQT_NO_AS_CONST -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QEXCHANGE -DQT_NO_USING_NAMESPACE -DQT_USE_QSTRINGBUILDER -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DVncServer_EXPORTS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/qt/work/qt/tqtc-qtvncserver_build/src/vncserver/VncServer_autogen/include -I/home/qt/work/qt/tqtc-qtvncserver_build/include -I/home/qt/work/qt/tqtc-qtvncserver_build/include/QtVncServer -I/home/qt/work/qt/tqtc-qtvncserver/src/vncserver -I/home/qt/work/qt/tqtc-qtvncserver_build/src/vncserver -I/home/qt/work/qt/tqtc-qtvncserver_build/include/QtVncServer/6.6.0 -I/home/qt/work/qt/tqtc-qtvncserver_build/include/QtVncServer/6.6.0/QtVncServer -isystem /home/qt/work/install/include/QtCore -isystem /home/qt/work/install/include -isystem /home/qt/work/install/mkspecs/linux-g++ -isystem /home/qt/work/install/include/QtGui -isystem /home/qt/work/install/include/QtNetwork -isystem /home/qt/work/install/include/QtCore/6.6.0 -isystem /home/qt/work/install/include/QtCore/6.6.0/QtCore -isystem /home/qt/work/install/include/QtGui/6.6.0 -isystem /home/qt/work/install/include/QtGui/6.6.0/QtGui -isystem /home/qt/work/install/include/QtNetwork/6.6.0 -isystem /home/qt/work/install/include/QtNetwork/6.6.0/QtNetwork -g -DNDEBUG -O2 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -fPIC -pthread -Wsuggest-override -std=c++17 -MD -MT src/vncserver/CMakeFiles/VncServer.dir/qvncserver.cpp.o -MF src/vncserver/CMakeFiles/VncServer.dir/qvncserver.cpp.o.d -o src/vncserver/CMakeFiles/VncServer.dir/qvncserver.cpp.o -c /home/qt/work/qt/tqtc-qtvncserver/src/vncserver/qvncserver.cpp agent:2023/01/09 19:50:35 build.go:403: /home/qt/work/qt/tqtc-qtvncserver/src/vncserver/qvncserver.cpp: In member function ‘void QVncServer::setDirty()’: agent:2023/01/09 19:50:35 build.go:403: /home/qt/work/qt/tqtc-qtvncserver/src/vncserver/qvncserver.cpp:150:24: error: ‘qAsConst’ was not declared in this scope agent:2023/01/09 19:50:35 build.go:403: 150 | for (auto client : qAsConst(d->clients)) agent:2023/01/09 19:50:35 build.go:403: | ^~~~~~~~ agent:2023/01/09 19:50:35 build.go:403: /home/qt/work/qt/tqtc-qtvncserver/src/vncserver/qvncserver.cpp: In member function ‘void QVncServer::setPassword(const QByteArray&)’: agent:2023/01/09 19:50:35 build.go:403: /home/qt/work/qt/tqtc-qtvncserver/src/vncserver/qvncserver.cpp:311:24: error: ‘qAsConst’ was not declared in this scope agent:2023/01/09 19:50:35 build.go:403: 311 | for (auto client : qAsConst(d->clients)) agent:2023/01/09 19:50:35 build.go:403: | ^~~~~~~~ agent:2023/01/09 19:50:35 build.go:403: /home/qt/work/qt/tqtc-qtvncserver/src/vncserver/qvncserver.cpp: In lambda function: agent:2023/01/09 19:50:35 build.go:403: /home/qt/work/qt/tqtc-qtvncserver/src/vncserver/qvncserver.cpp:312:66: error: ‘client’ is not captured agent:2023/01/09 19:50:35 build.go:403: 312 | QMetaObject::invokeMethod(client, [newPassword, client]{ client->setPassword(newPassword);}); agent:2023/01/09 19:50:35 build.go:403: | ^~~~~~ agent:2023/01/09 19:50:35 build.go:403: /home/qt/work/qt/tqtc-qtvncserver/src/vncserver/qvncserver.cpp:312:63: note: the lambda has no capture-default agent:2023/01/09 19:50:35 build.go:403: 312 | QMetaObject::invokeMethod(client, [newPassword, client]{ client->setPassword(newPassword);}); agent:2023/01/09 19:50:35 build.go:403: | ^ agent:2023/01/09 19:50:35 build.go:403: /home/qt/work/qt/tqtc-qtvncserver/src/vncserver/qvncserver.cpp:311:15: note: ‘<typeprefixerror>client’ declared here agent:2023/01/09 19:50:35 build.go:403: 311 | for (auto client : qAsConst(d->clients)) agent:2023/01/09 19:50:35 build.go:403: | ^~~~~~ agent:2023/01/09 19:50:35 build.go:403: Sccache command failed, re-try calling build tool directly agent:2023/01/09 19:50:35 build.go:403: /home/qt/work/qt/tqtc-qtvncserver/src/vncserver/qvncserver.cpp: In member function ‘void QVncServer::setDirty()’: agent:2023/01/09 19:50:35 build.go:403: /home/qt/work/qt/tqtc-qtvncserver/src/vncserver/qvncserver.cpp:150:24: error: ‘qAsConst’ was not declared in this scope agent:2023/01/09 19:50:35 build.go:403: 150 | for (auto client : qAsConst(d->clients)) agent:2023/01/09 19:50:35 build.go:403: | ^~~~~~~~ agent:2023/01/09 19:50:35 build.go:403: /home/qt/work/qt/tqtc-qtvncserver/src/vncserver/qvncserver.cpp: In member function ‘void QVncServer::setPassword(const QByteArray&)’: agent:2023/01/09 19:50:35 build.go:403: /home/qt/work/qt/tqtc-qtvncserver/src/vncserver/qvncserver.cpp:311:24: error: ‘qAsConst’ was not declared in this scope agent:2023/01/09 19:50:35 build.go:403: 311 | for (auto client : qAsConst(d->clients)) agent:2023/01/09 19:50:35 build.go:403: | ^~~~~~~~ agent:2023/01/09 19:50:35 build.go:403: /home/qt/work/qt/tqtc-qtvncserver/src/vncserver/qvncserver.cpp: In lambda function: agent:2023/01/09 19:50:35 build.go:403: /home/qt/work/qt/tqtc-qtvncserver/src/vncserver/qvncserver.cpp:312:66: error: ‘client’ is not captured agent:2023/01/09 19:50:35 build.go:403: 312 | QMetaObject::invokeMethod(client, [newPassword, client]{ client->setPassword(newPassword);}); agent:2023/01/09 19:50:35 build.go:403: | ^~~~~~ agent:2023/01/09 19:50:35 build.go:403: /home/qt/work/qt/tqtc-qtvncserver/src/vncserver/qvncserver.cpp:312:63: note: the lambda has no capture-default agent:2023/01/09 19:50:35 build.go:403: 312 | QMetaObject::invokeMethod(client, [newPassword, client]{ client->setPassword(newPassword);}); agent:2023/01/09 19:50:35 build.go:403: | ^ agent:2023/01/09 19:50:35 build.go:403: /home/qt/work/qt/tqtc-qtvncserver/src/vncserver/qvncserver.cpp:311:15: note: ‘<typeprefixerror>client’ declared here agent:2023/01/09 19:50:35 build.go:403: 311 | for (auto client : qAsConst(d->clients)) agent:2023/01/09 19:50:35 build.go:403: | ^~~~~~ agent:2023/01/09 19:50:35 build.go:403: ninja: build stopped: subcommand failed. agent:2023/01/09 19:50:35 build.go:454: Process finished with error: exit status 1
Details: http://ci-files01-hki.intra.qt.io:8080/coin/integration/qt/tqtc-qtvncserver/tasks/1681294104
Tested changes (refs/builds/qtci/dev/1673293689):
https://codereview.qt-project.org/c/qt/tqtc-qtvncserver/+/452945/2 Update dependencies on 'dev' in qt/tqtc-qtvncserver
Attachments
For Gerrit Dashboard: QTBUG-110031 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
453219,2 | Replace qAsConst with std::as_const | dev | qt/tqtc-qtvncserver | Status: MERGED | +2 | 0 |
457630,2 | Replace qAsConst with std::as_const | 6.5 | qt/tqtc-qtvncserver | Status: MERGED | +2 | 0 |