Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52872 - emerge (kdepim) fails with ccache
Summary: emerge (kdepim) fails with ccache
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Holzer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-03 04:57 UTC by Tamas Hauer
Modified: 2005-07-01 07:31 UTC (History)
2 users (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 Tamas Hauer 2004-06-03 04:57:26 UTC
First, this might not be related to kdepim at all.  At some point (after emerging most of kde for example) I installed ccache and switched it on.  Then emerge choked on kdepim:

make[3]: Entering directory `/var/tmp/portage/kdepim-3.2.2/work/kdepim-3.2.2/ksync/src'
/usr/qt/3/bin/moc ./ksyncview.h -o ksyncview.moc
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../ksync/lib -I../../libkcal -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT -D_FILE_OFFSET_BITS=64  -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 -O3 -march=athlon-xp -fomit-frame-pointer -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  -c -o ksyncview.o ksyncview.cpp
/usr/qt/3/bin/moc ./ksync.h -o ksync.moc
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../ksync/lib -I../../libkcal -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT -D_FILE_OFFSET_BITS=64  -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 -O3 -march=athlon-xp -fomit-frame-pointer -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  -c -o ksync.o ksync.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../ksync/lib -I../../libkcal -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT -D_FILE_OFFSET_BITS=64  -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 -O3 -march=athlon-xp -fomit-frame-pointer -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  -c -o main.o main.cpp
/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 -O3 -march=athlon-xp -fomit-frame-pointer -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 ksync -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.2/lib  -R /usr/kde/3.2/lib -R /usr/qt/3/lib -R /usr/X11R6/lib ksyncview.o ksync.o main.o ../lib/libksync.la -lkio
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld:ksyncview.o: file format not recognized; treating as linker script
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld:ksyncview.o:1: syntax error
collect2: ld returned 1 exit status
make[3]: *** [ksync] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdepim-3.2.2/work/kdepim-3.2.2/ksync/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdepim-3.2.2/work/kdepim-3.2.2/ksync'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdepim-3.2.2/work/kdepim-3.2.2'
make: *** [all] Error 2

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

I could not get past this until I unmerged ccache.  Switching ccache off in /etc/make.conf did not help.  After unmerging ccache, kdepim emerged.


Reproducible: Didn't try
Steps to Reproduce:
1. Follow the steps of the handbook installing gentoo from scratch using stage1
2. Emerge kde dependencies up to (excluding kdepim)
3. emerge ccache
4. turn on ccache in /etc/make.conf
5. emerge kdepim

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


Expected Results:  
emerge kdepim

tux etc # emerge info
Portage 2.0.50-r7 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-01)
=================================================================
System uname: 2.6.5-01 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-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/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://gentoo.tiscali.nl/gentoo/ http://ftp.caliu.info/pub/gentoo/
http://gentoo.inode.at/"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X afs alsa arts avi berkdb cdr crypt cups dvd encode foomaticdb gdbm gif
gpm gtk2 icq imagemagick imap imlib ipv6 java jpeg kde kerberos krb4 libg++
libwww mad mikmod motif mozilla mpeg msn mysql ncurses nls oggvorbis opengl oss
pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcltk
tcpd truetype x86 xml xml2 xmms xv zlib"

tux etc # cat make.conf
# These settings were set by the catalyst build script that automatically built
this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j1"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://gentoo.tiscali.nl/gentoo/ http://ftp.caliu.info/pub/gentoo/
http://gentoo.inode.at/"
USE="-apm -gtk -gnome afs dvd alsa cdr imap mozilla java imagemagick imlib ipv6
kerberos krb4 msn icq mysql ssl tcltk xml xml2"
#FEATURES="ccache"
#CCACHE_SIZE="2G"
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2004-06-03 09:37:14 UTC
you probably need to clear out ccache's cache and try this again. this sort of thing does tend to happen with ccache
Comment 2 CJ Kucera 2004-10-22 07:22:30 UTC
Just an FYI, it turns out I was experiencing the same thing with kdemultimedia in bug #68408 - I wonder what it is with ccache that makes it so ornery around KDE packages?
Comment 3 Brian Harring (RETIRED) gentoo-dev 2005-07-01 07:31:15 UTC
Attempt with kdepim 3.3/3.4 and reopen if occurs...