| View previous topic :: View next topic |
| Author |
Message |
drbergie n00b

Joined: 22 Nov 2007 Posts: 34
|
Posted: Fri May 04, 2012 4:48 am Post subject: [Solved] KDE Upgrade: kde-base/pykde4-4.8.1 fails to compile |
|
|
Hi
I am in the process of upgrading my KDE install. All is going well: KDE 4.8.1 is installed, and runs. KDM starts up without problems. My plasma workspace works (non python widgets anyway.) However when calling | Code: | | emerge kde-base/pykde4 | I get the following output:
| Code: |
..snip
>>> Source configured.
>>> Compiling source in /var/tmp/portage/kde-base/pykde4-4.8.1/work/pykde4-4.8.1 ...
* Building of kde-base/pykde4-4.8.1 with CPython 2.6...
>>> Working in BUILD_DIR: "/var/tmp/portage/kde-base/pykde4-4.8.1/work/pykde4-4.8.1_build-2.6"
make -j3
[ 0%] [ 1%] Generating sip/akonadi/sipakonadipart0.cpp, sip/akonadi/sipakonadipart1.cpp, sip/akonadi/sipakonadipart2.cpp, sip/akonadi/sipakonadipart3.cpp, sip/akonadi/sipakonadipart4.cpp, sip/akonadi/sipakonadipart5.cpp, sip/akonadi/sipakonadipart6.cpp, sip/akonadi/sipakonadipart7.cpp
Generating sip/dnssd/sipdnssdpart0.cpp, sip/dnssd/sipdnssdpart1.cpp, sip/dnssd/sipdnssdpart2.cpp, sip/dnssd/sipdnssdpart3.cpp, sip/dnssd/sipdnssdpart4.cpp, sip/dnssd/sipdnssdpart5.cpp, sip/dnssd/sipdnssdpart6.cpp, sip/dnssd/sipdnssdpart7.cpp
Scanning dependencies of target compile_python_files
[ 1%] Built target compile_python_files
[ 1%] Generating sip/kdecore/sipkdecorepart0.cpp, sip/kdecore/sipkdecorepart1.cpp, sip/kdecore/sipkdecorepart2.cpp, sip/kdecore/sipkdecorepart3.cpp, sip/kdecore/sipkdecorepart4.cpp, sip/kdecore/sipkdecorepart5.cpp, sip/kdecore/sipkdecorepart6.cpp, sip/kdecore/sipkdecorepart7.cpp
sip: /usr/share/sip/qt/versions.sip:34: Version is already defined
make[2]: *** [sip/akonadi/sipakonadipart0.cpp] Error 1
make[1]: *** [CMakeFiles/python_module_PyKDE4_akonadi.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
sip: /usr/share/sip/qt/versions.sip:34: Version is already defined
make[2]: *** [sip/dnssd/sipdnssdpart0.cpp] Error 1
make[1]: *** [CMakeFiles/python_module_PyKDE4_dnssd.dir/all] Error 2
Scanning dependencies of target python_module_PyKDE4_kdecore
[ 2%] Building CXX object CMakeFiles/python_module_PyKDE4_kdecore.dir/sip/kdecore/sipkdecorepart0.o
[ 3%] [ 3%] Building CXX object CMakeFiles/python_module_PyKDE4_kdecore.dir/sip/kdecore/sipkdecorepart2.o
Building CXX object CMakeFiles/python_module_PyKDE4_kdecore.dir/sip/kdecore/sipkdecorepart1.o
[ 4%] Building CXX object CMakeFiles/python_module_PyKDE4_kdecore.dir/sip/kdecore/sipkdecorepart3.o
[ 5%] Building CXX object CMakeFiles/python_module_PyKDE4_kdecore.dir/sip/kdecore/sipkdecorepart4.o
/var/tmp/portage/kde-base/pykde4-4.8.1/work/pykde4-4.8.1_build-2.6/sip/kdecore/sipkdecorepart4.cpp: In constructor 'sipKPluginFactory::sipKPluginFactory(const KAboutData*, QObject*)':
/var/tmp/portage/kde-base/pykde4-4.8.1/work/pykde4-4.8.1_build-2.6/sip/kdecore/sipkdecorepart4.cpp:6182: warning: 'KPluginFactory::KPluginFactory(const KAboutData*, QObject*)' is deprecated (declared at /usr/include/kpluginfactory.h:263)
/var/tmp/portage/kde-base/pykde4-4.8.1/work/pykde4-4.8.1_build-2.6/sip/kdecore/sipkdecorepart4.cpp: In constructor 'sipKPluginFactory::sipKPluginFactory(QObject*)':
/var/tmp/portage/kde-base/pykde4-4.8.1/work/pykde4-4.8.1_build-2.6/sip/kdecore/sipkdecorepart4.cpp:6187: warning: 'KPluginFactory::KPluginFactory(QObject*)' is deprecated (declared at /usr/include/kpluginfactory.h:270)
/var/tmp/portage/kde-base/pykde4-4.8.1/work/pykde4-4.8.1/sip/kdecore/kservicetype.sip: In function 'PyObject* convertFrom_QMap_0100QString_0100QVariant_Type(void*, PyObject*)':
/var/tmp/portage/kde-base/pykde4-4.8.1/work/pykde4-4.8.1/sip/kdecore/kservicetype.sip:178: warning: suggest explicit braces to avoid ambiguous 'else'
[ 5%] Building CXX object CMakeFiles/python_module_PyKDE4_kdecore.dir/sip/kdecore/sipkdecorepart5.o
/usr/include/kconfig.h:387: warning: 'virtual const KConfigGroup KConfig::groupImpl(const QByteArray&) const' was hidden
/var/tmp/portage/kde-base/pykde4-4.8.1/work/pykde4-4.8.1_build-2.6/sip/kdecore/sipkdecorepart5.cpp:13158: warning: by 'virtual KConfigGroup sipKDesktopFile::groupImpl(const QByteArray&)'
[ 6%] Building CXX object CMakeFiles/python_module_PyKDE4_kdecore.dir/sip/kdecore/sipkdecorepart6.o
[ 7%] Building CXX object CMakeFiles/python_module_PyKDE4_kdecore.dir/sip/kdecore/sipkdecorepart7.o
/usr/include/kconfiggroup.h:627: warning: 'virtual const KConfigGroup KConfigGroup::groupImpl(const QByteArray&) const' was hidden
/var/tmp/portage/kde-base/pykde4-4.8.1/work/pykde4-4.8.1_build-2.6/sip/kdecore/sipkdecorepart6.cpp:16007: warning: by 'virtual KConfigGroup sipKConfigGroup::groupImpl(const QByteArray&)'
/usr/include/kconfig.h:387: warning: 'virtual const KConfigGroup KConfig::groupImpl(const QByteArray&) const' was hidden
/var/tmp/portage/kde-base/pykde4-4.8.1/work/pykde4-4.8.1_build-2.6/sip/kdecore/sipkdecorepart6.cpp:19515: warning: by 'virtual KConfigGroup sipKConfig::groupImpl(const QByteArray&)'
/var/tmp/portage/kde-base/pykde4-4.8.1/work/pykde4-4.8.1/sip/kdecore/typedefs.sip: In function 'int convertTo_QHash_1800_1800(PyObject*, void**, int*, PyObject*)':
/var/tmp/portage/kde-base/pykde4-4.8.1/work/pykde4-4.8.1/sip/kdecore/typedefs.sip:811: warning: unused variable 'state2'
/var/tmp/portage/kde-base/pykde4-4.8.1/work/pykde4-4.8.1/sip/kdecore/typedefs.sip: In function 'PyObject* convertFrom_QHash_1800_1800(void*, PyObject*)':
/var/tmp/portage/kde-base/pykde4-4.8.1/work/pykde4-4.8.1/sip/kdecore/typedefs.sip:759: warning: suggest explicit braces to avoid ambiguous 'else'
/var/tmp/portage/kde-base/pykde4-4.8.1/work/pykde4-4.8.1/sip/kdecore/typedefs.sip:762: warning: suggest explicit braces to avoid ambiguous 'else'
Linking CXX shared library lib/pykde/kdecore.so
[ 7%] Built target python_module_PyKDE4_kdecore
make: *** [all] Error 2
* ERROR: kde-base/pykde4-4.8.1 failed (compile phase):
* emake failed
*
* If you need support, post the output of 'emerge --info =kde-base/pykde4-4.8.1',
* the complete build log and the output of 'emerge -pqv =kde-base/pykde4-4.8.1'.
* The complete build log is located at '/var/tmp/portage/kde-base/pykde4-4.8.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/kde-base/pykde4-4.8.1/temp/environment'.
* S: '/var/tmp/portage/kde-base/pykde4-4.8.1/work/pykde4-4.8.1'
>>> Failed to emerge kde-base/pykde4-4.8.1, Log file:
>>> '/var/tmp/portage/kde-base/pykde4-4.8.1/temp/build.log'
* Messages for package kde-base/pykde4-4.8.1:
* ERROR: kde-base/pykde4-4.8.1 failed (compile phase):
* emake failed
*
* If you need support, post the output of 'emerge --info =kde-base/pykde4-4.8.1',
* the complete build log and the output of 'emerge -pqv =kde-base/pykde4-4.8.1'.
* The complete build log is located at '/var/tmp/portage/kde-base/pykde4-4.8.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/kde-base/pykde4-4.8.1/temp/environment'.
* S: '/var/tmp/portage/kde-base/pykde4-4.8.1/work/pykde4-4.8.1'
|
Searching around showed me this thread which made me suspect it might be a gcc problem. Upgrading to gcc 4.5.3 didn't solve the problem.
Reinstalling sip didn't make the problem go away either.
Anything else I could try guys?
Last edited by drbergie on Fri May 04, 2012 8:45 pm; edited 1 time in total |
|
| Back to top |
|
 |
yngwin Developer


Joined: 19 Dec 2002 Posts: 4389 Location: Suzhou, China
|
Posted: Fri May 04, 2012 5:53 am Post subject: |
|
|
After your last upgrade of sip, did you do what the ebuild suggests and rebuild/upgrade PyQt4 as well? _________________ "Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF |
|
| Back to top |
|
 |
drbergie n00b

Joined: 22 Nov 2007 Posts: 34
|
Posted: Fri May 04, 2012 6:10 am Post subject: |
|
|
| yngwin wrote: | | After your last upgrade of sip, did you do what the ebuild suggests and rebuild/upgrade PyQt4 as well? |
I already have the latest version of sip. I have also upgraded to the latest version of PyQt4, and I still have this problem. Tried to reinstall both sip and pyqt4 with no change. |
|
| Back to top |
|
 |
drbergie n00b

Joined: 22 Nov 2007 Posts: 34
|
Posted: Fri May 04, 2012 8:45 pm Post subject: |
|
|
I think I cracked it!
Uninstalled sip
| Code: | | emerge --unmerge --verbose dev-python/sip |
Then moved all the bad sip files to somewhere else:
| Code: | | # mv /usr/share/sip/ /root/sip_f_up/ |
emerged sip again, emerged pyqt4 and now I am on 90% error free pykde compiling. One of my older threads that I have revised gave me some clues.
Thanks guys. |
|
| Back to top |
|
 |
|
|
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
|
|