[distcc] distcc sends preprocessing tasks to remote hosts

Bart Friederichs bf at tbwb.nl
Thu Jul 31 11:28:43 GMT 2008

Hi all,

I just installed distcc to play around with it, and evaluate it for our
development department. I seem to get everything working ('test' is a

export DISTCC_HOSTS='localhost test'
make -j8 CC=distcc CXX=distcc

this starts and runs, but doesn't compile correctly. When I look into my
distcc monitor, it shows that 'test' is also running preprocess jobs.
And it cannot process them correctly (I get compiler errors in .h
files). Isn't distcc supposed to do the preprocessing on localhost?

bf at bf-laptop:~/docs/project/P2579/svn/source$ make   -j8 CC=distcc
make -C common all
make[1]: Entering directory `/mnt/localdata/project/P2579/svn/source/common'
Creating prerequisites for MbsMessage.cpp
Creating prerequisites for MbsFrame.cpp
Creating prerequisites for Scanner.cpp
Creating prerequisites for PlcTelegram_Stub.cpp
Creating prerequisites for SAPClient.cpp
Creating prerequisites for TrmMessage.cpp
Creating prerequisites for Counter.cpp
Creating prerequisites for KardexTelegram.cpp
Creating prerequisites for KardexLift.cpp
make[1]: Leaving directory `/mnt/localdata/project/P2579/svn/source/common'
make[1]: Entering directory `/mnt/localdata/project/P2579/svn/source/common'
distcc -g -rdynamic -I/usr/include/mysql -I../include
-I/usr/include/libxml2 -I../tbwb -I../tables  -c -o KardexLift.o
distcc -g -rdynamic -I/usr/include/mysql -I../include
-I/usr/include/libxml2 -I../tbwb -I../tables  -c -o KardexTelegram.o
/usr/include/c++/4.2/i486-linux-gnu/bits/gthr-default.h:92: error: weak
declaration of ‘int __gthrw_pthread_once(pthread_once_t*, void (*)())’
must be public
/usr/include/c++/4.2/i486-linux-gnu/bits/gthr-default.h:93: error: weak
declaration of ‘void* __gthrw_pthread_getspecific(pthread_key_t)’ must
be public
/usr/include/c++/4.2/i486-linux-gnu/bits/gthr-default.h:94: error: weak
declaration of ‘int __gthrw_pthread_setspecific(pthread_key_t, const
void*)’ must be public
/usr/include/c++/4.2/i486-linux-gnu/bits/gthr-default.h:95: error: weak
declaration of ‘int __gthrw_pthread_create(pthread_t*, const
pthread_attr_t*, void* (*)(void*), void*)’ must be public

... [snip a lot more compiler errors] ...

distcc[21405] ERROR: compile Scanner.cpp on test failed
make[1]: *** [Scanner.o] Error 1
make[1]: Leaving directory `/mnt/localdata/project/P2579/svn/source/common'
make: *** [all] Error 2

When I run the 'make' command without using distcc, the project builds fine.


More information about the distcc mailing list