Questions tagged [ccache]

ccache is a compiler cache. It speeds up recompilation by caching previous compilations and detecting when the same compilation is being done again. Supported languages are C, C++, Objective-C and Objective-C++.

The source code is hosted on GitHub:

The home page for the project (with links to documentation and downloads) is:

105 questions
5
votes
1 answer

Reasons to clear ccache or use multiple ccache directories

What are practical reasons for using multiple cache directories or clearing cache altogether when using CCACHE? Help description for Buildroot BR2_CCACHE configuration option says: Note that Buildroot does not try to invalidate the cache contents…
montiainen
  • 125
  • 2
  • 7
4
votes
3 answers

ccache fails with read only

im building android 10 on an ubuntu machine. the source is custom and not googles' specifically. the source is hard-coded for a prebuilt clang to use ccache. i have installed ccache and added to bashrc these…
Brandon Shawhan
  • 43
  • 1
  • 1
  • 5
4
votes
1 answer

How to use ccache to speed up compiling of aosp?

I found the ccache aosp repo here https://android.googlesource.com/toolchain/ccache/, but I have no idea how to use ccache on aosp v10, the official aosp site doesn't have any info abouut ccache anymore, only multiple builds. Does ccache still work…
TechnicGoblin5R
  • 143
  • 1
  • 4
4
votes
1 answer

Using ccache with jenkins pipeline

I'm having trouble getting consistent benefit from ccache in my jenkins pipeline builds. I'm setting CCACHE_BASEDIR to the parent directory of my current build directory (this works out to something like /opt/jenkins/workspace). Given this basedir,…
Mike Ellery
  • 2,054
  • 3
  • 21
  • 30
4
votes
1 answer

Using ccache in automated builds on Docker cloud

I am using automated builds on Docker cloud to compile a C++ app and provide it in an image. Compilation is quite long (range 2-3 hours) and commits on github are frequent (~10 to 30 per day). Is there a way to keep the building cache (using ccache)…
Denis Rouzaud
  • 2,412
  • 2
  • 26
  • 45
4
votes
1 answer

Using ccache with Android Studio 2.3

Does anyone know how to use cacche for NDK build from Android Studio 2.3 ? When I built my Android application from command line, it works fine and all compiled files are cached correctly. ./gradlew assembleDebug $ ps ax | grep…
4
votes
1 answer

clang + icecc + ccache

I'm trying to build with clang + icecc + ccache. But I can't get it to work. I successfully build with gcc + icecc + ccache on the same network. Here are the softs versions : Clang version : Ubuntu clang version 3.2-9 (tags/RELEASE_32/final) (based…
b3nj1
  • 667
  • 1
  • 6
  • 17
3
votes
3 answers

linux build system tool

Our project got pretty big and our build system does not scale anymore. We are doing cross platform development on linux machines. We have too many platforms to build against and even more build options. We believe that we need to upgrade our…
l.thee.a
  • 3,231
  • 6
  • 25
  • 28
3
votes
1 answer

Qmake scons generator

We would like to use scons for building on Windows, mainly because of its caching facilities (we use ccache on Linux, and compiliation is considerably faster there). However, all our projects are defined in qmake .pro files. The way building now…
Janick Bernet
  • 20,544
  • 2
  • 29
  • 55
3
votes
0 answers

Qt, QML and C++: tips to increase compilation speed

I am a Qt developer. I have a very fast Ryzen 3900X and I'm looking for tips to speed up my daily work (faster builds in linux) This is a sample project: full rebuild 24 cores: Elapsed time: 00:38. modify main.cpp: Elapsed time: 00:02. modify…
3
votes
1 answer

Is there a ccache or distcc equivalent for .Net and/or mono

I've been building rather alot of c# on linux and windows recently, not much of which changes between builds bit it all still takes forever. When using gcc and g++ I'd get a huge speed benefit from using ccache and to a lesser extent distcc. Are…
IanNorton
  • 7,145
  • 2
  • 25
  • 28
3
votes
0 answers

ccache failed to create temp files in /var/cache/ccache/ , permission denied. On Gentoo Linux

System Info: OS : Gentoo Linux x86_64 Kernel : Linux 5.4.38 CPU : Intel core i7-7820HQ RAM : 16GiB CC : GCC 9.3.0 This problem always happens when I install the emerge software. My ccache directory is mounted on /dev/sda2, which…
UEForce
  • 71
  • 1
  • 5
3
votes
1 answer

No hits in GitLab CI for ccache

ccache has zero cache hits in GitLab CI, even when sources don't change and the cache is persisted. Furthermore, the cache increases in size every time a build runs, which means it is being rebuilt over and over.
Riuo
  • 413
  • 1
  • 3
  • 15
3
votes
1 answer

Issue building OpenCV with ccache and CUDA

Trying to build OpenCV 3.3.1 with CUDA support, using ccache: Ubuntu 16.04 LTS OpenCV 3.3.1 CUDA 8.0 CCACHE 3.2.4 Make fails for .cu files, giving error: /usr/bin/ccache: invalid option -- 'E' Usage: ccache [options] ... I've added the…
zindarod
  • 6,328
  • 3
  • 30
  • 58
3
votes
0 answers

ccache and precompiled header

I'm using precompiled header and CCACHE to speed up my compilation (GCC 5.3.1) The two works separatly (I have a speed up x2 for precompiled, and x25 for CCACHE on second run), but I have trouble to make them work together (I have only cache miss…
flod
  • 235
  • 4
  • 12