Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pykde4-4.6.0 fails to build
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 328
Location: Switzerland

PostPosted: Thu Jan 27, 2011 4:19 pm    Post subject: pykde4-4.6.0 fails to build Reply with quote

Hi,

I'm using the KDE testing overlay, and I tried to install KDE SC 4.6.0. The compilation failed while trying to emerge pykde4. The same error occured with version 4.5.95 a few days ago, so I thought I'd wait for the final 4.6.0. PyQt4 (4.8.2) is installed. I've searched the forums but I didn't find a solution. Does anyone know how to solve this? Thanks in advance

Code:

...
[ 76%] Building CXX object python/pykde4/CMakeFiles/python_module_PyKDE4_phonon.dir/sip/phonon/sipphononpart6.o
Dans le fichier inclus à partir de /usr/include/python2.6/Python.h:8,
          à partir de /usr/include/python2.6/sip.h:32,
          à partir de /var/tmp/portage/kde-base/pykde4-4.6.0/work/pykde4-4.6.0_build/python/pykde4/sip/phonon/sipAPIphonon.h:11,
          à partir de /var/tmp/portage/kde-base/pykde4-4.6.0/work/pykde4-4.6.0_build/python/pykde4/sip/phonon/sipphononpart6.cpp:7:
/usr/include/python2.6/pyconfig.h:1079:1: attention : « _XOPEN_SOURCE » redéfini
<command-line>: attention : ceci est la localisation d'une précédente définition
[ 77%] Building CXX object python/pykde4/CMakeFiles/python_module_PyKDE4_phonon.dir/sip/phonon/sipphononpart7.o
Dans le fichier inclus à partir de /usr/include/python2.6/Python.h:8,
          à partir de /usr/include/python2.6/sip.h:32,
          à partir de /var/tmp/portage/kde-base/pykde4-4.6.0/work/pykde4-4.6.0_build/python/pykde4/sip/phonon/sipAPIphonon.h:11,
          à partir de /var/tmp/portage/kde-base/pykde4-4.6.0/work/pykde4-4.6.0_build/python/pykde4/sip/phonon/sipphononpart7.cpp:7:
/usr/include/python2.6/pyconfig.h:1079:1: attention : « _XOPEN_SOURCE » redéfini
<command-line>: attention : ceci est la localisation d'une précédente définition
Linking CXX shared library ../../lib/pykde/phonon.so
[ 77%] Built target python_module_PyKDE4_phonon
make: *** [all] Erreur 2
emake failed
 * ERROR: kde-base/pykde4-4.6.0 failed:
 *   Make failed!
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 6637:  Called kde4-meta_src_compile
 *   environment, line 3941:  Called kde4-base_src_compile
 *   environment, line 3575:  Called cmake-utils_src_compile
 *   environment, line 1753:  Called _execute_optionaly 'src_compile'
 *   environment, line  707:  Called enable_cmake-utils_src_compile
 *   environment, line 2130:  Called cmake-utils_src_make
 *   environment, line 1772:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "Make failed!";
 *
 * If you need support, post the output of 'emerge --info =kde-base/pykde4-4.6.0',
 * the complete build log and the output of 'emerge -pqv =kde-base/pykde4-4.6.0'.
 * The complete build log is located at '/var/tmp/portage/kde-base/pykde4-4.6.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/kde-base/pykde4-4.6.0/temp/environment'.
 * S: '/var/tmp/portage/kde-base/pykde4-4.6.0/work/pykde4-4.6.0'

_________________
Prayer can change the world!
Back to top
View user's profile Send private message
rtomek
Apprentice
Apprentice


Joined: 05 Jan 2007
Posts: 210
Location: Chicago

PostPosted: Thu Jan 27, 2011 4:57 pm    Post subject: Reply with quote

try using python 2.7 instead of 2.6
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 328
Location: Switzerland

PostPosted: Fri Jan 28, 2011 10:16 am    Post subject: Reply with quote

Same thing happens:

Code:

