After installing the package mingw-w64-i686-ccache from the shell opened via mingw32_shell.bat, I tried compiling something using cmake / ninja / gcc, which results in following command (output of ninja -v):
ccache C:\msys32\mingw32\bin\cc.exe ...
It compiled well and ccache created folders 0-f, tmp and the ccache.conf in its cache folder, but no cache files were created and the output of ccache -s shows no difference at all:
cache hit (direct) 0
cache hit (preprocessed) 0
cache miss 0
files in cache 0
cache size 0.0 kB
max cache size 5.0 GB
Is there anything else to do to get ccache working in this scenario?
I see the same behavior. I've enabled the logs, and it seems the problem has to do with the path encodings, because ccache seems unable to work with its own cache directory. See this log excerpt:
Last edit: Mario Emmenlauer 2016-04-01
Is this a ccache issue or an MSYS2 issue? Anyone wiling to comment?