[distcc] cmake and distcc

Konrad Kleine konrad.kleine at gmx.de
Fri Aug 22 17:43:20 GMT 2008


Hello,

I'm new to distcc/distccd and would like to run it on my notebook and on
my desktop computer. Both are using Ubuntu 8.04 as operating system and
a self-compiled version of distcc. My project uses CMake and is written
in C++.

I followed the "60-second instructions" from
http://code.google.com/p/distcc/ and the "Compiler and Tools" section
from
http://www.cmake.org/Wiki/CMake_Useful_Variables#Compilers_and_Tools.
Boths machines can ping eachother. The notebook has IP 192.168.2.27 and
the desktop 192.168.2.31.

On the desktop I run:

	$ distccd --daemon --allow 192.168.2.27
	$ distccmon-text 1

An on my notebook I run:

	$ export DISTCC_POTENTIAL_HOSTS='192.168.2.31'
	$ export PATH=/usr/lib/distcc/bin:$PATH
	$ cd ~/project
	~/project$ make clean
	~/project$ rm CMakeCache.txt
	~/project$ CC="distcc gcc" CXX="distcc g++" cmake .
	~/project$ pump make -j8 CC=distcc CXX=distcc

The output of CMake looks good according to the compiler section at the
top. The Build files are also generated:

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/local/bin/distcc
-- Check for working C compiler: /usr/local/bin/distcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/local/bin/distcc
-- Check for working CXX compiler: /usr/local/bin/distcc -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done

...

-- Build files have been written to: /home/kwk/project

Without distcc my project compiles in about a 1,4 minutes and with
distcc it takes the same time. The monitor (distccmon-text) on the
desktop doesn't show anything. Am I doing something completely wrong?

Thanks in advance
kwk






More information about the distcc mailing list