[ccache] Old code ccache hit always come back unless CCACHE_DISABLE is used
joel at rosdahl.net
Wed May 30 11:53:31 MDT 2012
On 30 May 2012 09:14, <g.esp at free.fr> wrote:
> I had in the past an issue compiling util-linux-2.18 lscpu that was worked around adding '-fPIE -pie' to CFLAGS.
> The issue is that now with any new and fixed util-linux package, this workaround can't be removed or old compilation issue come back, unless CCACHE_DISABLE is used.
> What should allow ccache not to retrieve the old hit that fail?
As can be seen in no-fPIE.log, ccache doesn't get any cache hit, so it
isn't related to false cache hits.
My guess is that when you compile without "-fPIE -pie", the compiler
can't compile its own preprocessed output. If this is the case,
setting CCACHE_CPP2=1 should make it work.
More information about the ccache