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"
you probably need to clear out ccache's cache and try this again. this sort of thing does tend to happen with ccache
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?
Attempt with kdepim 3.3/3.4 and reopen if occurs...