When I try to --oneshot PyQt5 stable on my system, it fails to compile. Reproducible: Always Steps to Reproduce: 1. emerge --sync 2. emerge --oneshot dev-python/PyQt5 3. application fails to ccompile, due to a deleted operator= function Actual Results: Fails to compile in the attached log file Expected Results: Package compiles successfully
Created attachment 670262 [details] Buid log for package I've attached the build log as text.
Created attachment 670265 [details] emerge --info
emerge pqv is as follows: [ebuild R ] dev-python/PyQt5-5.14.2-r1 USE="bluetooth dbus declarative gui multimedia network opengl printsupport ssl svg widgets -debug -designer -examples -gles2-only -help -location -networkauth -positioning -sensors -serialport -sql -testlib -webchannel -webkit -websockets -x11extras -xmlpatterns" PYTHON_TARGETS="python3_7 -python3_6 -python3_8 (-python3_9)"
The output from equery d PyQt5 is as follows, I'm suspecting a version mismatch might be to blame here: * dependency graph for dev-python/PyQt5-5.14.2-r1 `-- dev-python/PyQt5-5.14.2-r1 amd64 `-- dev-lang/python-3.6.12 (dev-lang/python) amd64 `-- dev-lang/python-3.7.9 (dev-lang/python) amd64 `-- dev-lang/python-3.8.5 (dev-lang/python) amd64 `-- dev-lang/python-3.9.0 (dev-lang/python) amd64 `-- dev-lang/python-exec-2.4.6-r2 (>=dev-lang/python-exec-2) amd64 [python_targets_python3_6(-)? python_targets_python3_7(-)? python_targets_python3_8(-)? python_targets_python3_9(-)? -python_single_target_python3_6(-) -python_single_target_python3_7(-) -python_single_target_python3_8(-) -python_single_target_python3_9(-)] `-- dev-python/PyQt5-sip-4.19.24 (>=dev-python/PyQt5-sip-4.19.20) amd64 [python_targets_python3_6(-)? python_targets_python3_7(-)? python_targets_python3_8(-)? python_targets_python3_9(-)? -python_single_target_python3_6(-) -python_single_target_python3_7(-) -python_single_target_python3_8(-) -python_single_target_python3_9(-)] `-- dev-qt/qtcore-5.15.1-r1 (>=dev-qt/qtcore-5.12) amd64 `-- dev-qt/qtxml-5.15.1 (>=dev-qt/qtxml-5.12) amd64 `-- dev-qt/qtbluetooth-5.15.1 (>=dev-qt/qtbluetooth-5.12) amd64 `-- dev-python/dbus-python-1.2.16-r1 (dev-python/dbus-python) amd64 [python_targets_python3_6(-)? python_targets_python3_7(-)? python_targets_python3_8(-)? python_targets_python3_9(-)? -python_single_target_python3_6(-) -python_single_target_python3_7(-) -python_single_target_python3_8(-) -python_single_target_python3_9(-)] `-- dev-qt/qtdbus-5.15.1 (>=dev-qt/qtdbus-5.12) amd64 `-- dev-qt/qtdeclarative-5.15.1 (>=dev-qt/qtdeclarative-5.12) amd64 [widgets?] `-- dev-qt/designer-5.15.1 (>=dev-qt/designer-5.12) amd64 `-- dev-qt/qtgui-5.15.1-r1 (>=dev-qt/qtgui-5.12) amd64 [gles2-only=] `-- dev-qt/qthelp-5.15.1 (>=dev-qt/qthelp-5.12) amd64 `-- dev-qt/qtlocation-5.15.1 (>=dev-qt/qtlocation-5.12) amd64 `-- dev-qt/qtmultimedia-5.15.1 (>=dev-qt/qtmultimedia-5.12) amd64 [widgets?] `-- dev-qt/qtnetwork-5.15.1 (>=dev-qt/qtnetwork-5.12) amd64 [ssl=] `-- dev-qt/qtnetworkauth-5.15.1 (>=dev-qt/qtnetworkauth-5.12) amd64 `-- dev-qt/qtopengl-5.15.1 (>=dev-qt/qtopengl-5.12) amd64 `-- dev-qt/qtpositioning-5.15.1 (>=dev-qt/qtpositioning-5.12) amd64 `-- dev-qt/qtprintsupport-5.15.1 (>=dev-qt/qtprintsupport-5.12) amd64 `-- dev-qt/qtsensors-5.15.1 (>=dev-qt/qtsensors-5.12) amd64 `-- dev-qt/qtserialport-5.15.1 (>=dev-qt/qtserialport-5.12) amd64 `-- dev-qt/qtsql-5.15.1 (>=dev-qt/qtsql-5.12) amd64 `-- dev-qt/qtsvg-5.15.1 (>=dev-qt/qtsvg-5.12) amd64 `-- dev-qt/qttest-5.15.1 (>=dev-qt/qttest-5.12) amd64 `-- dev-qt/qtwebchannel-5.15.1 (>=dev-qt/qtwebchannel-5.12) amd64 `-- dev-qt/qtwebkit-5.212.0_pre20200309-r1 (dev-qt/qtwebkit) amd64 [printsupport] `-- dev-qt/qtwebsockets-5.15.1 (>=dev-qt/qtwebsockets-5.12) amd64 `-- dev-qt/qtwidgets-5.15.1 (>=dev-qt/qtwidgets-5.12) amd64 `-- dev-qt/qtx11extras-5.15.1 (>=dev-qt/qtx11extras-5.12) amd64 `-- dev-qt/qtxmlpatterns-5.15.1 (>=dev-qt/qtxmlpatterns-5.12) amd64 `-- dev-python/sip-4.19.24 (>=dev-python/sip-4.19.20) amd64 [python_targets_python3_6(-)? python_targets_python3_7(-)? python_targets_python3_8(-)? python_targets_python3_9(-)? -python_single_target_python3_6(-) -python_single_target_python3_7(-) -python_single_target_python3_8(-) -python_single_target_python3_9(-)] `-- virtual/pkgconfig-2 (virtual/pkgconfig) amd64 [ dev-python/PyQt5-5.14.2-r1 stats: packages (36), max depth (1) ]
I can confirm that 5.15.0-r1 does build successfully for me, and solves my issue, so this problem may not be a problem once that is stabilised (I see there's a stabilisation request in flight for this package).
This came up via IRC as well, and it is a bit curious, because I tried building 'dev-python/PyQt5-5.14.2-r1' with the Qt I have, which is 5.15.3 currently (5.15.9999), and it went fine. Perhaps there was/is regression somewhere... or it's something other than the Qt packages that's causing this.
It's caused by sip-4.19.24
(In reply to Davide Pesavento from comment #7) > It's caused by sip-4.19.24 I can confirm. I merged dev-python/sip-4.19.22-r1 and then dev-python/PyQt5-5.14.2-r1 Seems to compile a bit longer (compared to 5.15.1 version) ~10min more but compiles.
(In reply to Maciej Barć from comment #8) > (In reply to Davide Pesavento from comment #7) > > It's caused by sip-4.19.24 > > > I can confirm. > I merged dev-python/sip-4.19.22-r1 and then dev-python/PyQt5-5.14.2-r1 > Seems to compile a bit longer (compared to 5.15.1 version) ~10min more but > compiles. Same resolution here (merge python/sip-4.19.22-r1 and then dev-python/PyQt5-5.14.2-r1)
Same problem for me. I was installing net-print/hplip and it failed to compile dev-python/PyQt5-5.14.2-r1 with dev-python/sip-4.19.24 emerge -pqv dev-python/PyQt5 [ebuild N ] dev-python/PyQt5-5.14.2-r1 USE="dbus declarative gui multimedia network opengl printsupport ssl svg widgets -bluetooth -debug -designer -examples -gles2-only -help -location -networkauth -positioning -sensors -serialport -sql -testlib -webchannel -webkit -websockets -x11extras -xmlpatterns" PYTHON_TARGETS="python3_7 -python3_6 -python3_8 -python3_9"
Failed to compile dev-python/PyQt5-5.14.2-r1 also after emerge dev-python/sip-4.19.24. Seems to be a problem in relation to QtQuick... In file included from /usr/include/qt5/QtQuick/qsgnode.h:43, from /usr/include/qt5/QtQuick/qsgrendererinterface.h:43, from /usr/include/qt5/QtQuick/qquickwindow.h:44, from /var/tmp/portage/dev-python/PyQt5-5.14.2-r1/work/PyQt5-5.14.2/sip/QtQuick/qquickwindow.sip:26, from sipQtQuickQSGGeometry.cpp:24: /usr/include/qt5/QtQuick/qsggeometry.h:51:22: note: ‘QSGGeometry& QSGGeometry::operator=(const QSGGeometry&)’ is implicitly deleted because the default definition would be ill-formed: 51 | class Q_QUICK_EXPORT QSGGeometry | ^~~~~~~~~~~ /usr/include/qt5/QtQuick/qsggeometry.h:51:22: error: non-static reference member ‘const QSGGeometry::AttributeSet& QSGGeometry::m_attributes’, can’t use default assignment operator
Masking sip-4.19.24 solved for me too.
I just synced and noticed that PyQt5-5.15 was available. I tried to install hplip again and it worked without masking sip-4.19.24 [ebuild N ] dev-python/PyQt5-sip-4.19.24 PYTHON_TARGETS="python3_7 -python3_6 -python3_8 -python3_9" [ebuild N ] dev-python/sip-4.19.24 USE="-doc" PYTHON_TARGETS="python3_7 -python3_6 -python3_8 -python3_9" [ebuild N ] media-libs/libart_lgpl-2.3.21-r3 ABI_X86="(64) -32 (-x32)" [ebuild NS ] sys-devel/automake-1.13.4-r2 [1.16.2-r1] [ebuild N ] dev-python/reportlab-3.5.48 USE="-doc -test" PYTHON_TARGETS="python3_7 -python3_6 -python3_8 -python3_9" [ebuild N ] dev-python/notify2-0.3.1-r2 USE="-examples -test" PYTHON_TARGETS="python3_7 -python3_6 -python3_8 -python3_9" [ebuild N ] dev-qt/qtopengl-5.15.1 USE="-debug -gles2-only -test" [ebuild N ] dev-qt/qtmultimedia-5.15.1 USE="alsa pulseaudio qml widgets -debug -gles2-only -gstreamer -openal -test" [ebuild N ] dev-python/PyQt5-5.15.1 USE="dbus declarative gui multimedia network opengl printsupport ssl svg widgets -bluetooth -debug -designer -examples -gles2-only -help -location -networkauth -positioning -sensors -serialport -sql -testlib -webchannel -webkit -websockets -x11extras -xmlpatterns" PYTHON_TARGETS="python3_7 -python3_6 -python3_8 -python3_9" [ebuild N ] kde-apps/libksane-20.08.3 USE="kwallet -debug" [ebuild N ] kde-misc/skanlite-2.2.0 USE="handbook -debug -test" [ebuild N ~] net-print/hplip-3.20.9-r5 USE="X hpcups kde libnotify (policykit) qt5 scanner -doc -fax -hpijs -libressl -libusb0 -minimal -parport -snmp -static-ppds" PYTHON_SINGLE_TARGET="python3_7 -python3_6 -python3_8"
PyQt5-5.15.1 should work with sip-4.19.24. Please reopen if it doesn't.