...
[ 77%] Building CXX object python/pykde4/CMakeFiles/python_module_PyKDE4_phonon.dir/sip/phonon/sipphononpart7.o
Dans le fichier inclus à partir de /usr/include/python2.7/Python.h:8,
          à partir de /usr/include/python2.7/sip.h:32,
          à partir de /var/tmp/portage/kde-base/pykde4-4.6.0/work/pykde4-4.6.0_build/python/pykde4/sip/phonon/sipAPIphonon.h:11,
          à partir de /var/tmp/portage/kde-base/pykde4-4.6.0/work/pykde4-4.6.0_build/python/pykde4/sip/phonon/sipphononpart7.cpp:7:
/usr/include/python2.7/pyconfig.h:1177:1: attention : « _XOPEN_SOURCE » redéfini
<command-line>: attention : ceci est la localisation d'une précédente définition
Linking CXX shared library ../../lib/pykde/phonon.so
[ 77%] Built target python_module_PyKDE4_phonon
make: *** [all] Erreur 2
emake failed
 * ERROR: kde-base/pykde4-4.6.0 failed:
 *   Make failed!
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 6637:  Called kde4-meta_src_compile
 *   environment, line 3941:  Called kde4-base_src_compile
 *   environment, line 3575:  Called cmake-utils_src_compile
 *   environment, line 1753:  Called _execute_optionaly 'src_compile'
 *   environment, line  707:  Called enable_cmake-utils_src_compile
 *   environment, line 2130:  Called cmake-utils_src_make
 *   environment, line 1772:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "Make failed!";
 *
 * If you need support, post the output of 'emerge --info =kde-base/pykde4-4.6.0',
 * the complete build log and the output of 'emerge -pqv =kde-base/pykde4-4.6.0'.
 * The complete build log is located at '/var/tmp/portage/kde-base/pykde4-4.6.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/kde-base/pykde4-4.6.0/temp/environment'.
 * S: '/var/tmp/portage/kde-base/pykde4-4.6.0/work/pykde4-4.6.0'

_________________
Prayer can change the world!
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2584
Location: userland

PostPosted: Fri Jan 28, 2011 10:31 am    Post subject: Reply with quote

Try to upgrade sip and pyqt4 to the latest versions, if you haven't already done so.
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 328
Location: Switzerland

PostPosted: Fri Jan 28, 2011 10:55 am    Post subject: Reply with quote

I already have these. It's a fresh install, everything shiny and new
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2584
Location: userland

PostPosted: Fri Jan 28, 2011 11:15 am    Post subject: Reply with quote

keba wrote:
I already have these. It's a fresh install, everything shiny and new

Btw I mean the unstable versions, not the stable ones.
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 328
Location: Switzerland

PostPosted: Fri Jan 28, 2011 11:19 am    Post subject: Reply with quote

I have those...
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri Jan 28, 2011 2:59 pm    Post subject: Reply with quote

post your CFLAGS/CXXFLAGS and LDFLAGS

and try to re-emerge those above mentioned packages with sane flags
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 328
Location: Switzerland

PostPosted: Fri Jan 28, 2011 3:49 pm    Post subject: Reply with quote

Here are the Cflags and Cxxflags
Code:

CFLAGS="-O2 -march=pentium3m -pipe"
CXXFLAGS="${CFLAGS}"


And below the output of emerge --info
Code:

Portage 2.2.0_alpha19 (default/linux/x86/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-tuxonice-r4 i686)
=================================================================
System uname: Linux-2.6.36-tuxonice-r4-i686-Intel-R-_Pentium-R-_M_processor_1.86GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 28 Jan 2011 13:45:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r1, 2.7.1, 3.1.3
dev-util/cmake:      2.8.3-r1
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.8
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
Repositories: gentoo
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=pentium3m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo http://gentoo.mirror.solnet.ch ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LANG="fr_CH.utf8"
LC_ALL="fr_CH.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB fr de"
MAKEOPTS="-j2"
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"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 7zip X a52 aac acl acpi alsa audiofile berkdb bluetooth bzip2 cairo cddb cdr cjk cli cracklib crypt css cups cxx dbus dga dhcp directfb dri dts dvd dvdr dvdread encode exif ffmpeg firefox flac fortran ftp gdbm gif gimp glitz gnokii gpm gstreamer gtk hdaps htmlhandbook iconv icq imagemagick imlib ipod ipv6 irc java javascript jpeg jpeg2k kde lame laptop mad mmx mng modules mp3 mpeg msn mudflap ncurses networkmanager nls nptl nptlonly nsplugin ogg openexr opengl openmp pam pcmcia pcre pdf perl php plasma pmu png pppd python qt4 quicktime raw readline samba savage semantic-desktop session speex spell sse ssh ssl svg sysfs szip taglib tcpd theora tiff truetype unicode usb vcd vorbis webkit wifi win32codecs wlm wma wmf x264 x86 xcomposite xine xml xorg xosd xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 cgi cgid 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB fr de ar he" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="savage" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

