PyQt6 build issues with GCC 16, related to operator!=
Dmitry Shachnev
mitya57 at ubuntu.com
Fri Aug 7 22:57:46 BST 2026
Hi Phil!
With GCC 16.1 in Debian unstable, PyQt6 6.11.0 fails to build with this error:
QtCore/sipQtCorecmodule.cpp: In function ‘PyObject* slot_QLocale_Language___ne__(PyObject*, PyObject*)’:
QtCore/sipQtCorecmodule.cpp:8393:32: error: no matching function for call to ‘operator!=(QLocale::Language&, const QLocale&)’
8393 | sipRes = operator!=(sipCpp, *a0);
| ~~~~~~~~~~^~~~~~~~~~~~~
* there are 2 candidates
In file included from /usr/include/x86_64-linux-gnu/qt6/QtCore/qcborvalue.h:9:
* candidate 1: ‘bool operator!=(QCborTag, QCborKnownTags)’
/usr/include/x86_64-linux-gnu/qt6/QtCore/qcborcommon.h:65:13:
65 | inline bool operator!=(QCborTag t, QCborKnownTags kt) { return quint64(t) != quint64(kt); }
| ^~~~~~~~
* no known conversion for argument 1 from ‘QLocale::Language’ to ‘QCborTag’
/usr/include/x86_64-linux-gnu/qt6/QtCore/qcborcommon.h:65:33:
65 | inline bool operator!=(QCborTag t, QCborKnownTags kt) { return quint64(t) != quint64(kt); }
| ~~~~~~~~~^
* candidate 2: ‘bool operator!=(QCborKnownTags, QCborTag)’
/usr/include/x86_64-linux-gnu/qt6/QtCore/qcborcommon.h:66:13:
66 | inline bool operator!=(QCborKnownTags kt, QCborTag t) { return quint64(t) != quint64(kt); }
| ^~~~~~~~
* no known conversion for argument 1 from ‘QLocale::Language’ to ‘QCborKnownTags’
/usr/include/x86_64-linux-gnu/qt6/QtCore/qcborcommon.h:66:39:
66 | inline bool operator!=(QCborKnownTags kt, QCborTag t) { return quint64(t) != quint64(kt); }
| ~~~~~~~~~~~~~~~^~
PyQt6-WebEngine 6.11.0 also fails to build with a similar error:
QtWebEngineCore/sipQtWebEngineCoreQWebEngineFrame.cpp: In function 'PyObject* slot_QWebEngineFrame___ne__(PyObject*, PyObject*)':
QtWebEngineCore/sipQtWebEngineCoreQWebEngineFrame.cpp:458:22: error: 'operator!=' not defined
458 | sipRes = operator!=((*sipCpp), *a0);
| ^~~~~~~~~~
This happens with SIP v6.15.3 and v6.16.0, with Python 3.13 and 3.14.
Our Qt version is 6.10.2 at the moment.
I attached the generated sipQtCorecmodule.cpp for PyQt6, and I can provide any
additional information if you need it.
--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sipQtCorecmodule.cpp
Type: text/x-c++src
Size: 571560 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20260808/839163f3/attachment-0001.cpp>
More information about the PyQt
mailing list