#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):
You can of course have only one ccache dir. In that case, simply define
the environment variable `CCACHE_DIR` in your shell rc file. Then
everything will use that directory. The default is set for those people
who don't bother with setting up ccache variables.
{{{
~» sage --sh
Starting subshell with Sage environment variables set. Don't forget
to exit when you are done. Beware:
* Do not do anything with other copies of Sage on your system.
* Do not use this for installing Sage packages using "sage -i" or for
running "make" at Sage's root directory. These should be done
outside the Sage shell.
Bypassing shell configuration files...
Note: SAGE_ROOT=/home/punarbasu/Installations/sage-5.6.beta1
~» ccache -s
cache directory /home/punarbasu/.sage//ccache
cache hit (direct) 1620
cache hit (preprocessed) 13825
cache miss 16881
called for link 3066
called for preprocessing 1553
multiple source files 20
compiler produced stdout 2
compile failed 389
preprocessor error 236
bad compiler arguments 285
unsupported source language 1214
autoconf compile/link 3228
unsupported compiler option 786
no input file 1345
files in cache 53031
cache size 2.7 Gbytes
max cache size 4.0 Gbytes
~»
Exited Sage subshell.
~» export CCACHE_DIR=$HOME/.ccache
~» sage --sh
Starting subshell with Sage environment variables set. Don't forget
to exit when you are done. Beware:
* Do not do anything with other copies of Sage on your system.
* Do not use this for installing Sage packages using "sage -i" or for
running "make" at Sage's root directory. These should be done
outside the Sage shell.
Bypassing shell configuration files...
Note: SAGE_ROOT=/home/punarbasu/Installations/sage-5.6.beta1
~» ccache -s
cache directory /home/punarbasu/.ccache
cache hit (direct) 0
cache hit (preprocessed) 0
cache miss 0
files in cache 0
cache size 0 Kbytes
max cache size 1.0 Gbytes
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13032#comment:51>
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.