_________________
Prayer can change the world!
Back to top
View user's profile Send private message
Manko10
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2010
Posts: 105

PostPosted: Fri Jan 28, 2011 3:54 pm    Post subject: Reply with quote

I had the same problem, so I had to build KDE without python and cups USE flag. However, the issue seems to be fixed in current trunk. Update your working copy of the KDE overlay and try again.
Looks as if this patch was missing: https://bugs.gentoo.org/show_bug.cgi?id=349668
_________________
Refining Linux Advent calendar series 2010: “24 Short Linux Hints
Back to top
View user's profile Send private message
Herring42
Guru
Guru


Joined: 10 Mar 2004
Posts: 373
Location: Buckinghamshire

PostPosted: Fri Jan 28, 2011 4:35 pm    Post subject: Reply with quote

I also had this problem. Emerging sip-4.9999 again pulled in the changes, and PyQt4 emerged just fine :-)
_________________
"The problem with quotes on the internet is that it is difficult
to determine whether or not they are genuine." -- Abraham Lincoln
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 328
Location: Switzerland

PostPosted: Fri Jan 28, 2011 5:05 pm    Post subject: Reply with quote

I don't think this patch is in the tree yet. Or in the KDE overlay. It doesn't tell me that it's applying any patch. And it still crashes during compilation. So how do you apply this patch downloaded from bugs.gentoo.org? Or do I just have to wait a few more hours?
_________________
Prayer can change the world!
Back to top
View user's profile Send private message
Manko10
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2010
Posts: 105

PostPosted: Fri Jan 28, 2011 5:30 pm    Post subject: Reply with quote

Have you run
Code:
layman -S
?
_________________
Refining Linux Advent calendar series 2010: “24 Short Linux Hints
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 328
Location: Switzerland

PostPosted: Fri Jan 28, 2011 6:06 pm    Post subject: Reply with quote

yes of course
_________________
Prayer can change the world!
Back to top
View user's profile Send private message
Manko10
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2010
Posts: 105

PostPosted: Fri Jan 28, 2011 7:43 pm    Post subject: Reply with quote

I had the exact same error and after emerging =dev-python/sip-4.12.1 and latest PyQt4, I was able to emerge pykde4 from today's trunk without any problems.
_________________
Refining Linux Advent calendar series 2010: “24 Short Linux Hints
Back to top
View user's profile Send private message
marsark
n00b
n00b


Joined: 29 Sep 2008
Posts: 33

PostPosted: Sun Jan 30, 2011 10:41 pm    Post subject: Reply with quote

I have this issue too. Pykde4 compilation fails. I have latest PyQt4 4.8.3 and sip 4.12.1 from Portage and pykde4 4.6.9999 from overlay.
Back to top
View user's profile Send private message
Finswimmer
Moderator
Moderator


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Wed Feb 02, 2011 9:48 pm    Post subject: Reply with quote

/var/tmp/portage/kde-base/pykde4-4.6.0/work/pykde4-4.6.0_build/Makefile does not have any install target:
Code:
$grep install Makefile
# Prepare targets for installation.
preinstall: all
        $(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall
# Prepare targets for installation.
preinstall/fast:
        $(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall/fast
# Target rules for targets named uninstall
uninstall: cmake_check_build_system
        $(MAKE) -f CMakeFiles/Makefile2 uninstall
.PHONY : uninstall
uninstall/fast:
        $(MAKE) -f CMakeFiles/uninstall.dir/build.make CMakeFiles/uninstall.dir/build
.PHONY : uninstall/fast
        @echo "... uninstall"

_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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