Error occurs when make with ccache.
Created by: peterzhang2029
使用ccache在编译接近完成时报错,error log 如下:
creating build/lib.linux-x86_64-2.7/py_paddle
copying /home/zhangchao/source/paddle_test/latest/Paddle/paddle/py_paddle/util.py -> build/lib.linux-x86_64-2.7/py_paddle
copying /home/zhangchao/source/paddle_test/latest/Paddle/paddle/py_paddle/__init__.py -> build/lib.linux-x86_64-2.7/py_paddle
copying /home/zhangchao/source/paddle_test/latest/Paddle/paddle/py_paddle/swig_paddle.py -> build/lib.linux-x86_64-2.7/py_paddle
copying /home/zhangchao/source/paddle_test/latest/Paddle/paddle/py_paddle/dataprovider_converter.py -> build/lib.linux-x86_64-2.7/py_paddle
copying /home/zhangchao/source/paddle_test/latest/Paddle/python/paddle/v2/framework/core.so -> build/lib.linux-x86_64-2.7/paddle/v2/framework
copying /home/zhangchao/source/paddle_test/latest/Paddle/paddle/py_paddle/_swig_paddle.so -> build/lib.linux-x86_64-2.7/py_paddle
running build_ext
building '_foo' extension
creating build/temp.linux-x86_64-2.7
ccache gcc -fno-strict-aliasing -g -O2 -DNDEBUG -I. -IInclude -I./Include -O2 -pipe -fPIC -I/home/zhangchao/.jumbo/include/python2.7 -c stub.cc -o build/temp.linux-x86_64-2.7/stub.o
ccache -pthread -shared -L. -Wl,-rpath=/home/zhangchao/.jumbo/lib -L/home/zhangchao/.jumbo/lib build/temp.linux-x86_64-2.7/stub.o -L/home/zhangchao/.jumbo/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/_foo.so
ccache: invalid option -- 't'
Usage:
ccache [options]
ccache compiler [compiler options]
compiler [compiler options] (via symbolic link)
Options:
-c, --cleanup delete old files and recalculate size counters
(normally not needed as this is done automatically)
-C, --clear clear the cache completely (except configuration)
-F, --max-files=N set maximum number of files in cache to N (use 0 for
no limit)
-M, --max-size=SIZE set maximum size of cache to SIZE (use 0 for no
limit); available suffixes: k, M, G, T (decimal) and
Ki, Mi, Gi, Ti (binary); default suffix: G
-o, --set-config=K=V set configuration key K to value V
-p, --print-config print current configuration options
-s, --show-stats show statistics summary
-z, --zero-stats zero statistics counters
-h, --help print this help text
-V, --version print version and copyright information
See also <http://ccache.samba.org>.
(default) base_dir =
(default) cache_dir = /home/zhangchao/.ccache
(default) cache_dir_levels = 2
(default) compiler =
(default) compiler_check = mtime
(default) compression = false
(default) compression_level = 6
(default) cpp_extension =
(default) direct_mode = true
(default) disable = false
(default) extra_files_to_hash =
(default) hard_link = false
(default) hash_dir = false
(default) log_file =
(default) max_files = 0
(/home/zhangchao/.ccache/ccache.conf) max_size = 20.0G
(default) path =
(default) prefix_command =
(default) read_only = false
(default) read_only_direct = false
(default) recache = false
(default) run_second_cpp = false
(default) sloppiness =
(default) stats = true
(default) temporary_dir =
(default) umask =
(default) unify = false
error: command 'ccache' failed with exit status 1
make64[2]: *** [python/build/.timestamp] Error 1
make64[1]: *** [python/CMakeFiles/paddle_python.dir/all] Error 2
make64: *** [all] Error 2