Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 324061

Summary: kde-base/kdelibs-4.4.4 seems to need cmake-2.8.1 for proper compilation
Product: Gentoo Linux Reporter: Andreas K. Hüttel <dilfridge>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal CC: esigra, grubba, Oliver, tomka, vincent
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 313999    
Attachments: emerge kdelibs-4-4-4 with cmake-2.6.4-r3

Description Andreas K. Hüttel archtester gentoo-dev 2010-06-15 07:20:31 UTC
From bug 314775 comment 11:
Upgrading to KDE 4.4.4 was a bit tricky. First I had to update cmake from the
current stable version 2.6.4 to unstable 2.8.1 because kdelibs stopped emerging
each time it tried to link /usr/lib/libkio.so.
Comment 1 Thomas Kahle (RETIRED) gentoo-dev 2010-06-15 10:03:13 UTC
Can't reproduce this here on x86. Could you post emerge --info please.
Comment 2 Oliver Schwabedissen 2010-06-15 18:33:34 UTC
(In reply to comment #1)
> Can't reproduce this here on x86. Could you post emerge --info please.

Hello, went back to cmake-2.6.4-r3 and was able to reproduce it. 

Found the hint to update cmake first here: http://bugs.gentoo.org/show_bug.cgi?id=321757#c17

emerge --info:

Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.10.1-r1, 2.6.32-gentoo-r7 i686)
=================================================================
System uname: Linux-2.6.32-gentoo-r7-i686-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-1.12.13
Timestamp of tree: Mon, 14 Jun 2010 23:00:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.2-r3
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -fno-delete-null-pointer-checks -fwrapv"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -fno-delete-null-pointer-checks -fwrapv"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LC_ALL="POSIX"
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
MAKEOPTS="-j5"
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="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi alsa apache2 apm arts artswrappersuid asf aspell audiofile bash-completion binary-drivers branding bzip2 cairo caps cdparanoia cdr chm clamav cli consolekit cracklib crypt css ctype cups cxx dbm dbus dmi doc dri dts dvd dvdnav dvdr dvdread emacs embedded emboss encode esd exif expat extrafilters extras fam fbcon ffmpeg firefox flac fontconfig foomaticdb fortran ftp gcj gd gdbm gif gimp glitz glut gmp gnutls gocr gphoto2 gpm graphviz gs gstreamer gtk hal hddtemp iconv icq id3 idn ieee1394 imagemagick imap imlib inotify jadetex java javascript jpeg jpeg2k kde kdehiddenvisibility kipi kpathsea lame lastfm lcms libnotify lm_sensors logitech-mouse logrotate logwatch lzo mad mbox mikmod mime mjpeg mmx mmxext mng modules moneyplex mono motif mp3 mp4 mpeg mpeg2 mplayer msn mudflap musicbrainz mysql mysqli ncurses nls npp nptl nptlonly nsplugin ocrad offensive ogg ole openexr opengl openmp oss pam pango pcre pda pdf perl plasma pmu png posix ppds pppd print python pyzord qt3support qt4 quicktime raster razor rdesktop readline reflection rtc samba sasl scanner sdl semantic-desktop sensord session sharedmem slang smp snmp sockets sox spell spl sql sqlite3 sse sse2 ssl startup-notification svg sysfs syslog tcl tcpd tidy tiff tk toolbar tools truetype udev unicode usb userlocales v4l v4l2 vcd vim-syntax vim-with-x visualization vorbis webkit win32codecs wxwindows x264 x86 xcb xcomposite xft xine xinetd xml xorg xosd xpm xscreensaver xulrunner xv xvid xvmc 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev vga v4l v4l2" 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, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

I'll attach the emerge log, too.
Comment 3 Oliver Schwabedissen 2010-06-15 18:36:16 UTC
Created attachment 235453 [details]
emerge kdelibs-4-4-4 with cmake-2.6.4-r3
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2010-06-15 18:51:40 UTC
(In reply to comment #2)
> Found the hint to update cmake first here:
> http://bugs.gentoo.org/show_bug.cgi?id=321757#c17

That's what happens if one does a wild, out-of-the-blue guess how to improve things... ;)

Most of the kde devs run likely cmake 2.8.x already, so the combination new kde / old cmake is probably completely untested.
Comment 5 Vicente Olivert Riera (RETIRED) gentoo-dev 2010-06-15 21:18:33 UTC
I have kde-4.4.4 and cmake-2.6.4-r3, and I don't have any problem. The compilation was fine. I'm on amd64.
Comment 6 Maciej Mrozowski gentoo-dev 2010-06-22 12:39:32 UTC
I doubt it's CMake issue, -Wl,--fatal-warnings is appended in FindKDE4Internal.cmake, which is provided by kdelibs.
Comment 7 Melendro 2010-06-25 20:52:59 UTC
I'm having a similar issue (in amd64):

kapplication.cpp:(.text+0x1289): undefined reference to `IceSetIOErrorHandler'           
CMakeFiles/kdeui.dir/kernel/kapplication.o: In function `KApplication::~KApplication()': 
kapplication.cpp:(.text+0x1549): undefined reference to `IceSetIOErrorHandler'           
CMakeFiles/kdeui.dir/kernel/kapplication.o: In function `KApplication::~KApplication()': 
kapplication.cpp:(.text+0x1649): undefined reference to `IceSetIOErrorHandler'           
CMakeFiles/kdeui.dir/kernel/kapplication.o: In function `KApplication::enableSessionManagement()':                                                                                
kapplication.cpp:(.text+0x6b3): undefined reference to `IceFlush'                        
collect2: ld returned 1 exit status                                                      

Googling for this error I found that it is also a CMAKE problem.
Comment 8 Melendro 2010-06-25 21:00:27 UTC
Arghhh... Compiling kdelibs again WITHOUT ANY CHANGE went fine.

I'm not very convinced now that my error is related to cmake, I'm thinking now in a ccache or parallel build issue.
Comment 9 Tomáš Chvátal (RETIRED) gentoo-dev 2010-06-27 15:36:43 UTC
(In reply to comment #8)
> Arghhh... Compiling kdelibs again WITHOUT ANY CHANGE went fine.
> 
> I'm not very convinced now that my error is related to cmake, I'm thinking now
> in a ccache or parallel build issue.
> 

probably the ccache.
It is lately really dangerous thing to have enabled.
Comment 10 Oliver Schwabedissen 2010-06-27 20:36:46 UTC
As you can see from my emerge --info I have ccache installed, but disabled. Still kdelibs-4.4.4 did not compile using cmake-2.6.4. Tried it several times, only succeeded with cmake-2.8.1.
Comment 11 Bob Johnson 2010-06-29 18:09:17 UTC

(In reply to comment #0)
> From bug 314775 comment 11:
> Upgrading to KDE 4.4.4 was a bit tricky. First I had to update cmake from the
> current stable version 2.6.4 to unstable 2.8.1 because kdelibs stopped emerging
> each time it tried to link /usr/lib/libkio.so.
> 

My 4.4.4 upgrade also failed with kdelibs trying to link libkio. On my x86 system cmake is the stable 2.6.4. In my case I determined the problem was obsolete /lib/*.a archives hanging around, as described in this forum post:
http://forums.gentoo.org/viewtopic-t-831815-highlight-creating+createing+dttextrel+object.html

Deleting the *.a files from /lib solved it. Not saying that's the fix for this bug, just something to check...

Comment 12 scecchetti 2010-07-01 11:12:49 UTC
(In reply to comment #11)
> 
> (In reply to comment #0)
> > From bug 314775 comment 11:
> > Upgrading to KDE 4.4.4 was a bit tricky. First I had to update cmake from the
> > current stable version 2.6.4 to unstable 2.8.1 because kdelibs stopped emerging
> > each time it tried to link /usr/lib/libkio.so.
> > 
> 
> My 4.4.4 upgrade also failed with kdelibs trying to link libkio. On my x86
> system cmake is the stable 2.6.4. In my case I determined the problem was
> obsolete /lib/*.a archives hanging around, as described in this forum post:
> http://forums.gentoo.org/viewtopic-t-831815-highlight-creating+createing+dttextrel+object.html
> 
> Deleting the *.a files from /lib solved it. Not saying that's the fix for this
> bug, just something to check...
> 

I had the same issue, but deleting the /lib/*.a files and cleaning the ccache worked with cmake-2.6.4-r3.
Comment 13 Budro 2010-07-03 05:09:53 UTC
Just a data point for this bug and contradict info in comment #10 and comment #11.   I'm running x86 so using cmake-2.6.4-r3

I just wiped all my kde-4.3.5 packages to upgrade to kde-4.4.4 due to all the blockage.  Third attempt and kdelibs-4.4.4 was failing around 50% way through the build on libkio.  I tried removing the libacl.a and .la files from /lib which broke the build even worse ( something was definitely pointing at /lib/libacl.a )  just rebuilt sys-apps/acl and now kdelibs-4.4.4 built AOK.

For giggles, I looked and found that libacl.a and .la are only under /usr/lib/ and do not exist in /lib/.
Comment 14 bugs 2010-07-26 21:51:10 UTC
Ran into this as well.  Tried rebuilding acl first as someone suggested, with no success.
Adding ~x86 to cmake in order to get 2.8.1 solved.

Perhaps cmake needs bumping to 2.8 officially.
Comment 15 Andreas K. Hüttel archtester gentoo-dev 2010-08-22 15:04:23 UTC
Resolving this since cmake-2.8 is now stable on most kde-relevant arches