tag:blogger.com,1999:blog-5541414252435605845.post1786034705116292983..comments2018-02-06T23:09:43.792-08:00Comments on The Holbert Report: ccache = much speedier Firefox buildsDanielhttp://www.blogger.com/profile/06625163638446776772noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-5541414252435605845.post-40911559097318661972011-11-16T16:34:33.436-08:002011-11-16T16:34:33.436-08:00@Mook,
cp ccache /usr/local/bin/
ln -s ccache /u...@Mook,<br /><br /><br />cp ccache /usr/local/bin/<br />ln -s ccache /usr/local/bin/gcc<br />ln -s ccache /usr/local/bin/g++<br />ln -s ccache /usr/local/bin/cc<br />ln -s ccache /usr/local/bin/c++<br /><br /><br />Is indeed a convinient way of doing things if you want to use ccache all the time. But remember that the strenght of ccache only show on rebuilds, not for one time compilations where it actually adds a little overhead. So on a source distribution you may end up losing time.<br /><br />Regards,<br />MirrakorAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5541414252435605845.post-13397474553659442812009-10-15T08:39:09.307-07:002009-10-15T08:39:09.307-07:00Hmm, on Fedora (I think?), just installing the cca...Hmm, on Fedora (I think?), just installing the ccache pacakge will set up symlinks early in the $PATH so that gcc &c all actually runs ccache, which will then run the real compiler. I find that easier than setting up the environment variables, but YMMV.Mooknoreply@blogger.comtag:blogger.com,1999:blog-5541414252435605845.post-48796237929257611332009-10-15T07:14:41.267-07:002009-10-15T07:14:41.267-07:00ccache is definitely very cool.
BTW, ask dolske a...ccache is definitely very cool.<br /><br />BTW, ask dolske about how he got a build from scratch in 11 minutes on Windows. ;)Sidhttps://www.blogger.com/profile/01278191091270098950noreply@blogger.comtag:blogger.com,1999:blog-5541414252435605845.post-18106111167220183382009-10-15T05:05:18.612-07:002009-10-15T05:05:18.612-07:00Can you do this for official builds?! :DCan you do this for official builds?! :DKurt Schultz (supernova_00)noreply@blogger.comtag:blogger.com,1999:blog-5541414252435605845.post-74871738511449580852009-10-14T21:02:58.980-07:002009-10-14T21:02:58.980-07:00Timothy -- that's strange that "export CC...Timothy -- that's strange that "export CC=..." isn't working for you. Perhaps your mozconfig file sets CC / CXX to something else? (which would override the environmental variable set in .bashrc)<br /><br />The /usr/lib/ccache tip is handy, though -- thanks for that!Danielhttps://www.blogger.com/profile/06625163638446776772noreply@blogger.comtag:blogger.com,1999:blog-5541414252435605845.post-28998981419770907422009-10-14T19:03:38.271-07:002009-10-14T19:03:38.271-07:00Thanks for making this post, was helpful for me.
...Thanks for making this post, was helpful for me.<br /><br />For some reason export CC=... didn't work for me.<br /><br />What did work was adding /usr/lib/ccache to the start of my path by adding the following line to my ~/.bashrc<br /><br />export PATH="/usr/lib/ccache:$PATH"<br /><br />/usr/lib/ccache is created by ccache and just contains symlinks to ccache for a bunch of compiler names (gcc, g++, etc).Timothynoreply@blogger.comtag:blogger.com,1999:blog-5541414252435605845.post-1758732759031971782008-09-24T23:16:00.000-07:002008-09-24T23:16:00.000-07:00Hi Gary -- cool, I'm glad you got it working! :)Hi Gary -- cool, I'm glad you got it working! :)Danielhttps://www.blogger.com/profile/06625163638446776772noreply@blogger.comtag:blogger.com,1999:blog-5541414252435605845.post-85198191287464618822008-09-24T23:09:00.000-07:002008-09-24T23:09:00.000-07:00Oh second thoughts, I think it was my error. I had...Oh second thoughts, I think it was my error. I had (epic failure) failed to change to my .ccache location, instead copying from your /scratch/work/..... path.<BR/><BR/>Epic failure!<BR/><BR/>(your ccache instructions work brilliantly now, my previous comments above will make it compile _without_ ccache support).<BR/><BR/>:)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5541414252435605845.post-74994790136556140292008-09-24T22:59:00.000-07:002008-09-24T22:59:00.000-07:00I don't think anything else other than |sudo apt-g...I don't think anything else other than |sudo apt-get install ccache| is needed for 8.04.1 Hardy anymore. I just tried with all the other options from the 2004 post as listed above and it gives me the error "configure: error: installation or configuration problem: C compiler cannot create executables".<BR/><BR/>I deleted them all, rebooted the machine, then ran make without all those options. It then works perfectly.<BR/><BR/>See http://zenit.senecac.on.ca/wiki/index.php/Improving_Build_TimesAnonymousnoreply@blogger.com