ccache - ccache - 所有文件都是“无输入文件”
问题描述
我正在使用我这样编译的 ccache 版本 3.7.4: ccache compiler [compiler options]但它似乎不起作用
cache hit (direct) 0
cache hit (preprocessed) 0
cache miss 0
cache hit rate 0.00 %
no input file 20
cleanups performed 0
files in cache 0
cache size 0.0 kB
max cache size 5.0 GB
唯一增加的字段是每个编译文件的“无输入文件”,来自 ccache 帮助页面,这意味着没有为编译器指定输入文件,这对我来说并不清楚。
ccache.conf 看起来像这样:
max_size = 5G
cache_dir = /local/ccache
temporary_dir = /tmp/ccache
umask = 002
direct_mode = true
我错过了什么?
编辑:发现我可以通过设置 CCACHE_LOGFILE 看到更多的调试。现在我看到每个文件的调试行:
File.cpp is not a regular file, not considering as input file
No input file found
Failed; falling back to running the real compiler
运行:stat File.cpp 文件:`File.cpp' 大小:14924 块:32 IO 块:1048576常规文件
解决方案
推荐阅读
- jekyll - Jekyll 4.1.1 为站点模板中的帖子提供解析错误
- firebase - Nuxt js + Firebase 错误无法读取未定义的属性“应用程序”
- javascript - 如何计算围绕其角旋转的矩形的边界框?
- documentation - 微服务的数据流文档
- github - ETIMEDOUT - 在 Github Actions CI 期间安装 husky
- react-native - RN:滑动回到不同的屏幕
- r - 为多个变量按组提取最大值对应的行
- css - 如何用css制作多边形
- javascript - React - 在初始加载时,我的状态数组只保存最后一个元素
- android - 重启后重新安排警报