Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 646580 - dev-python/PyQt5-5.10 : /.../sipQtCoreQByteArray.cpp:2263:48: error: const class QByteArray has no member named chopped
Summary: dev-python/PyQt5-5.10 : /.../sipQtCoreQByteArray.cpp:2263:48: error: const cl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
: 646562 646670 646772 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-02-04 14:35 UTC by Toralf Förster
Modified: 2018-03-05 23:44 UTC (History)
18 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.29 KB, text/plain)
2018-02-04 14:35 UTC, Toralf Förster
Details
dev-python:PyQt5-5.10:20180204-125356.log (dev-python:PyQt5-5.10:20180204-125356.log,42.98 KB, text/plain)
2018-02-04 14:35 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,112.82 KB, text/plain)
2018-02-04 14:35 UTC, Toralf Förster
Details
environment (environment,103.19 KB, text/plain)
2018-02-04 14:35 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,14.13 KB, application/x-bzip)
2018-02-04 14:36 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,27.43 KB, application/x-bzip)
2018-02-04 14:36 UTC, Toralf Förster
Details
build.log and emerge info (build.log,78.63 KB, text/plain)
2018-02-04 22:06 UTC, rypervenche
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-02-04 14:35:46 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2018-02-04 14:35:49 UTC
Created attachment 517776 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-02-04 14:35:52 UTC
Created attachment 517778 [details]
dev-python:PyQt5-5.10:20180204-125356.log
Comment 3 Toralf Förster gentoo-dev 2018-02-04 14:35:55 UTC
Created attachment 517780 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-02-04 14:35:58 UTC
Created attachment 517782 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-02-04 14:36:01 UTC
Created attachment 517784 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-02-04 14:36:04 UTC
Created attachment 517786 [details]
temp.tbz2
Comment 7 Davide Pesavento (RETIRED) gentoo-dev 2018-02-04 18:43:43 UTC
*** Bug 646562 has been marked as a duplicate of this bug. ***
Comment 8 Ulenrich 2018-02-04 19:53:31 UTC
>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!
Comment 9 Davide Pesavento (RETIRED) gentoo-dev 2018-02-04 20:07:21 UTC
(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.
Comment 10 rypervenche 2018-02-04 22:06:51 UTC
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.
Comment 11 Jouni Kosonen 2018-02-05 02:10:37 UTC
(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?
Comment 12 Jouni Kosonen 2018-02-05 06:35:08 UTC
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
Comment 13 Coacher 2018-02-05 15:43:30 UTC
*** Bug 646670 has been marked as a duplicate of this bug. ***
Comment 14 Hector Martin 2018-02-06 05:54:32 UTC
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’
Comment 15 needle 2018-02-06 07:55:22 UTC
Confimed. I am hitting this bug as well.
Comment 16 Larry the Git Cow gentoo-dev 2018-02-06 13:13:00 UTC
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(+)
Comment 17 Arfrever Frehtes Taifersar Arahesis 2018-02-06 17:30:53 UTC
*** Bug 646772 has been marked as a duplicate of this bug. ***
Comment 18 Nikolaj Šujskij 2018-03-05 20:42:41 UTC
Still hitting it with dev-python/PyQt5-5.10.1
Comment 19 Davide Pesavento (RETIRED) gentoo-dev 2018-03-05 23:44:34 UTC
(In reply to Nikolaj Šujskij from comment #18)
> Still hitting it with dev-python/PyQt5-5.10.1

see bug 649600