Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275560 - emerge kde-base/pykde4 fails
Summary: emerge kde-base/pykde4 fails
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL: http://hal9000.lingoprogrammer.com/bu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-27 00:43 UTC by stu
Modified: 2009-12-15 02:18 UTC (History)
3 users (show)

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


Attachments
/var/tmp/portage/kde-base/pykde4-4.2.4-r2/temp/build.log (build.log,99.76 KB, text/plain)
2009-06-27 00:45 UTC, stu
Details
One or more of these helped finally get pykde4-4.3.3 install. (oneofthese.txt,2.82 KB, text/plain)
2009-11-29 21:01 UTC, Decibels
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stu 2009-06-27 00:43:24 UTC
emerge kde-base/pykde4 fails to compile on my machine.

Just trying to get kde4.2 compiled.

Reproducible: Always
Comment 1 stu 2009-06-27 00:45:33 UTC
Created attachment 195843 [details]
/var/tmp/portage/kde-base/pykde4-4.2.4-r2/temp/build.log

/var/tmp/portage/kde-base/pykde4-4.2.4-r2/temp/build.log
Comment 2 stu 2009-06-27 07:34:29 UTC
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Extreme_CPU_X9650_@_3.00GHz-with-glibc2.2.5
Timestamp of tree: Sat, 27 Jun 2009 07:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -msse4.1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe -msse4.1"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 avahi berkdb bzip2 cdr cli cracklib crypt dbus dri dvdr fortran gdbm gif gnome gpm gtk hal iconv isdnlog jpeg midi mmx mp3 mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl png pppd python readline reflection session spl sse sse2 ssl sysfs tcpd tiff unicode xcomposite xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2009-06-27 08:51:37 UTC
Recompile pyqt4 sip and then try again please.
Comment 4 Karsten 2009-08-24 21:08:42 UTC
I have the same problem with 4.3.0

And yes, I tried to recompile pyqt4 and sip.

I also tried emerge -1av --nodeps kdelibs as recommended here: http://forums.gentoo.org/viewtopic-t-787506-highlight-pykde4.html

Log:


[ 32%] Building CXX object python/pykde4/CMakeFiles/python_module_PyKDE4_khtml.dir/sip/khtml/sipkhtmlpart6.o
Building CXX object python/pykde4/CMakeFiles/python_module_PyKDE4_khtml.dir/sip/khtml/sipkhtmlpart7.o
In Datei, eingefügt von /usr/include/python2.6/Python.h:8,
                 von /usr/include/python2.6/sip.h:28,
                 von /var/tmp/portage/kde-base/pykde4-4.3.0/work/pykde4-4.3.0_build/python/pykde4/sip/khtml/sipAPIkhtml.h:11,
                 von /var/tmp/portage/kde-base/pykde4-4.3.0/work/pykde4-4.3.0_build/python/pykde4/sip/khtml/sipkhtmlpart5.cpp:7:
/usr/include/python2.6/pyconfig.h:1028:1: Warnung: »_XOPEN_SOURCE« redefiniert
<Kommandozeile>: Warnung: dies ist die Stelle der vorherigen Definition
/usr/include/dom/dom2_traversal.h:195: Warnung: »virtual DOM::NodeFilter& DOM::NodeFilter::operator=(const DOM::NodeFilter&)« war versteckt
sipkhtmlpart5.cpp:1479: Warnung:   von »sipDOM_NodeFilter& sipDOM_NodeFilter::operator=(const sipDOM_NodeFilter&)«
In Datei, eingefügt von /usr/include/python2.6/Python.h:8,
                 von /usr/include/python2.6/sip.h:28,
                 von /var/tmp/portage/kde-base/pykde4-4.3.0/work/pykde4-4.3.0_build/python/pykde4/sip/khtml/sipAPIkhtml.h:11,
                 von /var/tmp/portage/kde-base/pykde4-4.3.0/work/pykde4-4.3.0_build/python/pykde4/sip/khtml/sipkhtmlpart6.cpp:7:
