LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 911|回复: 5

为什么我的ccache是disabled的?[解决]

[复制链接]
发表于 2007-4-13 23:06:36 | 显示全部楼层 |阅读模式
部分emerge --info

  1. Portage 2.1.2.3 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.20-gentoo x86_64)
  2. =================================================================
  3. System uname: 2.6.20-gentoo x86_64 AMD Athlon(tm) 64 Processor 2800+
  4. Gentoo Base System release 1.12.10
  5. Timestamp of tree: Sat, 07 Apr 2007 01:47:01 +0000
  6. [color=#FF0000]ccache version 2.4 [disabled][/color]
  7. dev-java/java-config: 1.3.7, 2.0.31-r5
  8. dev-lang/python:     2.4.4
  9. dev-python/pycrypto: 2.0.1-r5
复制代码


部分make.conf

  1. FEATURES="sandbox ccache"
  2. CCACHE_DIR="/var/tmp/ccache/"
  3. CCACHE_SIZE="2G"
  4. LINGUAS="zh_CN"
复制代码


普通用户执行ccache -s

  1. cache directory                     /home/frank/.ccache
  2. cache hit                              0
  3. cache miss                             0
  4. files in cache                         0
  5. cache size                             0 Kbytes
  6. max cache size                     976.6 Mbytes
复制代码


普通用户执行CCACHE_DIR="/var/tmp/ccache" ccache -s

  1. cache directory                     /var/tmp/ccache
  2. cache hit                              0
  3. cache miss                             0
  4. files in cache                         0
  5. cache size                             0 Kbytes
  6. max cache size                     976.6 Mbytes
复制代码


root执行ccache -s

  1. cache directory                     /root/.ccache
  2. cache hit                              0
  3. cache miss                             0
  4. files in cache                         0
  5. cache size                             0 Kbytes
  6. max cache size                       2.0 Gbytes
复制代码


普通用户执行CCACHE_DIR="/var/tmp/ccache" ccache -s

  1. cache directory                     /var/tmp/ccache
  2. cache hit                              0
  3. cache miss                             0
  4. files in cache                         0
  5. cache size                             0 Kbytes
  6. max cache size                     976.6 Mbytes
复制代码
 楼主| 发表于 2007-4-13 23:07:37 | 显示全部楼层
这些数据都是在编译了2遍eva,3遍ark后得到的
回复 支持 反对

使用道具 举报

发表于 2007-4-13 23:24:49 | 显示全部楼层
我这里是在/etc/env.d/99local中加入了CCACHE_DIR="/usr/portage/distfiles/tmp/ccache"
  1. $ccache -s
  2. cache directory                     /usr/portage/distfiles/tmp/ccache
  3. cache hit                         129394
  4. cache miss                        314435
  5. called for link                    36815
  6. multiple source files                155
  7. compile failed                      7915
  8. preprocessor error                  3302
  9. bad compiler arguments                 1
  10. not a C/C++ file                   15721
  11. autoconf compile/link              70447
  12. unsupported compiler option         5835
  13. no input file                      36180
  14. files in cache                    165066
  15. cache size                           1.7 Gbytes
  16. max cache size                       2.0 Gbytes
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-13 23:32:20 | 显示全部楼层
曾经试过,还env-update;source xxx了,还是一样
回复 支持 反对

使用道具 举报

发表于 2007-4-13 23:46:00 | 显示全部楼层
用ccache -M 设置过大小吗,我这里在make.conf中设的没用。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-15 13:09:24 | 显示全部楼层
原来是我在make.conf中一行FEATURES指定sandbox和ccache,另外又写了一行FEATURES指定parallel-fetch,导致ccache disable了。合到一行就好了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表