LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   ccache 0.0kB cache size (https://www.linuxquestions.org/questions/slackware-14/ccache-0-0kb-cache-size-4175667699/)

unInstance 01-14-2020 10:49 AM

ccache 0.0kB cache size
 
My setup:
  • SlackWare current 5.4.11
  • ccache 3.7.6

cache -s output:
Code:

cache directory                    /home/uninstance/.ccache
primary config                      /home/uninstance/.ccache/ccache.conf
secondary config      (readonly)    /etc/ccache.conf
stats updated                      Wed Jan  8 09:45:19 2020
cache hit (direct)                    0
cache hit (preprocessed)              0
cache miss                            0
cache hit rate                      0.00 %
called for link                        7
couldn't find the compiler            1
no input file                        29
cleanups performed                    0
files in cache                        0
cache size                          0.0 kB
max cache size                      10.0 GB

Problem: As you can see symlinks work and max cache size is appropriate but actual cache size is 0.

sevendogsbsd 01-14-2020 10:57 AM

Not sure how ccache works in Slackware but in FreeBSD, you have to tell whatever is building the software that ccache is present and where the cache is. Is there another configuration (make.conf?) you have to set?

unInstance 01-14-2020 11:07 AM

Quote:

Originally Posted by sevendogsbsd (Post 6078307)
Not sure how ccache works in Slackware but in FreeBSD, you have to tell whatever is building the software that ccache is present and where the cache is. Is there another configuration (make.conf?) you have to set?

It is not system dependent. There are two ways to use ccache, you either prepend compiler commands with ccache or create symlinks.

sevendogsbsd 01-14-2020 11:35 AM

Understood, what I meant was that on FreeBSD, I have to tell the builder (in my case poudrier) that ccache is present and where the cache is. I have no idea how it is done in Linux.

unInstance 01-15-2020 04:58 PM

Quote:

Originally Posted by sevendogsbsd (Post 6078326)
Understood, what I meant was that on FreeBSD, I have to tell the builder (in my case poudrier) that ccache is present and where the cache is. I have no idea how it is done in Linux.

This is a building system that prepends compiler commands that you use with ccache if you ask it to. Or it you can create symlinks so that you do not have to tell your build system to use ccache.

unInstance 03-26-2020 03:49 PM

I screwed with symlinks. Solved.


All times are GMT -5. The time now is 08:43 PM.