/usr/include/python2.6/pyconfig.h:1028:1: Warnung: »_XOPEN_SOURCE« redefiniert
<Kommandozeile>: Warnung: dies ist die Stelle der vorherigen Definition
In Datei, eingefügt von /usr/include/python2.6/Python.h:8,
                 von /usr/include/python2.6/sip.h:28,
                 von /var/tmp/portage/kde-base/pykde4-4.3.0/work/pykde4-4.3.0_build/python/pykde4/sip/khtml/sipAPIkhtml.h:11,
                 von /var/tmp/portage/kde-base/pykde4-4.3.0/work/pykde4-4.3.0_build/python/pykde4/sip/khtml/sipkhtmlpart7.cpp:7:
/usr/include/python2.6/pyconfig.h:1028:1: Warnung: »_XOPEN_SOURCE« redefiniert
<Kommandozeile>: Warnung: dies ist die Stelle der vorherigen Definition
Linking CXX shared library ../../lib/pykde/khtml.so
CMakeFiles/python_module_PyKDE4_khtml.dir/sip/khtml/sipkhtmlpart0.o: In function `meth_KHTMLSettings_adviceToStr':
sipkhtmlpart0.cpp:(.text+0x171aa): undefined reference to `PyUnicodeUCS2_DecodeASCII'
collect2: ld gab 1 als Ende-Status zurück
make[2]: *** [lib/pykde/khtml.so] Fehler 1
make[1]: *** [python/pykde4/CMakeFiles/python_module_PyKDE4_khtml.dir/all] Fehler 2
CMakeFiles/python_module_PyKDE4_kdeui.dir/sip/kdeui/sipkdeuipart0.o: In function `meth_NETRootInfo_wmName':
sipkdeuipart0.cpp:(.text+0x284a2): undefined reference to `PyUnicodeUCS2_DecodeASCII'
CMakeFiles/python_module_PyKDE4_kdeui.dir/sip/kdeui/sipkdeuipart0.o: In function `meth_NETRootInfo_desktopName':
sipkdeuipart0.cpp:(.text+0x29c72): undefined reference to `PyUnicodeUCS2_DecodeASCII'
CMakeFiles/python_module_PyKDE4_kdeui.dir/sip/kdeui/sipkdeuipart0.o: In function `meth_NETWinInfo_windowRole':
sipkdeuipart0.cpp:(.text+0x2a612): undefined reference to `PyUnicodeUCS2_DecodeASCII'
CMakeFiles/python_module_PyKDE4_kdeui.dir/sip/kdeui/sipkdeuipart0.o: In function `meth_NETWinInfo_windowClassName':
sipkdeuipart0.cpp:(.text+0x2a6e2): undefined reference to `PyUnicodeUCS2_DecodeASCII'
CMakeFiles/python_module_PyKDE4_kdeui.dir/sip/kdeui/sipkdeuipart0.o: In function `meth_NETWinInfo_windowClassClass':
sipkdeuipart0.cpp:(.text+0x2a7b2): undefined reference to `PyUnicodeUCS2_DecodeASCII'
CMakeFiles/python_module_PyKDE4_kdeui.dir/sip/kdeui/sipkdeuipart0.o:sipkdeuipart0.cpp:(.text+0x2a882): more undefined references to `PyUnicodeUCS2_DecodeASCII' follow
collect2: ld gab 1 als Ende-Status zurück
make[2]: *** [lib/pykde/kdeui.so] Fehler 1
make[1]: *** [python/pykde4/CMakeFiles/python_module_PyKDE4_kdeui.dir/all] Fehler 2
make: *** [all] Fehler 2
 * 
 * ERROR: kde-base/pykde4-4.3.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4582:  Called kde4-meta_src_compile
 *             environment, line 3188:  Called kde4-base_src_compile
 *             environment, line 2880:  Called cmake-utils_src_compile
 *             environment, line 1094:  Called cmake-utils_src_make
 *             environment, line 1174:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "Make failed!";
 *  The die message:
 *   Make failed!
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/kde-base/pykde4-4.3.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/kde-base/pykde4-4.3.0/temp/environment'.
 * 

>>> Failed to emerge kde-base/pykde4-4.3.0, Log file:
Comment 5 Rafał Mużyło 2009-11-08 16:02:03 UTC
CMakeFiles/python_module_PyKDE4_khtml.dir/sip/khtml/sipkhtmlpart0.o: In
function `meth_KHTMLSettings_adviceToStr':
sipkhtmlpart0.cpp:(.text+0x171aa): undefined reference to
`PyUnicodeUCS2_DecodeASCII'
collect2: ld gab 1 als Ende-Status zurück

Seeing that Gentoo builds python by default as ucs4, 
paste 'emerge -1pv python'. Perhaps python-updater may help,
if that's the case (see a very old ChangeLog entry in the tree).
Comment 6 Kyle Evans 2009-11-28 16:13:31 UTC
I've had this same problem on pykde-4.3.1 & 4.3.3. python-updater fixed it. Initially, however, python-updater would not do anything when executed. I had to 'emerge "<python-2.6"' before it would run the update process. Not sure how I got in that situation, but everything seems to be happy now.
Comment 7 Decibels 2009-11-29 18:03:51 UTC
Having the same issue on amd64 with pykde-4.3.1 & 4.3.3. Python-updater didn't help, neither did remerging sip, PyQt4, bunch of qt packages like qt-core,...
In the process of updating the system to kde-4.3.3 right now. Will let you know.
Comment 8 Decibels 2009-11-29 21:01:21 UTC
Created attachment 211539 [details]
One or more of these helped finally get pykde4-4.3.3 install.
Comment 9 Rafał Mużyło 2009-12-05 04:13:18 UTC
@comment 6: did you check 'python-updater --help' ?
It was simply a matter of '-o <current python version>'
Comment 10 Andreas Sturmlechner gentoo-dev 2009-12-15 01:26:45 UTC
*bump*

Summary should probably be changed to "[kde] kde-base/pykde4 does not build" as those issues should be solved in arch or hadn't anything to do with pykde4 in the first place.

There are build issues with pykde4 in any version above 4.3.75:

sipAPIakonadi.h and sipakonadipart2.cpp both include nonexistent header file.

sip # grep -r kmime . 
./akonadi/sipAPIakonadi.h:#include <akonadi/kmime/messagemodel.h> 
./akonadi/sipAPIakonadi.h:#include <akonadi/kmime/messagethreaderproxymodel.h> 
./akonadi/sipAPIakonadi.h:#include <akonadi/kmime/addressattribute.h> 
./akonadi/sipAPIakonadi.h:#include <akonadi/kmime/messagefolderattribute.h> 
./akonadi/sipAPIakonadi.h:#include <akonadi/kmime/messagethreadingattribute.h> 
./akonadi/sipAPIakonadi.h:#include <akonadi/kmime/messageparts.h> 
./akonadi/sipAPIakonadi.h:#include <akonadi/kmime/messagemodel.h> 
./akonadi/sipAPIakonadi.h:#include <akonadi/kmime/messagethreaderproxymodel.h> 
./akonadi/sipakonadipart2.cpp:#include <akonadi/kmime/messagethreaderproxymodel.h> 
./akonadi/sipakonadipart2.cpp:#include <akonadi/kmime/messagemodel.h> 
./akonadi/sipakonadipart2.cpp:#include <akonadi/kmime/messagefolderattribute.h> 
./akonadi/sipakonadipart2.cpp:#include <akonadi/kmime/addressattribute.h> 
./akonadi/sipakonadipart1.cpp:#include <akonadi/kmime/messagethreadingattribute.h> 
./akonadi/sipakonadipart0.cpp:#include <akonadi/kmime/addressattribute.h>

The whole kmime directory is missing, locally as well as in the KDE online repository: http://websvn.kde.org/tags/KDE/4.3.80/kdebindings/python/pykde4/sip/akonadi/

Which results in multiple files (preprocessorbase.sip, agentfilterproxymodel.sip) refusing to compile, finally ending with:
make[2]: *** [python/pykde4/CMakeFiles/python_module_PyKDE4_akonadi.dir/sip/akonadi/sipakonadipart0.o] Error 1
make[2]: *** Waiting for unfinished jobs...

There are probably other issues of that kind as well.
Comment 11 stu 2009-12-15 02:18:31 UTC
moved on to kde4.3 closing bug