Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PyQt5 failing to compile [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
irenicus09
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jun 2013
Posts: 118

PostPosted: Sat Feb 18, 2017 9:51 am    Post subject: PyQt5 failing to compile [Solved] Reply with quote

I was doing upgrade as usual, Calibre needs to be updated which is why PyQt5 was pulled in as a dependency.

These are the logs I have at the moment.

Code:

emerge -pqv '=dev-python/PyQt5-5.5.1::gentoo'                                                                               
[ebuild  N    ] dev-python/PyQt5-5.5.1  USE="dbus gui network opengl printsupport svg webkit widgets -debug -declarative -designer -doc -examples -gles2 -help -multimedia -positioning -sensors -serialport -sql -testlib -webchannel -websockets -x11extras -xmlpatterns" PYTHON_TARGETS="python2_7 python3_4 (-python3_5)"


Other Log:
https://paste.pound-python.org/show/nGYdUfGYqEd9pgRBNoE6/


Build log:
https://gist.github.com/anonymous/31182fb1ac875fc4e3d8df663cf1910f


Last edited by irenicus09 on Sun Feb 19, 2017 1:39 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22958
Location: here

PostPosted: Sat Feb 18, 2017 10:08 am    Post subject: Reply with quote

Your build.log is incomplete, report only warning (present also in my system) and no error.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
irenicus09
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jun 2013
Posts: 118

PostPosted: Sat Feb 18, 2017 11:09 am    Post subject: Reply with quote

Sorry about that, its around 16K lines of code so didn't realize that it got truncated by wgetpaste tool.

Anyway here is the error part of the log:

Code:

../../PyQt-gpl-5.5.1/qpy/QtCore/qpycore_types.cpp: In function ‘int pyqtWrapperType_init(pyqtWrapperType*, PyObject*, PyObject*)’:
../../PyQt-gpl-5.5.1/qpy/QtCore/qpycore_types.cpp:160:5: error: ‘pyqt5ClassTypeDef’ was not declared in this scope
     pyqt5ClassTypeDef *pyqt_td = (pyqt5ClassTypeDef *)((sipWrapperType *)self)->type;
     ^
../../PyQt-gpl-5.5.1/qpy/QtCore/qpycore_types.cpp:160:24: error: ‘pyqt_td’ was not declared in this scope
     pyqt5ClassTypeDef *pyqt_td = (pyqt5ClassTypeDef *)((sipWrapperType *)self)->type;
                        ^
../../PyQt-gpl-5.5.1/qpy/QtCore/qpycore_types.cpp:160:54: error: expected primary-expression before ‘)’ token
     pyqt5ClassTypeDef *pyqt_td = (pyqt5ClassTypeDef *)((sipWrapperType *)self)->type;
                                                      ^
../../PyQt-gpl-5.5.1/qpy/QtCore/qpycore_types.cpp: In function ‘const QMetaObject* get_qmetaobject(pyqtWrapperType*)’:
../../PyQt-gpl-5.5.1/qpy/QtCore/qpycore_types.cpp:583:52: error: ‘pyqt5ClassTypeDef’ was not declared in this scope
     return reinterpret_cast<const QMetaObject *>(((pyqt5ClassTypeDef *)((sipWrapperType *)pyqt_wt)->type)->static_metaobject);
                                                    ^
../../PyQt-gpl-5.5.1/qpy/QtCore/qpycore_types.cpp:583:71: error: expected primary-expression before ‘)’ token
     return reinterpret_cast<const QMetaObject *>(((pyqt5ClassTypeDef *)((sipWrapperType *)pyqt_wt)->type)->static_metaobject);
                                                                       ^
make[1]: *** [Makefile:2636: qpycore_types.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/var/tmp/portage/dev-python/PyQt5-5.5.1/work/PyQt-gpl-5.5.1-python2_7/QtCore'
make: *** [Makefile:60: sub-QtCore-make_first-ordered] Error 2
 * ERROR: dev-python/PyQt5-5.5.1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-python/PyQt5-5.5.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/PyQt5-5.5.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/PyQt5-5.5.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/PyQt5-5.5.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/PyQt5-5.5.1/work/PyQt-gpl-5.5.1-python2_7'
 * S: '/var/tmp/portage/dev-python/PyQt5-5.5.1/work/PyQt-gpl-5.5.1'
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22958
Location: here

PostPosted: Sat Feb 18, 2017 12:13 pm    Post subject: Reply with quote

What version of sip have you? (read here)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
irenicus09
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jun 2013
Posts: 118

PostPosted: Sun Feb 19, 2017 1:38 am    Post subject: Reply with quote

Thank you so much @fedeliallalinea

I've downgraded to an older version of sip & masked the current stable version (dev-python/sip-4.19), and PyQt builds successfully.
Back to top
View user's profile Send private message
cun6668
n00b
n00b


Joined: 20 Jun 2017
Posts: 2

PostPosted: Tue Jun 20, 2017 1:51 am    Post subject: Reply with quote

i have experienced same problem with you. and my sip version is 4.19.2.
would you please tell me which sip version able to work? thank you!
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22958
Location: here

PostPosted: Tue Jun 20, 2017 4:50 am    Post subject: Reply with quote

cun6668 wrote:
i have experienced same problem with you. and my sip version is 4.19.2.
would you please tell me which sip version able to work? thank you!

Try with stable version 4.19.1
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
cun6668
n00b
n00b


Joined: 20 Jun 2017
Posts: 2

PostPosted: Tue Jun 20, 2017 12:56 pm    Post subject: Reply with quote

fedeliallalinea wrote:
cun6668 wrote:
i have experienced same problem with you. and my sip version is 4.19.2.
would you please tell me which sip version able to work? thank you!

Try with stable version 4.19.1


thank you .i have solved it
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum