Recently I upgraded gcc to gcc-4.1.1 from gcc-4.0.3 and cleared out the ccache cache believing that cached compiler data across different compiler versions would be useless. However after doing an 'emerge -e world', there's nothing in the cache. I'm inclined to blame a specific unsupported CFLAG, but the ccache statistics don't indicate anything like that. What would cause ccache to not cache any compiler data?
# ccache -s cache directory /var/tmp/ccache cache hit 0 cache miss 163 called for link 12870 multiple source files 69 compile failed 1 preprocessor error 1222 bad compiler arguments 2 not a C/C++ file 3763 autoconf compile/link 17491 unsupported compiler option 5237 no input file 12830 files in cache 326 cache size 2.2 Mbytes max cache size 2.5 Gbytes # emerge --info | grep amd64 Portage 2.1.1_pre1-r1 (default-linux/amd64/2006.0/no-multilib, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17 x86_64) ACCEPT_KEYWORDS="amd64 ~amd64" # emerge --info | grep CFLAGS CFLAGS="-march=athlon64 -m64 -O3 -fmessage-length=0 -pipe" Justin -- gentoo-user@gentoo.org mailing list