[ccache] Issues using ccache
mbp at canonical.com
Thu Jan 20 11:44:31 MST 2011
On 20 January 2011 11:20, NITIN KHOSLA, BLOOMBERG/ 731 LEXIN
<nkhosla1 at bloomberg.net> wrote:
> I am using first time. I have read documentation but not found my answers.
> Simple command: ccache gcc -o 1.o 1.c
> ccache -V
> ccache version 3.1.4
> a) Ran first time and then second time. What called for link means?
> called for link 1
> called for link 2
> It should find it from cache second time. It did not.
> cache hit (direct) 0
> cache miss 0
Linking is when the toolchain assembles the object files into an
executable.  ccache doesn't cache these.
Your command line is wrong; you need a -c option too, otherwise you're
writing an executable into a .o file.
> b) I created a ccache log file(log below is same for exactly same above mentioned gcc command called multiple times). :
> [2011-01-20T12:01:14.788191 10060] Hostname: sun15
> [2011-01-20T12:01:14.788261 10060] Working directory: /home/nkhosla
> [2011-01-20T12:01:14.788969 10060] No -c option found
> [2011-01-20T12:01:14.789013 10060] Failed; falling back to running the real comp
> [2011-01-20T12:01:14.789038 10060] Executing /opt/swt/bin/gcc -o 1.o 1.c
> [2011-01-20T12:01:14.790973 10060] Acquired lock /home/nkhosla/.ccache/a/stats.l
> [2011-01-20T12:01:14.798012 10060] Releasing lock /home/nkhosla/.ccache/a/stats.
> [2011-01-20T12:01:14.798080 10060] Unlink /home/nkhosla/.ccache/a/stats.lock (as
> [2011-01-20T12:01:14.798677 10060] Result: called for link
> c) Running with solaris compiler (CC) somewhere calls ccfe. And for that, ccache says
> "unsupported source language 1"
I don't know if it works with Solaris cc.
More information about the ccache