[distcc] how to make distcc work with make file and none-default location of g++ compiler?

hgg hgreig at bigpond.net.au
Wed Jan 31 07:06:09 GMT 2007

Michael Casadevall wrote:
> It sounds like its a having trouble working with the remote distcc 
> server. It looks like your compiling for a 64-bit platform - it would 
> greatly help if I can have more information on your full setup. I've 
> seen broken pipe if distcc bombs abnormally on either machine, or your 
> make is broken (possible with some older versions of BSD Make). Also, if 
> you manually run distcc (running each command by hand) does it still 
> bomb, and does make -n complete successfully. Some info would really be 
> useful; Namely:
> Version of Make
> Build system (Linux/BSD/etc) on both the host/target
> gcc -v 's output
> Version of distcc on both machines,
> Connection between the hosts
> Anything else that would be relevant.
> Michael
> On Jan 30, 2007, at 11:22 PM, dave woo wrote:
>> Thanks Michael,
>> I am using a homebrew makefile. My makefile works fine without the 
>> using -j2 option and distcc.
>> I realize that since I have set the /home/local/gcc-3.2.2/bin/ to be 
>> the first search able directory path, I should be able to invoke 
>> distcc as "make -j2 distcc=g++". Then I am getting a different error.
>> /home/local/distcc/bin/distcc g++ -c -g -D_DEBUG -fasm 
>> -finline-functions -fno-rtti  -Wall -D_REENTRANT -D__int64="long long" 
>> ac3.cpp -o ac3.o
>> /home/local/distcc/bin/distcc g++ -c -g -D_DEBUG -fasm 
>> -finline-functions -fno-rtti  -Wall -D_REENTRANT -D__int64="long long" 
>> RegionBegin_3.cpp -o RegionBegin_3.o
>> distcc[5498] (dcc_writex) ERROR: failed to write: Connection refused
>> distcc[5497] (dcc_writex) ERROR: failed to write: Connection refused
>> ..............
>> distcc[5498] (dcc_writex) ERROR: failed to write: Broken pipe
>> what does it mean failed to write: Connection refused?
>> ----- Original Message ----
>> From: Michael Casadevall <sonicmctails at aol.com>
>> To: dave woo <dwu604250 at yahoo.com>
>> Cc: distcc at lists.samba.org
>> Sent: Tuesday, January 30, 2007 7:23:43 PM
>> Subject: Re: [distcc] how to make distcc work with make file and 
>> none-default location of g++ compiler?
>> distcc should follow the system path looking for GCC. If the path is
>> set for 3.2 to be found by default (aka gcc --version shows the
>> compiler you want), distcc gcc should work. What looks like it seems
>> to be a bug in your makefile. Are you using a homebrew makefile, or
>> autoconf/cmake/scons/etc?
>> Michael
>> On Jan 29, 2007, at 11:55 PM, dave woo wrote:
>>> Hi guys,
>>> I have installed the distcc properly, and I havea simple makefile
>>> with two simple .cpp file that uses the default g++ compiler under
>>> the system path. I use the "make -j2 CXX=distcc" method to compile.
>>> This works fine.
>>> However, for my actual working project, I am using an older version
>>> of g++ compiler installed at specific location, ie, /home/local/
>>> gcc-3.2.2/bin/g++. I have set up the ~/.distcc/hosts file with one
>>> single entry of, so its simply running locally. I also
>>> set the system path to include "/home/local /home/local/gcc-3.2.2F/
>>> bin/" as the first path to be searched. Even though I thought this
>>> should not be necessary because I am using the absolute path to
>>> call the desired g++.  Anyways, when I try "make -j2 CXX='distcc /
>>> home/local/gcc-3.2.2/bin/g++', and examine the actual command
>>> actually run by the makefile, I get "/home/local/distcc/bin/distcc /
>>> home/local /home/local/gcc-3.2.2F/bin/g++ -CXXFLAGS filenames.cpp".
>>> Then the error is that the extra "/home/local" can not be found!
>>> where does this extra "/home/local" come from? So of course
>>> compilation fails.
>>> Any ideas guys?
>>> Thanks in advance!
>>> Dave.
>>> ______________________________________________________________________
>>> ______________
>>> Sucker-punch spam with award-winning protection.
>>> Try the free Yahoo! Mail Beta.
>>> http://advision.webevents.yahoo.com/mailbeta/features_spam.html
>>> __
>>> distcc mailing list            http://distcc.samba.org/
>>> To unsubscribe or change options:
>>> https://lists.samba.org/mailman/listinfo/distcc
>> ____________________________________________________________________________________ 
>> Do you Yahoo!?
>> Everyone is raving about the all-new Yahoo! Mail beta.
>> http://new.mail.yahoo.com
> __distcc mailing list            http://distcc.samba.org/
> To unsubscribe or change 
> options:https://lists.samba.org/mailman/listinfo/distcc
Try localhost in /etc/distcc/hosts or as the DISTCC_HOSTS variable, this 
stops distcc from trying to connect to the distccd server at 
or start the distccd server with the correct args to allow connection 
from the required IP range.
All the details are in the man pages, if your distcc installed man pages 
aren't in a directory that man knows about explicitly call them (ie. man 


More information about the distcc mailing list