LinuxSir.cn,穿越时空的Linuxsir!

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

无法使用ccache

[复制链接]
发表于 2010-4-24 14:45:45 | 显示全部楼层 |阅读模式

  1. shuge-lab ~ # grep ccache /etc/make.conf
  2. FEATURES="parallel-fetch sandbox ccache"
  3. CCACHE_DIR="/mnt/tmp/ccache"

  4. shuge-lab ~ # df -h |grep /mnt/tmp
  5. /dev/sda5             8.7G  149M  8.1G   2% /mnt/tmp

复制代码



  1. Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.11-r1, 2.6.32-gentoo i686)
  2. =================================================================
  3. System uname: Linux-2.6.32-gentoo-i686-Intel-R-_Celeron-R-_M_CPU_520_@_1.60GHz-with-gentoo-2.0.1
  4. Timestamp of tree: Thu, 22 Apr 2010 09:00:01 +0000
  5. ccache version 2.4 [disabled]
  6. app-shells/bash:     4.1_p5
  7. dev-java/java-config: 2.1.10
  8. dev-lang/python:     2.4.6, 2.6.4-r1, 3.1.1-r1
  9. dev-python/pycrypto: 2.1.0
  10. dev-util/ccache:     2.4-r8
  11. dev-util/cmake:      2.8.0-r2
  12. sys-apps/baselayout: 2.0.1
  13. sys-apps/openrc:     0.6.0-r1
  14. sys-apps/sandbox:    2.2
  15. sys-devel/autoconf:  2.13, 2.65
  16. sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
  17. sys-devel/binutils:  2.20.1
  18. sys-devel/gcc:       4.4.3
  19. sys-devel/gcc-config: 1.4.1
  20. sys-devel/libtool:   2.2.6b
  21. virtual/os-headers:  2.6.33
  22. ACCEPT_KEYWORDS="x86 ~x86"
  23. ACCEPT_LICENSE="*"
  24. CBUILD="i686-pc-linux-gnu"
  25. CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
  26. CHOST="i686-pc-linux-gnu"
  27. CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
  28. CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
  29. CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
  30. DISTDIR="/usr/portage/distfiles"
  31. FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans"
  32. GENTOO_MIRRORS="http://mirrors.163.com/gentoo/"
  33. LANG="en_US.UTF-8"
  34. LDFLAGS="-Wl,-O1"
  35. LINGUAS="en en_US"
  36. MAKEOPTS="-j2"
  37. PKGDIR="/usr/portage/packages"
  38. PORTAGE_CONFIGROOT="/"
  39. PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
  40. PORTAGE_TMPDIR="/var/tmp"
  41. PORTDIR="/usr/portage"
  42. PORTDIR_OVERLAY="/usr/local/portage/layman/gentoo-china /home/lee/shuge-lee-overlay"
  43. SYNC="rsync://rsync.gentoo.org/gentoo-portage"
  44. USE="X a52 aac acl acpi alsa archive avahi bash-completion branding bzip2 cairo cdr cjk cli consolekit cracklib crypt cxx dbus directfb dri dts dvd dvdr emacs emboss encode exif fam fat fbcon fbcondecor ffmpeg firefox flac fortran fuse gdbm gif gnome gnome-keyring gpm gstreamer gtk hal iconv ipython jpeg laptop latex lcms ldap libnotify mad mikmod mmx mng mod_python modules mp3 mp4 mpeg mudflap multimedia mysql mysqli ncurses nls nptl nptlonly ntfs ogg opengl openmp pam pango pch pcre pdf perl png ppds pppd python qt3support qt4 rar readline reflection samba session spell spl sqlite sqlite3 sse sse2 sse3 ssh ssl ssse3 startup-notification svg sysfs tcpd threads tiff truetype ubuntu udev unicode usb vhosts vorbis x264 x86 xcb xft xine xml xorg xulrunner xv xvid zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel vesa fbdev"
  45. Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

  46. [i] dev-util/ccache
  47.      Available versions:  2.4-r6 2.4-r7 (~)2.4-r8
  48.      Installed versions:  2.4-r8(01:06:57 PM 04/23/2010)
  49.      Homepage:            http://ccache.samba.org/
  50.      Description:         fast compiler cache

复制代码


为啥ccache显示为disable呢?
发表于 2010-4-24 16:22:34 | 显示全部楼层
检查一下你的FEATURES=是否存在多行,如果多行的话会出现这个问题。
  1. grep "FEATURES=" /etc/make.conf
复制代码
回复 支持 反对

使用道具 举报

发表于 2010-4-24 16:27:12 | 显示全部楼层
在你的emerge --info
没有看到:FEATURES=”ccache“。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-4-25 14:42:42 | 显示全部楼层
Post by dutongtie;2085448
检查一下你的FEATURES=是否存在多行,如果多行的话会出现这个问题。

  1. grep "FEATURES=" /etc/make.conf
复制代码


正确。

****,我眼睛越来越不好使了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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