x86_64-pc-linux-gnu-g++ -c -O2 -pipe -march=native -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DPy_LIMITED_API=0x03040000 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_CORE_LIB -I. -I. -isystem /usr/include/python2.7 -I../../PyQt5_gpl-5.10/qpy/QtCore -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o sipQtCoreQByteArray.o sipQtCoreQByteArray.cpp /var/tmp/portage/dev-python/PyQt5-5.10/work/PyQt5_gpl-5.10-python2_7/QtCore/sipQtCoreQByteArray.cpp: In function ‘PyObject* meth_QByteArray_chopped(PyObject*, PyObject*)’: /var/tmp/portage/dev-python/PyQt5-5.10/work/PyQt5_gpl-5.10-python2_7/QtCore/sipQtCoreQByteArray.cpp:2263:48: error: ‘const class QByteArray’ has no member named ‘chopped’; did you mean ‘chop’? Py_INCREF(sipSelf); ^ chop ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0-desktop-plasma_libressl_20180201-185100 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-7.3.0 * Available Python interpreters, in order of preference: [1] python3.5 [2] python2.7 (fallback) [3] pypy (fallback) Available Ruby profiles: [1] ruby22 (with Rubygems) [2] ruby23 (with Rubygems) * java-config: The following VMs are available for generation-2: *) IcedTea JDK 3.6.0 [icedtea-bin-8] Available Java Virtual Machines: [1] icedtea-bin-8 system-vm emerge -qpv dev-python/PyQt5 [ebuild N ] dev-python/PyQt5-5.9.2 USE="bluetooth dbus declarative gui help network opengl printsupport svg widgets -debug -designer -examples (-gles2) -location -multimedia -positioning -sensors -serialport -sql -testlib -webchannel -webengine -webkit -websockets -x11extras -xmlpatterns" PYTHON_TARGETS="python2_7 python3_5 -python3_4 -python3_6"
Created attachment 517776 [details] emerge-info.txt
Created attachment 517778 [details] dev-python:PyQt5-5.10:20180204-125356.log
Created attachment 517780 [details] emerge-history.txt
Created attachment 517782 [details] environment
Created attachment 517784 [details] etc.portage.tbz2
Created attachment 517786 [details] temp.tbz2
*** Bug 646562 has been marked as a duplicate of this bug. ***
>has no member named ‘chopped’; did you mean ‘chop’? Duplicate bug by Chris Torske describes here: https://bugs.gentoo.org/646562#c0 >The issue is that chopped was introduced in qt 5.10. QT's documentation about >this method: >http://doc.qt.io/qt-5/qbytearray.html#chopped > >At this time, PyQt5-5.10 ebuild needs to depend on 5.10 instead of 5.9 and >possibly be masked until qt 5.10 is available in portage. Please mask this ebuild!
(In reply to Ulenrich from comment #8) > Duplicate bug by Chris Torske describes here: > https://bugs.gentoo.org/646562#c0 > >The issue is that chopped was introduced in qt 5.10. QT's documentation about >this method: > >http://doc.qt.io/qt-5/qbytearray.html#chopped I'm well aware of that, and it's not that simple. The chopped function is properly wrapped in a version conditional: %If (Qt_5_10_0 -) QByteArray chopped(int len) const; %End And as a matter of fact, I cannot reproduce the failure with sip-4.19.7 and Qt 5.9.3. The OP has 5.9.4 which makes me think it could be related to the eclass changes for bug 634622.
Created attachment 517816 [details] build.log and emerge info I am also having this issue. I have attached my build.log and emerge --info. Please let me know if you need any further information from my system.
(In reply to Davide Pesavento from comment #9) > The OP has 5.9.4 which makes me think it could be related to the eclass > changes for bug 634622. I'm getting the same results here, PyQt5-5.10 compiled against 5.9.3 but gets "chopped" with 5.9.4. I noticed this, though: work/PyQt5_gpl-5.10/sip/QtCore/QtCoremod.sip:25:%Timeline {Qt_5_0_0 Qt_5_0_1 Qt_5_0_2 Qt_5_1_0 Qt_5_1_1 Qt_5_2_0 Qt_5_2_1 Qt_5_3_0 Qt_5_3_1 Qt_5_3_2 Qt_5_4_0 Qt_5_4_1 Qt_5_4_2 Qt_5_5_0 Qt_5_5_1 Qt_5_6_0 Qt_5_6_1 Qt_5_6_2 Qt_5_6_3 Qt_5_6_4 Qt_5_6_5 Qt_5_6_6 Qt_5_6_7 Qt_5_6_8 Qt_5_6_9 Qt_5_7_0 Qt_5_7_1 Qt_5_8_0 Qt_5_8_1 Qt_5_9_0 Qt_5_9_1 Qt_5_9_2 Qt_5_9_3 Qt_5_10_0} There's no Qt_5_9_4 in that list. Could this be the reason instead?
Injecting Qt_5_9_4 to the Timeline in sip/QtCore/QtCoremod.sip line 25 does fix this error allowing PyQt5-5.10[-svg] to build. PyQt5[svg] still breaks as in bug 646504 comment 7 because the QT_NO_WIDGETS in core qconfig.h hides the definitions of the relevant classes: > $ grep -rn QT_NO_WIDGETS /usr/include/qt5 > /usr/include/qt5/QtCore/qconfig.h:40:#define QT_NO_WIDGETS true > /usr/include/qt5/QtSvg/qsvgwidget.h:45:#ifndef QT_NO_WIDGETS > /usr/include/qt5/QtSvg/qsvgwidget.h:81:#endif // QT_NO_WIDGETS > /usr/include/qt5/QtSvg/qgraphicssvgitem.h:44:#if !defined(QT_NO_GRAPHICSVIEW) && !defined(QT_NO_WIDGETS) > /usr/include/qt5/QtSvg/qgraphicssvgitem.h:97:#endif // QT_NO_GRAPHICSVIEW or QT_NO_WIDGETS
*** Bug 646670 has been marked as a duplicate of this bug. ***
In addition to the chopped error I'm also seeing this one (thanks to parallel make doing both at once): /var/tmp/portage/dev-python/PyQt5-5.10/work/PyQt5_gpl-5.10-python2_7/QtCore/sipQtCoreQDataStream.cpp:2997:56: error: ‘Qt_5_10’ is not a member of ‘QDataStream’
Confimed. I am hitting this bug as well.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4aaaacfc03540386c274b04297e36f301634029b commit 4aaaacfc03540386c274b04297e36f301634029b Author: Michael Palimaka <kensington@gentoo.org> AuthorDate: 2018-02-06 13:11:53 +0000 Commit: Michael Palimaka <kensington@gentoo.org> CommitDate: 2018-02-06 13:12:50 +0000 dev-python/PyQt5: add patch to fix build with Qt 5.9.4 Closes: https://bugs.gentoo.org/646580 Package-Manager: Portage-2.3.19, Repoman-2.3.6 dev-python/PyQt5/PyQt5-5.10.ebuild | 1 + dev-python/PyQt5/files/PyQt5-5.10-qt594.patch | 15 +++++++++++++++ 2 files changed, 16 insertions(+)
*** Bug 646772 has been marked as a duplicate of this bug. ***
Still hitting it with dev-python/PyQt5-5.10.1
(In reply to Nikolaj Šujskij from comment #18) > Still hitting it with dev-python/PyQt5-5.10.1 see bug 649600