Upgraded from portage 2.0.51.19 to portage 2.0.51.22-r2. Ccache no longer works even though FEATURES="ccache" is set, /root/.ccache exists and 'ccache -s' prints ccache statistics. Emerge never populates the ccache with new files and the stats remain at 0 for cache hits and misses. This has been reproduced on at least three machines. Reproducible: Always Steps to Reproduce: 1. upgrade to portage 2.0.51.22-r2 2. clear ccache stats (ccache -z) 3. check ccache stats (ccache -s) 4. emerge some application (I used 'bar') 5. check ccache stats (ccache -s) Actual Results: No changes to ccache stats. Expected Results: Ccache hits or misses should have incremented. I set CCACHE_LOGFILE and noticed several things in the logfile that may be related. Here's a snippet: No input file found No input file found No input file found No -c option found for conftest.c No -c option found for conftest.c got cached result for conftest.o got cached result for conftest.o got cached result for conftest.o compile of conftest.o gave status = 1 got cached result for conftest.o No -c option found for conftest.c No -c option found for conftest.c No -c option found for conftest.c No -c option found for conftest.c No -c option found for conftest.c No -c option found for conftest.c got cached result for conftest.o compile of conftest.o gave status = 1
ccache dir is in /var/tmp/ccache if you don't set CCACHE_DIR in make.conf