Gentoo Archives: gentoo-user

From: Michael Sullivan <michael@××××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Does gcc not distribute with distcc?
Date: Sat, 20 Oct 2007 00:43:53
Message-Id: 1192840063.17229.26.camel@camille.espersunited.com
In Reply to: Re: [gentoo-user] Does gcc not distribute with distcc? by Alex Schuster
1 On Sat, 2007-10-20 at 01:39 +0200, Alex Schuster wrote:
2 > Michael Sullivan writes:
3 >
4 > > On Fri, 2007-10-19 at 20:15 +0200, Alex Schuster wrote:
5 >
6 > > > > Is this correct? I have three fast machines, 192.168.1.2 through
7 > > > > 192.168.1.4 and a slow machine I want to distribute for at
8 > > > > 192.168.1.5. Here's /etc/conf.d/distccd on the slow one:
9 > > >
10 > > > I think this one's not necessary, you only need to run the daemon on
11 > > > the fast machines.
12 > >
13 > > If I'm not running distccd on the slow machine, how does it know to
14 > > distribute the load amongst the other three?
15 >
16 > Oh, you're probably missing the distcc-config command? Use this:
17 > distcc-config --set-hosts "192.168.1.2 192.168.1.3 192.168.1.4"
18 >
19 > distcc works with a wrapper. When gcc is called, in
20 > fact /usr/lib/distcc/bin/gcc is called (*), which distributes to the hosts
21 > defined in /etc/distcc/hosts. Which is set by distcc-config.
22 >
23 > (*) If ccache is installed (I hope!), another wrapper for gcc which is
24 > called even before distcc is /usr/lib/ccache/bin/gcc. If the input is not
25 > already cached, /usr/lib/distcc/bin/gcc is called.
26 >
27 > Alex
28
29 I ran 'which gcc' on the slow machine and this came back:
30
31 bullet portage # ls -l /usr/bin/gcc
32 -rwxr-xr-x 1 root root 8232 Feb 10 2007 /usr/bin/gcc
33
34 Do I need to change this so that it points to /usr/lib/distcc/bin/gcc?
35
36 --
37 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Does gcc not distribute with distcc? Alex Schuster <wonko@×××××××××.org>