CCache fortwährend Kompilierungsfehler!
Posted: 2015-02-24 22:38
Also irgendwie bekomme ich`s wieder nicht hin! Ich wollte mal ccache testen und es heißt es könnte das kompilieren um einiges beschleunigen. Ich bekomme komischerweise wenn ich ein Programm aus den Port per "make" installieren will Abbrüche noch und nöcher.
Ich installiere so:
Laufen tuts:
Und entleeren lässt sich das ganze mit -c -C auch.
Ich installiere so:
Code: Select all
cd /usr/ports/devel/ccache && make install clean
cat >> /root/.cshrc << "EOF"
setenv PATH %%PREFIX%%/%%CCLINKDIR%%:$PATH
setenv CCACHE_PATH /usr/bin:%%LOCALBASE%%/bin
setenv CCACHE_DIR /tmp/ccache
setenv CCACHE_LOGFILE /var/log/ccache.log
if ( -x /usr/local/bin/ccache ) then
/usr/local/bin/ccache -M 1024m > /dev/null
endif
"EOF"
cat >> /etc/make.conf << "EOF"
.if !defined(NO_CCACHE)
CC= /usr/local/libexec/ccache/world-cc
CXX= /usr/local/libexec/ccache/world-c++
.endif
.if ${.CURDIR:M*/ports/devel/ccache}
NO_CCACHE= yes
.endif
Code: Select all
[root@f329:~] # ccache -s
cache directory /tmp/ccache
primary config /tmp/ccache/ccache.conf
secondary config (readonly) /usr/local/etc/ccache.conf
cache hit (direct) 0
cache hit (preprocessed) 0
cache miss 0
files in cache 0
cache size 0.0 kB
max cache size 1.0 GB