* [gentoo-user] ccache: unsupported compiler option
@ 2006-08-12 18:59 Justin Findlay
2006-08-12 21:33 ` Dale
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Justin Findlay @ 2006-08-12 18:59 UTC (permalink / raw
To: gentoo-user
I'm trying to find out why ccache won't cache anything. Building and
maintaining for three months an entire system got me all of 5 cache
hits. What can I do to encourace more cache usage? One of the methods
I'm investigating is to determine and eliminate CFLAGS arguments that
may cause 'unsupported compiler option' to be incremented. Is there
anything else I can try?
# ccache -s
cache directory /var/tmp/ccache
cache hit 5
cache miss 153
called for link 14836
multiple source files 87
compile failed 2
preprocessor error 1732
bad compiler arguments 1
not a C/C++ file 4774
autoconf compile/link 28079
unsupported compiler option 2569
no input file 8965
files in cache 306
cache size 4.3 Mbytes
max cache size 2.5 Gbytes
# grep CFLAGS /etc/make.conf
CFLAGS="-march=athlon64 -mtune=athlon64 -m64 -O3 -fmessage-length=0 -pipe"
CXXFLAGS="${CFLAGS}"
Justin
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] ccache: unsupported compiler option
2006-08-12 18:59 [gentoo-user] ccache: unsupported compiler option Justin Findlay
@ 2006-08-12 21:33 ` Dale
2006-08-12 22:18 ` Justin Findlay
2006-08-12 21:49 ` Alexander Kirillov
2006-08-14 4:56 ` [gentoo-user] " Justin Findlay
2 siblings, 1 reply; 7+ messages in thread
From: Dale @ 2006-08-12 21:33 UTC (permalink / raw
To: gentoo-user
Justin Findlay wrote:
> I'm trying to find out why ccache won't cache anything. Building and
> maintaining for three months an entire system got me all of 5 cache
> hits. What can I do to encourace more cache usage? One of the methods
> I'm investigating is to determine and eliminate CFLAGS arguments that
> may cause 'unsupported compiler option' to be incremented. Is there
> anything else I can try?
>
> # ccache -s
> cache directory /var/tmp/ccache
> cache hit 5
> cache miss 153
> called for link 14836
> multiple source files 87
> compile failed 2
> preprocessor error 1732
> bad compiler arguments 1
> not a C/C++ file 4774
> autoconf compile/link 28079
> unsupported compiler option 2569
> no input file 8965
> files in cache 306
> cache size 4.3 Mbytes
> max cache size 2.5 Gbytes
>
> # grep CFLAGS /etc/make.conf
> CFLAGS="-march=athlon64 -mtune=athlon64 -m64 -O3 -fmessage-length=0 -pipe"
> CXXFLAGS="${CFLAGS}"
>
>
> Justin
>
Well, I have been using mine longer than that. I have even done a
emerge -e world a couple times.
> root@smoker / # ccache -s
> cache hit 0
> cache miss 0
> files in cache 0
> cache size 0 Kbytes
> max cache size 768.0 Mbytes
> root@smoker / #
Looks like you are not alone.
Dale
:-) :-)
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] ccache: unsupported compiler option
2006-08-12 18:59 [gentoo-user] ccache: unsupported compiler option Justin Findlay
2006-08-12 21:33 ` Dale
@ 2006-08-12 21:49 ` Alexander Kirillov
2006-08-14 4:56 ` [gentoo-user] " Justin Findlay
2 siblings, 0 replies; 7+ messages in thread
From: Alexander Kirillov @ 2006-08-12 21:49 UTC (permalink / raw
To: gentoo-user
> I'm trying to find out why ccache won't cache anything. Building and
> maintaining for three months an entire system got me all of 5 cache
> hits. What can I do to encourace more cache usage? One of the methods
> I'm investigating is to determine and eliminate CFLAGS arguments that
> may cause 'unsupported compiler option' to be incremented. Is there
> anything else I can try?
>
> # ccache -s
> cache directory /var/tmp/ccache
> cache hit 5
> cache miss 153
> called for link 14836
> multiple source files 87
> compile failed 2
> preprocessor error 1732
> bad compiler arguments 1
> not a C/C++ file 4774
> autoconf compile/link 28079
> unsupported compiler option 2569
> no input file 8965
> files in cache 306
> cache size 4.3 Mbytes
> max cache size 2.5 Gbytes
>
> # grep CFLAGS /etc/make.conf
> CFLAGS="-march=athlon64 -mtune=athlon64 -m64 -O3 -fmessage-length=0 -pipe"
> CXXFLAGS="${CFLAGS}"
Have you tried http://gentoo-wiki.com/Ccache?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] ccache: unsupported compiler option
2006-08-12 21:33 ` Dale
@ 2006-08-12 22:18 ` Justin Findlay
2006-08-12 22:38 ` Dale
0 siblings, 1 reply; 7+ messages in thread
From: Justin Findlay @ 2006-08-12 22:18 UTC (permalink / raw
To: gentoo-user
On Sat, Aug 12, 2006 at 04:33:30PM -0500, Dale wrote:
> root@smoker / # ccache -s
> cache hit 0
> cache miss 0
> files in cache 0
> cache size 0 Kbytes
> max cache size 768.0 Mbytes
> root@smoker / #
Try `CCACHE_DIR="/var/tmp/ccache" ccache -s` and see if you get anything
different.
Justin
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] ccache: unsupported compiler option
2006-08-12 22:18 ` Justin Findlay
@ 2006-08-12 22:38 ` Dale
2006-08-12 23:22 ` Dale
0 siblings, 1 reply; 7+ messages in thread
From: Dale @ 2006-08-12 22:38 UTC (permalink / raw
To: gentoo-user
Justin Findlay wrote:
> On Sat, Aug 12, 2006 at 04:33:30PM -0500, Dale wrote:
>
>> root@smoker / # ccache -s
>> cache hit 0
>> cache miss 0
>> files in cache 0
>> cache size 0 Kbytes
>> max cache size 768.0 Mbytes
>> root@smoker / #
>>
>
> Try `CCACHE_DIR="/var/tmp/ccache" ccache -s` and see if you get anything
> different.
>
>
> Justin
>
Strange.
> root@smoker / # CCACHE_DIR="/var/tmp/ccache" ccache -s
> cache hit 76331
> cache miss 157987
> called for link 16817
> multiple source files 112
> compile failed 5118
> preprocessor error 4269
> bad compiler arguments 2
> not a C/C++ file 6042
> autoconf compile/link 55706
> unsupported compiler option 3205
> no input file 23230
> files in cache 59867
> cache size 872.9 Mbytes
> max cache size 976.6 Mbytes
> root@smoker / #
At least it is working. Now why is it not reporting it with just ccache
-s like it should??
Dale
:-) :-)
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] ccache: unsupported compiler option
2006-08-12 22:38 ` Dale
@ 2006-08-12 23:22 ` Dale
0 siblings, 0 replies; 7+ messages in thread
From: Dale @ 2006-08-12 23:22 UTC (permalink / raw
To: gentoo-user
Dale wrote:
>
> Strange.
> root@smoker / # CCACHE_DIR="/var/tmp/ccache" ccache -s
> cache hit 76331
> cache miss 157987
> called for link 16817
> multiple source files 112
> compile failed 5118
> preprocessor error 4269
> bad compiler arguments 2
> not a C/C++ file 6042
> autoconf compile/link 55706
> unsupported compiler option 3205
> no input file 23230
> files in cache 59867
> cache size 872.9 Mbytes
> max cache size 976.6 Mbytes
> root@smoker / #
>
>
> At least it is working. Now why is it not reporting it with just ccache
> -s like it should??
>
> Dale
>
> :-) :-)
>
This helped:
> echo "CCACHE_DIR=\"/var/tmp/ccache\"" >> /etc/env.d/99local
> env-update && source /etc/profile
Now I get this:
> root@smoker / # ccache -s
> cache hit 76331
> cache miss 157987
> called for link 16817
> multiple source files 112
> compile failed 5118
> preprocessor error 4269
> bad compiler arguments 2
> not a C/C++ file 6042
> autoconf compile/link 55706
> unsupported compiler option 3205
> no input file 23230
> files in cache 59867
> cache size 872.9 Mbytes
> max cache size 976.6 Mbytes
> root@smoker / #
Dale
:-) :-)
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gentoo-user] Re: ccache: unsupported compiler option
2006-08-12 18:59 [gentoo-user] ccache: unsupported compiler option Justin Findlay
2006-08-12 21:33 ` Dale
2006-08-12 21:49 ` Alexander Kirillov
@ 2006-08-14 4:56 ` Justin Findlay
2 siblings, 0 replies; 7+ messages in thread
From: Justin Findlay @ 2006-08-14 4:56 UTC (permalink / raw
To: gentoo-user
While doing some investigating I found over 40000 files in
/var/tmp/ccache named tmp.hash.<hostname>.<number> and
tmp.stderr.<hostname>.<number>. These files seem to be cache files that
are for some reason not being stored in the cache index located at
/var/tmp/ccahce/[0-9a-e]/[0-9a-e]. It seems that ccache is caching data
but not storing it correctly and therefore cannot retrieve it.
Justin
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-08-14 5:01 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-12 18:59 [gentoo-user] ccache: unsupported compiler option Justin Findlay
2006-08-12 21:33 ` Dale
2006-08-12 22:18 ` Justin Findlay
2006-08-12 22:38 ` Dale
2006-08-12 23:22 ` Dale
2006-08-12 21:49 ` Alexander Kirillov
2006-08-14 4:56 ` [gentoo-user] " Justin Findlay
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox