#13032: Add ccache as an optional spkg
-------------------------------------+--------------------------------------
Reporter: rohana | Owner: GeorgSWeber
Type: enhancement | Status: closed
Priority: major | Milestone: sage-5.6
Component: optional packages | Resolution: fixed
Keywords: sd40.5 | Work issues:
Report Upstream: N/A | Reviewers: Punarbasu Purkayastha
Authors: R. Andrew Ohana | Merged in: sage-5.6.beta2
Dependencies: | Stopgaps:
-------------------------------------+--------------------------------------
Comment (by ppurka):
I don't understand what the confusion is about. There are only two
possibilities.
1. If you set `CCACHE_DIR` in your shell's rc file, then that variable
will be used and ''none of your ccache settings will be changed''. Here is
an example on a test account where I exported the setting
`CCACHE_DIR=~/.ccache` explicitly before compiling sage. Then I stopped
the compilation of sage midway and looked at the output of `ccache -s`
from a different terminal. All of this is outside of sage shell.
{{{
test@ub2 ~ $ ccache -s
cache directory /tmp/test/.ccache
cache hit (direct) 1
cache hit (preprocessed) 2
cache miss 139
called for link 3
called for preprocessing 46
compile failed 5
preprocessor error 5
bad compiler arguments 4
autoconf compile/link 75
no input file 18
files in cache 288
cache size 3.6 Mbytes
max cache size 1.0 Gbytes
}}}
2. If you do not provide a ccache setting at all, then the package sets
the ccache size and the ccache directory to some defaults. Since, you are
not showing any preference here, the ccache directory is set to
~/.sage/ccache and the size is set to 4G. All sage related stuff is in one
single directory ~/.sage by default - I don't understand why we should go
out of our way to mix it with user's own settings in their home
directories.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13032#comment:55>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.