distributed builds for C, C++ and Objective C
Clone or download
Latest commit bdcd546 Oct 10, 2018
Permalink
Failed to load latest commit information.
bench Make the benchmarking script's stdout and stderr line buffered. Aug 2, 2008
contrib The first step of moving everything in the distcc directory to the top Apr 11, 2008
doc Correct spelling mistakes. (#286) Sep 25, 2018
docker Extend Travis CI configuration for macOS/clang (#226) Nov 26, 2017
gnome use UTF-8 in desktop file. Dec 16, 2017
include_server pump: attempt to eliminate UnicodeDecodeError for good Feb 26, 2018
lzo fix build Feb 25, 2018
m4 Update acx_pthread to the latest version we use internally. This is May 14, 2008
man Correct spelling mistakes. (#286) Sep 25, 2018
packaging Add help for systemd-based RH-like distro users Nov 4, 2015
popt Correct spelling mistakes. (#286) Sep 25, 2018
src add some more GCC args that indicate profiling Sep 30, 2018
test Correct spelling mistakes. (#286) Sep 25, 2018
.gitignore Extend Travis CI configuration for macOS/clang (#226) Nov 26, 2017
.travis.yml fix MacOS CI Mar 7, 2018
AUTHORS Documentation fixes: May 30, 2008
COPYING Initial submission @6805748, not fully baked yet. Mar 28, 2008
ChangeLog Update ChangeLog again. Oct 26, 2011
INSTALL Correct spelling mistakes. (#286) Sep 25, 2018
Makefile.in don't hardcode /usr/lib/distcc but $PREFIX/distcc Jun 7, 2018
NEWS 3.3 Mar 7, 2018
README Correct Code Link In README Aug 8, 2017
README.md Update homepage link Oct 10, 2018
README.packaging Correct spelling mistakes. (#286) Sep 25, 2018
README.pump Documentation fixes: May 30, 2008
TODO Correct spelling mistakes. (#286) Sep 25, 2018
autogen.sh Address review comments on an earlier change: Apr 18, 2008
config.guess fixed for Cygwin Aug 9, 2017
config.sub fixed for Cygwin Aug 9, 2017
configure.ac Correct spelling mistakes. (#286) Sep 25, 2018
find_c_extension.sh Fix broken "make distcheck" Apr 29, 2017
install-sh Merge configure.ac, distcc/configure.ac, and Apr 11, 2008
mkinstalldirs Merge configure.ac, distcc/configure.ac, and Apr 11, 2008
pump.in Correct spelling mistakes. (#286) Sep 25, 2018
survey.txt Direct survey response to distcc-survey@google.com rather than to Mar… May 22, 2008
update-distcc-symlinks.py update-distcc-symlinks: catch some errors Aug 6, 2018

README.md

distcc -- a free distributed C/C++ compiler system

Build Status

by Martin Pool

Current Documents: https://distcc.github.io/ Formally http://distcc.org/

"pump" functionality added by Fergus Henderson, Nils Klarlund, Manos Renieris, and Craig Silverstein (Google Inc.)

distcc is a program to distribute compilation of C or C++ code across several machines on a network. distcc should always generate the same results as a local compile, is simple to install and use, and is often two or more times faster than a local compile.

Unlike other distributed build systems, distcc does not require all machines to share a filesystem, have synchronized clocks, or to have the same libraries or header files installed. Machines can be running different operating systems, as long as they have compatible binary formats or cross-compilers.

By default, distcc sends the complete preprocessed source code across the network for each job, so all it requires of the volunteer machines is that they be running the distccd daemon, and that they have an appropriate compiler installed.

The distcc "pump" functionality, added in distcc 3.0, improves on distcc by distributing not only compilation but also preprocessing to distcc servers. This requires that the server and client have the same system headers (the client takes responsibility for transmitting application-specific headers). Given that, distcc in pump mode yields the same results that distcc would in non-pump mode, but faster, since the preprocessor no longer runs locally. For more details on the pump functionality, see README.pump.

distcc is not itself a compiler, but rather a front-end to the GNU C/C++ compiler (gcc), or another compiler of your choice. All the regular gcc options and features work as normal.

distcc is designed to be used with GNU make's parallel-build feature (-j). Shipping files across the network takes time, but few cycles on the client machine. Any files that can be built remotely are essentially "for free" in terms of client CPU. This is even more true in "pump" mode, where the client does not even have to take time to preprocess the source files. distcc has been successfully used in environments with hundreds of distcc servers, supporting dozens of simultaneous compiles.

distcc is now reasonably stable and can successfully compile the Linux kernel, rsync, KDE, GNOME (via GARNOME), Samba and Ethereal. distcc is nearly linearly scalable for small numbers of machines: for a typical case, three machines are 2.6 times faster than one.

Licence

distcc is distributed under the GNU General Public Licence v2.

Resources