LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-14-2020, 11:49 AM   #1
unInstance
Member
 
Registered: Jan 2020
Distribution: Slackware/FreeBSD
Posts: 47

Rep: Reputation: 8
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.
 
Old 01-14-2020, 11:57 AM   #2
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Posts: 1,211

Rep: Reputation: 466Reputation: 466Reputation: 466Reputation: 466Reputation: 466
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?
 
Old 01-14-2020, 12:07 PM   #3
unInstance
Member
 
Registered: Jan 2020
Distribution: Slackware/FreeBSD
Posts: 47

Original Poster
Rep: Reputation: 8
Quote:
Originally Posted by sevendogsbsd View Post
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.
 
Old 01-14-2020, 12:35 PM   #4
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Posts: 1,211

Rep: Reputation: 466Reputation: 466Reputation: 466Reputation: 466Reputation: 466
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.
 
Old 01-15-2020, 05:58 PM   #5
unInstance
Member
 
Registered: Jan 2020
Distribution: Slackware/FreeBSD
Posts: 47

Original Poster
Rep: Reputation: 8
Quote:
Originally Posted by sevendogsbsd View Post
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.
 
  


Reply

Tags
cache


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove Folders Recursively that contain *.mp3 files size 0KB or jpeg only. Drigo Linux - Newbie 1 07-15-2009 01:37 AM
ccache RudraB Programming 3 08-11-2008 04:10 AM
CCACHE and acpid issues vatten Linux - Newbie 0 10-28-2007 06:05 PM
ccache, precompiled headers & C++ - Doesn't work as well as imagined ripat Programming 0 02-20-2005 03:24 PM
0kb cache pentium m shadowhunter Linux - Laptop and Netbook 5 12-04-2003 05:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration