Build failure: python312Packages.pyqt6 (calibre dependency)

Build failure: python312Packages.pyqt6 (calibre dependency)

full log in github: Build failure: python312Packages.pyqt6 (calibre dependency) · Issue #348845 · NixOS/nixpkgs · GitHub

g++ -c -pipe -O2 -fno-exceptions -Wall -Wextra -D_REENTRANT -fPIC -DPy_LIMITED_API=0x03080000 -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_KEYPAD_NAVIGATION -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_CORE_LIB -I. -I. -I.. -I../../PyQt6-6.7.0.dev2404081550/qpy/QtCore -I/nix/store/wfbjq35kxs6x83c3ncpfxdyl5gbhdx4h-python3-3.12.6/include/python3.12 -I/nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/include/QtCore -I. -I/nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/mkspecs/linux-g++ -o sipQtCoreQXmlStreamNotationDeclaration.o sipQtCoreQXmlStreamNotationDeclaration.cpp
g++ -c -pipe -O2 -fno-exceptions -Wall -Wextra -D_REENTRANT -fPIC -DPy_LIMITED_API=0x03080000 -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_KEYPAD_NAVIGATION -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_CORE_LIB -I. -I. -I.. -I../../PyQt6-6.7.0.dev2404081550/qpy/QtCore -I/nix/store/wfbjq35kxs6x83c3ncpfxdyl5gbhdx4h-python3-3.12.6/include/python3.12 -I/nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/include/QtCore -I. -I/nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/mkspecs/linux-g++ -o sipQtCoreQXmlStreamNamespaceDeclaration.o sipQtCoreQXmlStreamNamespaceDeclaration.cpp
g++ -c -pipe -O2 -fno-exceptions -Wall -Wextra -D_REENTRANT -fPIC -DPy_LIMITED_API=0x03080000 -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_KEYPAD_NAVIGATION -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_CORE_LIB -I. -I. -I.. -I../../PyQt6-6.7.0.dev2404081550/qpy/QtCore -I/nix/store/wfbjq35kxs6x83c3ncpfxdyl5gbhdx4h-python3-3.12.6/include/python3.12 -I/nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/include/QtCore -I. -I/nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/mkspecs/linux-g++ -o sipQtCoreQXmlStreamAttribute.o sipQtCoreQXmlStreamAttribute.cpp
g++ -c -pipe -O2 -fno-exceptions -Wall -Wextra -D_REENTRANT -fPIC -DPy_LIMITED_API=0x03080000 -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_KEYPAD_NAVIGATION -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_CORE_LIB -I. -I. -I.. -I../../PyQt6-6.7.0.dev2404081550/qpy/QtCore -I/nix/store/wfbjq35kxs6x83c3ncpfxdyl5gbhdx4h-python3-3.12.6/include/python3.12 -I/nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/include/QtCore -I. -I/nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/mkspecs/linux-g++ -o sipQtCoreQWaitCondition.o sipQtCoreQWaitCondition.cpp
g++ -c -pipe -O2 -fno-exceptions -Wall -Wextra -D_REENTRANT -fPIC -DPy_LIMITED_API=0x03080000 -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_KEYPAD_NAVIGATION -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_CORE_LIB -I. -I. -I.. -I../../PyQt6-6.7.0.dev2404081550/qpy/QtCore -I/nix/store/wfbjq35kxs6x83c3ncpfxdyl5gbhdx4h-python3-3.12.6/include/python3.12 -I/nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/include/QtCore -I. -I/nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/mkspecs/linux-g++ -o sipQtCoreQVersionNumber.o sipQtCoreQVersionNumber.cpp
g++ -c -pipe -O2 -fno-exceptions -Wall -Wextra -D_REENTRANT -fPIC -DPy_LIMITED_API=0x03080000 -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_KEYPAD_NAVIGATION -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_CORE_LIB -I. -I. -I.. -I../../PyQt6-6.7.0.dev2404081550/qpy/QtCore -I/nix/store/wfbjq35kxs6x83c3ncpfxdyl5gbhdx4h-python3-3.12.6/include/python3.12 -I/nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/include/QtCore -I. -I/nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/mkspecs/linux-g++ -o sipQtCoreQVariant.o sipQtCoreQVariant.cpp
g++ -c -pipe -O2 -fno-exceptions -Wall -Wextra -D_REENTRANT -fPIC -DPy_LIMITED_API=0x03080000 -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_KEYPAD_NAVIGATION -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_CORE_LIB -I. -I. -I.. -I../../PyQt6-6.7.0.dev2404081550/qpy/QtCore -I/nix/store/wfbjq35kxs6x83c3ncpfxdyl5gbhdx4h-python3-3.12.6/include/python3.12 -I/nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/include/QtCore -I. -I/nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/mkspecs/linux-g++ -o sipQtCoreQUuidId128Bytes.o sipQtCoreQUuidId128Bytes.cpp
/build/tmps26ndau3/QtCore/sipQtCoreQXmlStreamEntityResolver.cpp: In constructor ‘sipQXmlStreamEntityResolver::sipQXmlStreamEntityResolver(const QXmlStreamEntityResolver&)’:
/build/tmps26ndau3/QtCore/sipQtCoreQXmlStreamEntityResolver.cpp:64:150: error: use of deleted function ‘QXmlStreamEntityResolver::QXmlStreamEntityResolver(const QXmlStreamEntityResolver&)’
   64 | sipQXmlStreamEntityResolver::sipQXmlStreamEntityResolver(const ::QXmlStreamEntityResolver& a0): ::QXmlStreamEntityResolver(a0), sipPySelf(SIP_NULLPTR)
      |                                                                                                                                                      ^
