distributed builds for C, C++ and Objective C
C Python C++ Shell Makefile M4
Clone or download
Shawn Landden
Shawn Landden compiler_masq: allow /usr/lib/distcc hardcoded
sometimes we install to /usr/local/lib, but these symlinks could be in /usr/lib
Latest commit 04a933b Jun 14, 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 mention clang is supported in docs Feb 26, 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 3.3 Mar 7, 2018
packaging Add help for systemd-based RH-like distro users Nov 4, 2015
popt Fix a couple of compiler warnings. Oct 21, 2011
src compiler_masq: allow /usr/lib/distcc hardcoded Jun 14, 2018
test daemon: warn when masquerade is not setup Feb 26, 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 fix INSTALL instructions Mar 7, 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 Add CI Link To Resources List in README.md Aug 8, 2017
README.packaging Take these human-readable files and normalize their content and Apr 9, 2008
README.pump Documentation fixes: May 30, 2008
TODO Some updates to the TODO list to mark as done issues which are addressed Jun 9, 2008
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 Fall back compiler whitelist check if faccessat() isn't available. Jun 7, 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 Fix for distcc issue 109 <http://code.google.com/p/distcc/issues/deta… May 3, 2012
survey.txt Direct survey response to distcc-survey@google.com rather than to Mar… May 22, 2008
update-distcc-symlinks.py add auto-masquerade script Feb 26, 2018

README.md

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

Build Status

by Martin Pool

Current Documents: https://cdn.rawgit.com/distcc/distcc/9a09372bd3f420cdd7021e52eda14fa536a3c10e/doc/web/index.html 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