PyQt5 build failure on macOS 10.10 and below

Phil Thompson phil at riverbankcomputing.com
Tue Sep 28 22:13:20 BST 2021


On 28/09/2021 14:41, reneeotten at macports.org wrote:
> Dear Phil,
> 
> 
> First of: thanks for making the software available! We try to support
> older macOS versions as much as possible in the MacPorts project
> (www.macports.org) and the build of PyQt5-5.14.2 currently fails on
> 10.10 and below due to the following error:
> 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
> -c -pipe -stdlib=libc++ -isystem/opt/local/include/LegacySupport
> -I/opt/local/include -Os -std=gnu++11  -arch x86_64 -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
> -mmacosx-version-min=10.10 -fno-exceptions -Wall -W -fPIC
> -DPy_LIMITED_API=0x03040000 -DSIP_PROTECTED_IS_PUBLIC
> -Dprotected=public -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN
> -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB
> -DQT_CORE_LIB -I. -I. -I.. -I../../qpy/QtQuick
> -I/opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9
> -I/opt/local/libexec/qt5/lib/QtQuick.framework/Headers
> -I/opt/local/libexec/qt5/lib/QtGui.framework/Headers
> -I/opt/local/libexec/qt5/lib/QtQml.framework/Headers
> -I/opt/local/libexec/qt5/lib/QtNetwork.framework/Headers
> -I/opt/local/libexec/qt5/lib/QtCore.framework/Headers -I.
> -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers
> -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework/Headers
> -I/opt/local/libexec/qt5/mkspecs/macx-clang
> -F/opt/local/libexec/qt5/lib -o sipQtQuickQSGGeometry.o
> sipQtQuickQSGGeometry.cpp
> /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_python_py-pyqt5/py39-pyqt5/work/PyQt5-5.14.2/build/QtQuick/sipQtQuickQSGGeometry.cpp:940:59:
> error: object of type 'QSGGeometry' cannot be assigned because its
> copy assignment operator is implicitly deleted
>     reinterpret_cast< ::QSGGeometry *>(sipDst)[sipDstIdx] =
> *reinterpret_cast< ::QSGGeometry *>(sipSrc);
>                                                           ^
> /opt/local/libexec/qt5/lib/QtQuick.framework/Headers/qsggeometry.h:207:25:
> note: copy assignment operator of 'QSGGeometry' is implicitly deleted
> because field 'm_attributes' is of reference type 'const
> QSGGeometry::AttributeSet &'
>     const AttributeSet &m_attributes;
>                         ^
> 1 error generated.
> make[1]: *** [sipQtQuickQSGGeometry.o] Error 1
> make: *** [sub-QtQuick-make_first-ordered] Error 2
> Command failed:  cd
> "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_python_py-pyqt5/py39-pyqt5/work/PyQt5-5.14.2"
> && sip-build-3.9 --qmake /opt/local/libexec/qt5/bin/qmake --verbose
> --confirm-license
> --dbus=/opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/dbus-1.0
> --disable QtWebKit --disable QtWebKitWidgets
> Exit code: 1
> 
> The Trac ticket that reported the issue is
> (https://trac.macports.org/ticket/62009
> <https://trac.macports.org/ticket/62009>) and a full, recent build-log
> can be found here:
> https://build.macports.org/builders/ports-10.10_x86_64-builder/builds/156111
> <https://build.macports.org/builders/ports-10.10_x86_64-builder/builds/156111>.
> I am not completely sure what the officially supported OSes are and
> whether this error is something that seems familiar to you and/or
> fixable, but would appreciate your input here!

The first thing I'd suggest is to use current versions.

Phil


More information about the PyQt mailing list