PyQt6 build issues with GCC 16, related to operator!=

Dmitry Shachnev mitya57 at ubuntu.com
Mon Nov 2 21:21:37 GMT 2026


Hi Phil!

On Tue, Aug 11, 2026 at 04:25:04PM +0100, Phil Thompson wrote:
> The QLocale code expects the corresponding convertor ctor to be invoked
> automatically. I've changed the code (tonight's snapshot) to call the ctor
> explicitly - see if that improves things.

Today I tried to build PyQt6 v6.12.0, and the problem is back:

    /home/dmitry/python-team/pyqt6/sip/QtCore/qlocale.sip: In function ‘PyObject* slot_QLocale_Language___ne__(PyObject*, PyObject*)’:
    /home/dmitry/python-team/pyqt6/sip/QtCore/qlocale.sip:1299:24: error: no matching function for call to ‘operator!=(QLocale, const QLocale&)’
     1299 |     sipRes = operator!=(QLocale(sipCpp), *a0);
          |              ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~

It looks like the changes you made to qlocale.sip negate the effect of the fix
in SIP, because they change `a != b` back to `operator!=(a, b)`.

Can you please revert that file to its v6.11.0 state?

Guessing from the ChangeLog, afbda5102dadd925baccfd5f81adf3137550dd98 is the
commit to `git revert`.

--
Dmitry Shachnev


More information about the PyQt mailing list