Trying to combine ccache and colorgcc. Following link text:
there is another way to colorize GCC that I think it is much easier to install because you don't have to edit any system files such as .bash Moreover it is based on Ruby which allows wide customization using Ruby gems. For example GilCC shows # of warnings, # of errors and compile time, very handy when you want to cleanup or improve build time.
here is the link to stackoverflow that talks about GilCC:
Improving g++ output