Open main menu

CDOT Wiki β

Changes

Fall 2009 SBR600 Weekly Schedule

1,207 bytes added, 15:10, 5 November 2009
DistCC
== DistCC ==
 
DistCC is a distributed C compiler. It provides a daemon (server, slave) which can be run on multiple machines, and a client (master) which is used to send jobs to daemons on other computers.
 
DistCC is installed as symbolic links named after the compilers present on the machine, targeting the 'distcc' binary. When invoked in this way, distcc will execute the compiler with the same name as the symbolic link, either on the local computer or on a slave.
 
Make is therefore unaware that it's running distcc -- it thinks it's running the regular C or C++ compiler (such as gcc or c++). In order to take advantage of the additional resources provided by the slave servers, it's necessary to increase make's -j value. If building with rpmbuild, this is done through the <code>%_smp_mflags</code> macro in ~/.rpmmacros
 
DistCC offers several different communication options, including a native (fairly insecure) protocol and ssh. The native protocol is often used despite being insecure because it is fast and most build farms are private networks that are not publicly accessible.
 
=== Resources ===
 
* http://distcc.org
 
=== Using DistCC ==
 
DistCC is packaged for Fedora (as "distcc" and "distcc-server").
Machine codes: