Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53445 - compiling kde-base/kdelibs-3.2.2-r1 failed.
Summary: compiling kde-base/kdelibs-3.2.2-r1 failed.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-09 13:30 UTC by dario
Modified: 2005-07-15 07:55 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dario 2004-06-09 13:30:40 UTC
I get this error while trying to emerge kdelibs-3.2.2-r1. It seems that it search for a lib of gcc-3.2, while I'm using gcc-3.3


/bin/sh ../../libtool --silent --mode=link --tag=CXX g++  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -fsigned-char -mpowerpc-gfxopt -fno-strict-aliasing -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION    -o libartskde.la -rpath /usr/kde/3.2/lib -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.2/lib  -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -version-info 3:0:2 artskde.lo kioinputstream_impl.lo kplayobject.lo kplayobjectfactory.lo kartsfloatwatch.lo kartsdispatcher.lo kaudiorecordstream.lo kaudioplaystream.lo kartsserver.lo kdatarequest_impl.lo kaudioconverter.lo kvideowidget.lo kplayobjectcreator.lo kaudiomanagerplay.lo ../../kio/libkio.la -lqtmcop -lsoundserver_idl
grep: /usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.2.3/libstdc++.la: No such file or directory
/bin/sed: can't read /usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.2.3/libstdc++.la: No such file or directory
libtool: link: `/usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.2.3/libstdc++.la' is not a valid libtool archive
make[3]: *** [libartskde.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.2.2-r1/work/kdelibs-3.2.2/arts/kde'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.2.2-r1/work/kdelibs-3.2.2/arts'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.2.2-r1/work/kdelibs-3.2.2'
make: *** [all] Error 2

!!! ERROR: kde-base/kdelibs-3.2.2-r1 failed.
!!! Function kde_src_compile, Line 129, Exitcode 2
!!! died running emake, kde_src_compile:make


Reproducible: Always
Steps to Reproduce:
1.emerge kde-base/kdelibs-3.2.2-r1
2.
3.




ortage 2.0.50-r8 (default-ppc-2004.1, gcc-3.3.3, glibc-2.3.3.20040420-r0,
2.6.6-pegasos)
=================================================================
System uname: 2.6.6-pegasos ppc 7457, altivec supported
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -fsigned-char
-mpowerpc-gfxopt -fno-strict-aliasing"
CHOST="powerpc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -fsigned-char
-mpowerpc-gfxopt -fno-strict-aliasing"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache"
GENTOO_MIRRORS="ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aalib alsa altivec apache2 arts berkdb cdr cups divx4linux dvd encode esd
evo foomaticdb gdbm gif gnome gnome-libs gpm gtk gtk2 icq imlib java javascript
jpeg kde libwww mitshm motif mozilla moznocompose moznoirc moznomail moznoxft
mpeg ncurses nls oggvorbis opengl oss pam perl png ppc python qt quicktime
readline sdl slang ssl tcltk tcpd tiff truetype vi video_cards_radeon wmf xmms
xv xvid zlib"
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2004-06-09 13:55:27 UTC
not a kde bug - borked installation problem - reassigning.
Comment 2 M. Creidieki Crouch 2005-01-15 18:50:21 UTC
I'm having the same problem while compiling kde-base/kdelibs-3.3.2-r2.

It seems to be looking for gcc-3.3.4, even when I have gcc-3.3.5 installed.

I've noticed that "cat /proc/version" returns
"Linux version 2.6.9-gentoo-r1 (root@creidieki) (gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)) #1 Sun Nov 14 16:33:51 EST 2004"

Is this part of the problem?

The error message is:

"
grep: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory
/bin/sed: can't read /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory
libtool: link: `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la' is not a valid libtool archive
make[4]: *** [kspell_aspell.la] Error 1
"

and my emerge info is:

"
"Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r1 i686)
=================================================================
System uname: 2.6.9-gentoo-r1 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib aim alsa apm arts artswrappersuid artworkextra audiofile avi bash-completion bdf berkdb bitmap-fonts bootsplash canna cdb cddb cdparanoia cdr cjk cpdflib crypt css cups directfb divx4linux dvd emacs encode esd f77 fam fbcon flac font-server foomaticdb fortran freetype freewnn ftp gdbm gif glut gnome gpm gstreamer gtk gtk2 guile imagemagick imlib ipv6 java jpeg kde kdexdeltas kerberos leim libg++ libwww mad mikmod mmx mng motif mozilla mp3 mpeg mplayer music mysql mysqli ncurses nls offensive oggvorbis opengl oscar oss pdflib perl png ppds print python qt quicktime readline sdl shared sharedmem slang sndfile sounds spell ssl svg svga tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb videos wmf x86 xine xinerama xml xml2 xmms xprint xscreensaver xv xvid zlib"
"
Comment 3 Karl Steddom 2005-01-20 08:17:12 UTC
Try re-emerging gnuconfig.
I had the same error with a couple of other packages during a emerge --emptytree world. I noticed the last thing emerged before each crash was sys-devel/gnuconfig-20040214. I had set portage to build packages, deleted all previously built packages, and included a -k in my emerge to start over where I had left off follwing another unrelated crash. After several attempts, I cleared the packages and started from scratch again. Now everything is building fine. If that doesn't fix it, try over from scratch with emerge --emptytree world
Comment 4 Karl Steddom 2005-01-21 08:37:16 UTC
use "/sbin/fix_libtool_files.sh <old gcc version>"
in my case this was "/sbin/fix_libtool_files.sh 3.3.4" The script updated links and everything started working again.
Comment 5 Frank Lomax 2005-01-26 08:20:22 UTC
I had the same problem on several boxes.  Karl's suggestion of re-emerging gnuconfig didn't work, but his second suggestion about running fix-libtool-files did work.  At least emerge kdelibs is running much farther than it did before (and still running).
Comment 6 Erik Jahn 2005-02-11 05:57:19 UTC
I have same problem with 3.2.2.-r2. I did things suggested here (ran /sbin/fix_libtool_files.sh 3.3.4, it looked like it fixed something, BTW i have gcc-3.3.5) and ran emerge again. Things didn't change. I have gnuconfig up to date.
USE:x86 alsa arts crypt gnome gpm gtk gtk2 ncurses opengl python perl pam qt ssl oss sdl mbox maildir usb X kde


Comment 7 Mark Loeser (RETIRED) gentoo-dev 2005-02-11 15:26:10 UTC
Erik:  Please post the exact error you get and the output of `emerge info'.
Comment 8 Erik Jahn 2005-02-14 04:27:08 UTC
OK Mark, thanks for a reply. Here is info requested:
Compile error:
grep: /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory
/bin/sed: can't read /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory
libtool: link: `/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/libstdc++.la' is not a valid libtool archive
make[4]: *** [kspell_aspell.la] Error 1
make[4]: Leaving directory `/var/tmp/portage/kdelibs-3.3.2-r2/work/kdelibs-3.3.2/kspell2/plugins/aspell'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.3.2-r2/work/kdelibs-3.3.2/kspell2/plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.3.2-r2/work/kdelibs-3.3.2/kspell2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.3.2-r2/work/kdelibs-3.3.2'
make: *** [all] Error 2

emerge info
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.4.26-gentoo-r9 i686)
=================================================================
System uname: 2.4.26-gentoo-r9 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 11 2005, 09:36:29)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r5
sys-devel/automake:  1.8.5-r1
sys-devel/binutils:  2.14.90.0.8-r1
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="cs_CZ"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups encode esd f77 fam font-server foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib ipv6 java jpeg kde ldap libg++ libwww mad maildir mbox mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts usb x86 xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 9 Erik Jahn 2005-02-14 07:00:00 UTC
oops, i didn't notice that this bug is reported as PPC hw problem but i'm on x86 system. My apologies... Nevertheless, it exists on my system ;-)
Comment 10 Rami Ojares 2005-03-10 23:41:16 UTC
I have the same bug and /fix_libtool_files.sh trick does not work.
This is kind of annoying because it breaks the whole kde.
Comment 11 Mark Loeser (RETIRED) gentoo-dev 2005-03-11 00:12:59 UTC
Erik: fix_libtool_files.sh 3.3.4 --oldarch i386-pc-linux-gnu

Rami: `emerge info' please.
Comment 12 Rami Ojares 2005-03-12 03:04:22 UTC
I did 'emerge -eav kde' after doing /sbin/fix_libtool_files.sh 3.3.4

I waited 24 h

This time kdelibs compiled BUT later DirectFB (that was a dependency
for kde) gave the same error which I have been seeing on this list.

Then I tried fix_libtool_files.sh 3.3.4 --oldarch i386-pc-linux-gnu

Now DirectFB was compiled BUT at kdemultimedia I get

libtool: link: cannot find the library `/usr/lib/libmusicbrainz.la'
make[3]: *** [juk] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdemultimedia-3.3.2/work/kdemultimedia-3.3.2/juk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdemultimedia-3.3.2/work/kdemultimedia-3.3.2/juk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdemultimedia-3.3.2/work/kdemultimedia-3.3.2'
make: *** [all] Error 2

Here the reason was that for some reason musicbrainz is not
a dependency of kdemultimedia even though it is needed.
(This issue has of course nothing to do with this bug thread)

so 'emerge musicbrainz'

and kdemultimedia compiles!

Now it is only 5 packages until the whole kde is emerged.
I keep my fingers crossed.

Finally 'emerge info'

Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 11 2005, 12:21:48)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts audiofile avi berkdb bitmap-fonts cdparanoia crypt cups curl directfb dvb dvd emboss encode fam flac font-server foomaticdb fortran gdbm gif gpm gtk gtk2 imlib ipv6 java jpeg kde kdeenablefinal kdexdeltas kerberos ldap libg++ libwww lirc mad mikmod motif mp3 mpeg mysql ncurses nls oggvorbis opengl pam pdflib perl png python qt quicktime readline samba sdl spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts xine xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 13 Erik Jahn 2005-05-26 04:04:40 UTC
Mark: GREAT! the suggestion fix_libtool_files.sh 3.3.4 --oldarch i386-pc-linux-gnu
really solved the problem. Thanks a lot! 

Erik
Comment 14 Caleb Tennis (RETIRED) gentoo-dev 2005-07-15 07:55:20 UTC
fixed