In file included from /nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/include/QtCore/qtdeprecationmarkers.h:8,
                 from /nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/include/QtCore/qtcoreexports.h:9,
                 from /nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/include/QtCore/qglobal.h:26,
                 from /nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/include/QtCore/qmetatype.h:9,
                 from /nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/include/QtCore/QMetaType:1,
                 from sipAPIQtCore.h:35,
                 from sipQtCoreQXmlStreamEntityResolver.cpp:24:
/nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/include/QtCore/qxmlstream.h:220:25: note: declared here
  220 |     Q_DISABLE_COPY_MOVE(QXmlStreamEntityResolver)
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~
/build/tmps26ndau3/QtCore/sipQtCoreQXmlStreamEntityResolver.cpp: In function ‘void assign_QXmlStreamEntityResolver(void*, Py_ssize_t, void*)’:
/build/tmps26ndau3/QtCore/sipQtCoreQXmlStreamEntityResolver.cpp:148:127: error: use of deleted function ‘QXmlStreamEntityResolver& QXmlStreamEntityResolver::operator=(const QXmlStreamEntityResolver&)’
  148 |     reinterpret_cast<::QXmlStreamEntityResolver *>(sipDst)[sipDstIdx] = *reinterpret_cast<::QXmlStreamEntityResolver *>(sipSrc);
      |                                                                                                                               ^
/nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/include/QtCore/qxmlstream.h:220:5: note: declared here
  220 |     Q_DISABLE_COPY_MOVE(QXmlStreamEntityResolver)
      |     ^~~~~~~~~~~~~~~~~~~
/build/tmps26ndau3/QtCore/sipQtCoreQXmlStreamEntityResolver.cpp: In function ‘void* copy_QXmlStreamEntityResolver(const void*, Py_ssize_t)’:
/build/tmps26ndau3/QtCore/sipQtCoreQXmlStreamEntityResolver.cpp:155:114: error: use of deleted function ‘QXmlStreamEntityResolver::QXmlStreamEntityResolver(const QXmlStreamEntityResolver&)’
  155 |     return new ::QXmlStreamEntityResolver(reinterpret_cast<const ::QXmlStreamEntityResolver *>(sipSrc)[sipSrcIdx]);
      |                                                                                                                  ^
/nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/include/QtCore/qxmlstream.h:220:25: note: declared here
  220 |     Q_DISABLE_COPY_MOVE(QXmlStreamEntityResolver)
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:2467: sipQtCoreQXmlStreamEntityResolver.o] Error 1
make[1]: *** Waiting for unfinished jobs....
/build/tmps26ndau3/QtCore/sipQtCoreQXmlStreamNotationDeclaration.cpp: In function ‘PyObject* slot_QXmlStreamNotationDeclaration___ne__(PyObject*, PyObject*)’:
/build/tmps26ndau3/QtCore/sipQtCoreQXmlStreamNotationDeclaration.cpp:130:71: error: ‘class QXmlStreamNotationDeclaration’ has no member named ‘operator!=’
  130 |             sipRes = sipCpp->::QXmlStreamNotationDeclaration::operator!=(*a0);
      |                                                                       ^~
/build/tmps26ndau3/QtCore/sipQtCoreQXmlStreamNotationDeclaration.cpp: In function ‘PyObject* slot_QXmlStreamNotationDeclaration___eq__(PyObject*, PyObject*)’:
/build/tmps26ndau3/QtCore/sipQtCoreQXmlStreamNotationDeclaration.cpp:159:71: error: ‘class QXmlStreamNotationDeclaration’ has no member named ‘operator==’
  159 |             sipRes = sipCpp->::QXmlStreamNotationDeclaration::operator==(*a0);
      |                                                                       ^~
