PyQt6 build issues with GCC 16, related to operator!=
Phil Thompson
phil at riverbankcomputing.com
Wed Nov 4 12:34:56 GMT 2026
On 02/11/2026 21:21, Dmitry Shachnev wrote:
> 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`.
Done. It looks like this was an initial attempt to fix the GCC 16
problem in PyQt (before the proper fix in SIP) that I forgot to revert.
Thanks,
Phil
More information about the PyQt
mailing list