Hi, I think there's a bug within portage that makes usage of ccache with portage difficult. It's about these lines in /usr/lib/portage/bin/ebuild.sh (ll. 125) : #We can enable compiler cache support export PATH="/usr/bin/ccache:${PATH}" if [ ! -z "${CCACHE_DIR}" ] then CCACHE_DIR=/root/.ccache fi addread ${CCACHE_DIR} addwrite ${CCACHE_DIR} Should the "if[ ! -z ..." statement mean "if[ -z ... " to ensure that if there's no ccache path set, then set a default. Cause when you install ccache, no CCACHE_DIR will be set, which leads to the impossibility to specify an own path as well as leaving CCACHE_DIR unset.
*** Bug 5376 has been marked as a duplicate of this bug. ***
yep, this has been fixed in my working version. Will be fixed in 2.0.16