/build/tmps26ndau3/QtCore/sipQtCoreQXmlStreamEntityDeclaration.cpp: In function ‘PyObject* slot_QXmlStreamEntityDeclaration___ne__(PyObject*, PyObject*)’:
/build/tmps26ndau3/QtCore/sipQtCoreQXmlStreamEntityDeclaration.cpp:182:69: error: ‘class QXmlStreamEntityDeclaration’ has no member named ‘operator!=’
  182 |             sipRes = sipCpp->::QXmlStreamEntityDeclaration::operator!=(*a0);
      |                                                                     ^~
/build/tmps26ndau3/QtCore/sipQtCoreQXmlStreamEntityDeclaration.cpp: In function ‘PyObject* slot_QXmlStreamEntityDeclaration___eq__(PyObject*, PyObject*)’:
/build/tmps26ndau3/QtCore/sipQtCoreQXmlStreamEntityDeclaration.cpp:211:69: error: ‘class QXmlStreamEntityDeclaration’ has no member named ‘operator==’
  211 |             sipRes = sipCpp->::QXmlStreamEntityDeclaration::operator==(*a0);
      |                                                                     ^~
/build/tmps26ndau3/QtCore/sipQtCoreQXmlStreamNamespaceDeclaration.cpp: In function ‘PyObject* slot_QXmlStreamNamespaceDeclaration___ne__(PyObject*, PyObject*)’:
/build/tmps26ndau3/QtCore/sipQtCoreQXmlStreamNamespaceDeclaration.cpp:107:72: error: ‘class QXmlStreamNamespaceDeclaration’ has no member named ‘operator!=’
  107 |             sipRes = sipCpp->::QXmlStreamNamespaceDeclaration::operator!=(*a0);
      |                                                                        ^~
/build/tmps26ndau3/QtCore/sipQtCoreQXmlStreamNamespaceDeclaration.cpp: In function ‘PyObject* slot_QXmlStreamNamespaceDeclaration___eq__(PyObject*, PyObject*)’:
/build/tmps26ndau3/QtCore/sipQtCoreQXmlStreamNamespaceDeclaration.cpp:136:72: error: ‘class QXmlStreamNamespaceDeclaration’ has no member named ‘operator==’
  136 |             sipRes = sipCpp->::QXmlStreamNamespaceDeclaration::operator==(*a0);
      |                                                                        ^~
make[1]: *** [Makefile:2481: sipQtCoreQXmlStreamNotationDeclaration.o] Error 1
make[1]: *** [Makefile:2474: sipQtCoreQXmlStreamEntityDeclaration.o] Error 1
make[1]: *** [Makefile:2488: sipQtCoreQXmlStreamNamespaceDeclaration.o] Error 1
/build/tmps26ndau3/QtCore/sipQtCoreQXmlStreamAttribute.cpp: In function ‘PyObject* slot_QXmlStreamAttribute___ne__(PyObject*, PyObject*)’:
/build/tmps26ndau3/QtCore/sipQtCoreQXmlStreamAttribute.cpp:211:61: error: ‘class QXmlStreamAttribute’ has no member named ‘operator!=’
  211 |             sipRes = sipCpp->::QXmlStreamAttribute::operator!=(*a0);
      |                                                             ^~
/build/tmps26ndau3/QtCore/sipQtCoreQXmlStreamAttribute.cpp: In function ‘PyObject* slot_QXmlStreamAttribute___eq__(PyObject*, PyObject*)’:
/build/tmps26ndau3/QtCore/sipQtCoreQXmlStreamAttribute.cpp:240:61: error: ‘class QXmlStreamAttribute’ has no member named ‘operator==’
  240 |             sipRes = sipCpp->::QXmlStreamAttribute::operator==(*a0);
      |                                                             ^~
make[1]: *** [Makefile:2495: sipQtCoreQXmlStreamAttribute.o] Error 1
make[1]: Leaving directory '/build/tmps26ndau3/QtCore'
make: *** [Makefile:68: sub-QtCore-make_first-ordered] Error 2
_in_process.py: 'make' failed returning 2

�[91mERROR�[0m Backend subprocess exited when trying to invoke build_wheel
2 Likes

Hi. I hope this is the right place to ask:
Why exactly is PyQt6.8 broken?

It seems all communities are reacting to this but, when searching online, I can’t find any info the root cause. Did I miss something? For instance, there is OP’s issue and also this PR: python3Packages.pyqt6: 6.7.0.dev2404081550 -> 6.8.0.dev2410061818 by ulrikstrid · Pull Request #348697 · NixOS/nixpkgs · GitHub

Qt was updated to 6.8.0 and the third‐party PyQt project has not yet released a stable version compatible with it. They often take a long time to do so, as opposed to the official PySide binding, so we did not hold back the Qt update on unstable over this. PyQt have released a development snapshot with compatibility for the new version that other distributions are shipping, but they remove old snapshots whenever adding a new one, so it’s a bit of a moving target. That PR should fix things once it is ready to land.

6 Likes