n22 ~ # echo $CC ccache gcc n22 ~ # grep -i CC /etc/make.conf FEATURES="ccache" CCACHE_SIZE="2.5G" n22 ~ # emerge -au world These are the packages that I would merge, in order: Calculating world dependencies ...done! [ebuild N ] sys-apps/sysvinit-2.86 [ebuild U ] sys-apps/baselayout-1.11.12-r4 [1.9.4-r6] Do you want me to merge these packages? [Yes/No] >>> emerge (1 of 2) sys-apps/sysvinit-2.86 to / >>> md5 files ;-) sysvinit-2.85-r1.ebuild >>> md5 files ;-) sysvinit-2.86.ebuild >>> md5 files ;-) ChangeLog >>> md5 files ;-) metadata.xml >>> md5 files ;-) files/digest-sysvinit-2.85-r1 >>> md5 files ;-) files/sysvinit-2.86-docs.patch >>> md5 files ;-) files/sysvinit-2.86-shutdown-usage.patch >>> md5 files ;-) files/2.86-selinux.patch >>> md5 files ;-) files/sysvinit-2.85-selinux.patch >>> md5 files ;-) files/2.86-gentoo.patch >>> md5 files ;-) files/digest-sysvinit-2.86 >>> md5 files ;-) files/inittab >>> md5 src_uri ;-) sysvinit-2.86.tar.gz >>> md5 src_uri ;-) sysvinit-2.86-kexec.patch >>> Unpacking source... >>> Unpacking sysvinit-2.86.tar.gz to /var/tmp/portage/sysvinit-2.86/work * Applying sysvinit-2.86-docs.patch ... [ ok ] * Applying sysvinit-2.86-shutdown-usage.patch ... [ ok ] * Applying sysvinit-2.86-kexec.patch ... [ ok ] * Applying 2.86-gentoo.patch ... [ ok ] >>> Source unpacked. make: Entering directory `/var/tmp/portage/sysvinit-2.86/work/sysvinit-2.86/src' make: *** No rule to make target `gcc'. Stop. make: Leaving directory `/var/tmp/portage/sysvinit-2.86/work/sysvinit-2.86/src' !!! ERROR: sys-apps/sysvinit-2.86 failed. !!! Function src_compile, Line 46, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. export CC='ccache gcc' in /etc/profile 2. emerge failed 3. unset CC at the command line 4. emerge works Expected Results: unset CC, then emerge works n22 ~ # emerge info Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-hardened-r13 i686) ================================================================= System uname: 2.6.11-hardened-r13 i686 Intel(R) Pentium(R) M processor 1700MHz Gentoo Base System version 1.6.12 Python: dev-lang/python-2.3.5 [2.3.5 (#1, May 6 2005, 16:34:26)] ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] 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.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium3 -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=pentium3 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://mir1.ovh.net/gentoo-distfiles/" LINGUAS="de en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X acpi aim alsa apache2 arts avi berkdb bitmap-fonts blas cardbus cddb cdparanoia cdr crypt cups curl dvd dvdr dvdread emboss encode esd ethereal fam font-server foomaticdb fortran gd gdbm gif gpm gtk gtk2 imagemagick imlib innodb ipv6 jai java javascript jimi jpeg junit kde libg++ libwww live mad mbox mikmod mmx mmxext mng motif mp3 mpeg mysql nagios-dns nagios-ntp nagios-ping nagios-s ncurses network nls no-old-linux ogg oggvorbis opengl oss pam pcmcia pdflib perl png python qt quicktime readline real samba sasl scanner sdl slp smime snmp spell sse sse2 ssl subversion svg svga tcltk tcpd tiff truetype truetype-fonts type1-fonts usb userlocales vorbis webdav wifi xanim xfs xine xml2 xmms xv zlib linguas_de linguas_en userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
dont set your CC like that
After the installation of the base systems I immediately installed ccache and used it since that time without any problem until now - and in the meantime there are ~ 3000 files in /var/log/portage. That's why IMHO it is not unlikely that the problem is related rather to the ebuild of the specific package than to the system configuration (which is very straight forward). Sorry, but your answer is not very helpful and don't give any hint what's wrong and/or how this problem can be avoided. BTW setting CC to 'ccache gcc' can be read at http://ccache.samba.org/ . Reopend for a - possible - solution.
the entire point of FEATURES=ccache is so that you dont screw around with CC
Ok, but would be nice if this behaviour is included in the doc, because portage is not the main cause for the existance of the user root. If portage cannot handle correctly this environment variable - which is used by the user root for a lot of different things - then either portage should unset CC in its sandbox or - as I said before - this is a point for the doc, isn't it ?
Here is a 2nd example where this CC settings produces trouble: bug #94255