[ros-dev] Can I use 'distcc' to compile ReactOS?

Andrew "Silver Blade" Greenwood lists at silverblade.co.uk
Mon Nov 7 19:15:05 CET 2005


I just discovered distcc. For those who don't know, distcc is a 
distributed compiler utility that interfaces with gcc on Linux (and 
compatible platforms.) It comes as a daemon and a client - the daemon is 
run on each machine you wish to include in the "compiler farm" (so to 
speak), and the client is told which servers to use (via an environment 
variable.) When you run distcc it just acts like gcc/g++, and 
distributes the file to be compiled to each of the hosts.

It doesn't need the headers or libraries on the hosts - the output of 
the preprocessor is passed to each host.

Anyway...

As I have a second machine which usually runs Windows solely for when I 
wish to make music, it's ideal for running a small Linux installation, 
aimed at running distcc/gcc etc. and not much else.

All is well, except I cannot configure ReactOS to make use of distcc :(

The standard usage for distcc (according to the authors site) is:
make -j8 distcc

The only way I even got close to compiling ReactOS using distcc was to 
hack the main Makefile and replace "gcc" with "distcc", and "g++" with 
"distcc g++" (to specify the compiler to use on each host.)

This works perfectly... for the initial make tasks (building the build 
system?) but after this distcc is completely ignored.

Is there a way to allow distcc to work? Ideally the Makefile should take 
note of the CC variable, I guess?

As I have a laptop and 2 desktop machines at my disposal (plus - as I'm 
staying at a friends house at present - his experimental 3 GHz server 
box), I'd like to make use of distcc so I don't have to make so much 
coffee ;)

Any ideas?


More information about the Ros-dev mailing list