Building LibreOffice 4.1.0.0beta2 with a ccache -z before, I see: ccache -s cache directory /root/.ccache cache hit (direct) 165 cache hit (preprocessed) 23 cache miss 9139 called for link 327 called for preprocessing 98 multiple source files 2 compile failed 14 preprocessor error 7 bad compiler arguments 25 unsupported source language 1 autoconf compile/link 184 unsupported compiler option 1176 no input file 79 files in cache 11433 cache size 9.0 Gbytes max cache size 10.0 Gbytes afterwards, although the cache was populated before. This EasyHack is to run a ccache build with CCACHE_LOGFILE set and to analyse why we cant use the cache (do we have e.g. timestamps in header? etc.)
I built LO from master using ccache. After building with empty ccache (ccache --clear was runned before) cache size is about 2.1 GB. After the second build (make clean was runned before it) I had the same cache size. The same thing was after the third build. The building time is not so pretty as I expected: 1st build ≈ 2 hours, 2nd build ≈ 40 minutes, 3rd build ≈ 40 minutes. I have all logs ccache done using CCACHE_LOGFILE so I can provide you them if you wish. They are pretty heavy (50—100 MB) so it is not a great idea to upload them to Bugzilla I suppose ;-)
Hi Artur, -- actually you cant upload files that big to bugzilla. ;) But the task at hand is really to look for the reasons ccache does cache misses in such a clean rebuild scenario. Maybe you can send suspicous looking part of the log to libreoffice@lists.freedesktop.org ?
Hi Björn. I thought if the cache size remains the same everything is fine :-? The only thing bothering me that clean build takes something about 2 hours and next builds take 40 minutes. Is it normal or builds should take less time? I looked up a log and basically I see “cache hit” messages all around and don’t see anything suspicious. I can send you an email with a second build’s log — it takes 4.5 MB compressed — if it‘ll help. Maybe I’m just missing something.
@Artur: Hmm. Ok, closing this one for now then. I also have _some_ scenarios, were ccache is working fine and others were its not. Seems I need to investigate thoroughly was sets those apart to make those that dont work more reproducable. Thanks for your work on this!
Migrating Whiteboard tags to Keywords: (EasyHack SkillScript DifficultyBeginner) [NinjaEdit]