Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267835 - Setting CC="ccache cc" does not work
Summary: Setting CC="ccache cc" does not work
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 267837 267839 267840 267842 267844 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-29 06:42 UTC by Maciej Piechotka
Modified: 2012-02-02 17:03 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 Maciej Piechotka 2009-04-29 06:42:53 UTC
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/sys-apps/gawk-3.1.6/work/gawk-3.1.6/test'
make[1]: Leaving directory `/var/tmp/portage/sys-apps/gawk-3.1.6/work/gawk-3.1.6'
make -j2 CC=ccache cc 
make: *** No rule to make target `cc'.  Stop.

Portage 2.1.6.11 (hardened/linux/x86, gcc-4.3.3, glibc-2.8_p20080602-r1, 2.6.28-hardened-r7 i686)
=================================================================
System uname: Linux-2.6.28-hardened-r7-i686-Intel-R-_Pentium-R-_4_CPU_2.60GHz-with-glibc2.1.3
Timestamp of tree: Tue, 28 Apr 2009 20:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.4.4-r13, 2.5.4-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium4 -pipe -mfpmath=sse -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-Os -march=pentium4 -pipe -mfpmath=sse -pipe -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.lagis.at/ http://gentoo.inode.at/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl atm avahi berkdb caps cgi cli cracklib crypt cups dbus dri fastcgi gdbm hardened iconv ipv6 isdnlog mdnsresponder-compat midi mmx mudflap nat ncurses nptl nptlonly openmp pam pcre perl php pic postgres pppd python readline reflection session sharedmem spl sse sse2 ssl tcpd unicode urandom webdav x86 xattr xorg 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt intel     mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage      siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware         voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-29 07:18:58 UTC
Please attach your /etc/make.conf file and explain how you set up ccache.
Comment 2 Maciej Piechotka 2009-04-29 07:22:23 UTC
(In reply to comment #1)
> Please attach your /etc/make.conf file and explain how you set up ccache.
> 

CCACHE_SIZE="5G"
CFLAGS="-Os -march=pentium4 -pipe -mfpmath=sse -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
FEATURES="ccache"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.lagis.at/ http://gentoo.inode.at/"
MAKEOPTS="-j2"
#SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl atm avahi
     caps cgi cups
     dbus
     fastcgi
     gdbm
     ipv6
     mdnsresponder-compat mmx
     nat
     openmp
     pcre php postgres python
     sharedmem sse sse2
     unicode
     webdav
     xattr"
Comment 3 Rafał Mużyło 2009-04-29 11:20:25 UTC
Looks, like that was not enough.
Add the output of printenv.
The problem here is that somewhere you've set
CC to "ccache cc" and all of your recent bugs are dupes of this problem.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2009-04-29 12:52:41 UTC
*** Bug 267837 has been marked as a duplicate of this bug. ***
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2009-04-29 12:52:56 UTC
*** Bug 267839 has been marked as a duplicate of this bug. ***
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2009-04-29 12:53:09 UTC
*** Bug 267840 has been marked as a duplicate of this bug. ***
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2009-04-29 12:54:57 UTC
*** Bug 267842 has been marked as a duplicate of this bug. ***
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2009-04-29 12:58:34 UTC
Looks like CC is set (incorrectly) in the environment. If you can prove this isn't the case and that perhaps sys-apps/portage is to blame, please provide more information and then reopen this bug report.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2009-04-29 12:59:37 UTC
To explain the Summary change - *most* build systems out there cannot handle a CC variable containing multiple words and will explain exactly as you described in this bug report and its duplicates.
Comment 10 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-29 13:37:45 UTC
*** Bug 267844 has been marked as a duplicate of this bug. ***
Comment 11 Maciej Piechotka 2009-04-29 16:26:22 UTC
Yes - you are right - I had set ccache in my .bashrc for my own use. I thought it is a problem with ebuilds (not all of them failed) - so I created several bugs (it was during rebuild so I wasn't surprised very much - only 'normal'). Sorry for trouble.