Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 753368 - dev-python/PyQt5-5.14.2-r1 error: use of deleted function ‘QSGGeometry& QSGGeometry::operator=(const QSGGeometry&)’
Summary: dev-python/PyQt5-5.14.2-r1 error: use of deleted function ‘QSGGeometry& QSGGe...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-06 18:39 UTC by Freyja Domville
Modified: 2020-11-28 22:00 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Buid log for package (file_753368.txt,765.88 KB, text/plain)
2020-11-06 18:46 UTC, Freyja Domville
Details
emerge --info (file_753368.txt,7.91 KB, text/plain)
2020-11-06 18:48 UTC, Freyja Domville
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Freyja Domville 2020-11-06 18:39:28 UTC
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
Comment 1 Freyja Domville 2020-11-06 18:46:16 UTC
Created attachment 670262 [details]
Buid log for package

I've attached the build log as text.
Comment 2 Freyja Domville 2020-11-06 18:48:36 UTC
Created attachment 670265 [details]
emerge --info
Comment 3 Freyja Domville 2020-11-06 18:49:45 UTC
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)"
Comment 4 Freyja Domville 2020-11-06 19:08:09 UTC
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) ]
Comment 5 Freyja Domville 2020-11-06 19:24:11 UTC
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).
Comment 6 Chiitoo gentoo-dev 2020-11-12 01:22:47 UTC
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.
Comment 7 Davide Pesavento (RETIRED) gentoo-dev 2020-11-12 18:28:11 UTC
It's caused by sip-4.19.24
Comment 8 Maciej Barć gentoo-dev 2020-11-12 21:17:53 UTC
(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.
Comment 9 Neil Stone 2020-11-16 12:38:09 UTC
(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)
Comment 10 Mathieu Carpentier 2020-11-22 09:29:28 UTC
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"
Comment 11 HansS 2020-11-27 12:44:18 UTC
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
Comment 12 Sergio 2020-11-28 15:49:10 UTC
Masking sip-4.19.24 solved for me too.
Comment 13 Mathieu Carpentier 2020-11-28 17:44:50 UTC
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"
Comment 14 Davide Pesavento (RETIRED) gentoo-dev 2020-11-28 22:00:18 UTC
PyQt5-5.15.1 should work with sip-4.19.24. Please reopen if it doesn't.