Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15.15
-
Debian 12 (bookworm) amd64
GCC 12.2
Qt source from Online Installer (commercial)
-
-
1
-
ddc0fc428 (tqtc/lts-5.15)
-
Foundation Sprint 91
Description
I've noticed bug https://bugreports.qt.io/browse/QTBUG-102867 that Qt 5.15 fails to build on GCC11, and I'm planning to upgrade to Debian 12 with GCC 12, so I've launched VM to try building there, and discovered this error:
g++ -c -include .pch/Qt5Qml -pipe -Wno-expansion-to-defined -O2 -std=c++2a -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -Wextra -Wno-expansion-to-defined -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-ov erflow -Wno-format-overflow -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_URL_CAST_FROM_STRING -DQT_NO_INTEGER_EVENT_COORDINATES -DQT_NO_FOREACH -DWTF_EXPORT_PRIVATE= -DJS_EXPORT_PRIVATE= -DENABLE_ASS EMBLER_WX_EXCLUSIVE=1 -DWTFReportAssertionFailure=qmlWTFReportAssertionFailure -DWTFReportAssertionFailureWithMessage=qmlWTFReportAssertionFailureWithMessage -DWTFReportBacktrace=qmlWTFReportBacktrace -DWTFInvokeCrashHook=qmlWTFInvokeCrashHook -DENAB LE_LLINT=0 -DENABLE_DFG_JIT=0 -DENABLE_DFG_JIT_UTILITY_METHODS=1 -DENABLE_JIT_CONSTANT_BLINDING=0 -DBUILDING_QT__ -DWTF_USE_UDIS86=0 -DNDEBUG -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_QML_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCI I_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_NETWORK_L IB -DQT_CORE_LIB -I. -Imemory -I. -Icompiler -I. -Ijsruntime -I. -Ijit -I. -Idebugger -Iqmldirparser -I. -Ianimations -I../3rdparty/masm/jit -I../3rdparty/masm/assembler -I../3rdparty/masm/runtime -I../3rdparty/masm/wtf -I../3rdparty/masm/stubs -I../ 3rdparty/masm/stubs/runtime -I../3rdparty/masm/stubs/wtf -I../3rdparty/masm -I../3rdparty/masm/disassembler -I../3rdparty/masm/disassembler/udis86 -I../../include -I../../include/QtQml -I../../include/QtQml/5.15.15 -I../../include/QtQml/5.15.15/QtQml -I.generated -I. -I.tracegen -I/home/debian/Qt/5.15.15/Src/qtbase/include/QtCore/5.15.15 -I/home/debian/Qt/5.15.15/Src/qtbase/include/QtCore/5.15.15/QtCore -I/home/debian/Qt/5.15.15/Src/qtbase/include -I/home/debian/Qt/5.15.15/Src/qtbase/include/QtN etwork -I/home/debian/Qt/5.15.15/Src/qtbase/include/QtCore -I.moc -I/home/debian/Qt/5.15.15/Src/qtbase/mkspecs/linux-g++ -o .obj/qv4sequenceobject.o jsruntime/qv4sequenceobject.cpp In file included from ../../include/QtQml/5.15.15/QtQml/private/qv4vtable_p.h:1, from ../../include/QtQml/5.15.15/QtQml/private/../../../../../src/qml/memory/qv4heap_p.h:57, from ../../include/QtQml/5.15.15/QtQml/private/qv4heap_p.h:1, from jsruntime/qv4value_p.h:58, from jsruntime/qv4sequenceobject_p.h:57, from jsruntime/qv4sequenceobject.cpp:42: ../../include/QtQml/5.15.15/QtQml/private/../../../../../src/qml/jsruntime/qv4vtable_p.h:205:19: error: expected unqualified-id before ‘)’ token 205 | DataClass() Q_DECL_EQ_DELETE; \ | ^ jsruntime/qv4sequenceobject.cpp:264:5: note: in expansion of macro ‘V4_OBJECT2’ 264 | V4_OBJECT2(QQmlSequence<Container>, QV4::Object) | ^~~~~~~~~~ In file included from /home/debian/Qt/5.15.15/Src/qtbase/include/QtCore/qglobal.h:1, from /home/debian/Qt/5.15.15/Src/qtbase/include/QtCore/QtCore:4, from ../../include/QtQml/QtQmlDepends:3: /home/debian/Qt/5.15.15/Src/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:443:11: error: expected unqualified-id before ‘const’ 443 | Class(const Class &) = delete;\ | ^~~~~ ../../include/QtQml/5.15.15/QtQml/private/../../../../../src/qml/jsruntime/qv4vtable_p.h:206:9: note: in expansion of macro ‘Q_DISABLE_COPY’ 206 | Q_DISABLE_COPY(DataClass) \ | ^~~~~~~~~~~~~~ jsruntime/qv4sequenceobject.cpp:264:5: note: in expansion of macro ‘V4_OBJECT2’ 264 | V4_OBJECT2(QQmlSequence<Container>, QV4::Object) | ^~~~~~~~~~ /home/debian/Qt/5.15.15/Src/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:443:11: error: expected ‘)’ before ‘const’ 443 | Class(const Class &) = delete;\ | ~^~~~~ ../../include/QtQml/5.15.15/QtQml/private/../../../../../src/qml/jsruntime/qv4vtable_p.h:206:9: note: in expansion of macro ‘Q_DISABLE_COPY’ 206 | Q_DISABLE_COPY(DataClass) \ | ^~~~~~~~~~~~~~ jsruntime/qv4sequenceobject.cpp:264:5: note: in expansion of macro ‘V4_OBJECT2’ 264 | V4_OBJECT2(QQmlSequence<Container>, QV4::Object) | ^~~~~~~~~~ gmake[3]: *** [Makefile:50609: .obj/qv4sequenceobject.o] Error 1
Using configuration:
./configure \ -prefix "${HOME}/qtprefix" \ -commercial \ -confirm-license \ -shared \ -c++std c++2a \ -release \ -openssl-runtime \ -nomake tests \ -recheck-all
With gcc:
$ gcc --version gcc (Debian 12.2.0-14) 12.2.0
Attachments
For Gerrit Dashboard: QTBUG-117018 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
503778,4 | QQmlSequence: fix compilation with GCC12/C++20 | tqtc/lts-5.15 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |