Penguin
Note: You are viewing an old revision of this page. View the current version.

DistCC is an Acronym for Distributed C Compiler.

distcc acts as a front end to the GCC suite and uses compilers on other boxes on your network to speed compilation.

To use you need to install the distcc Package on each machine and do some setup. This is fairly well documented on the web so I won't repeat here (i.e. I am lazy).

When I compile software with three (slow) machines I do the following:

make -j6 CC='distcc'

The -j6 is to tell make to use 6 parallel tasks (recommended is 2 per CPU).

This works brilliantly for most programs.

There are some tricks to getting this working for KernelDevelopment as first time I did this it stopped part way through and when I did a normal make it started all over from the beginning.

Some of the answers to these problems are in here:
http://lists.samba.org/archive/distcc/2005q1/002941.html
http://myrddin.org/howto/debian-distcc.php

However when I did this it worked but created other problems like certain Modules not compiling etc. If anybody knows how to do this reliably please tell me -- IanMcDonald