Gentoo Archives: gentoo-user

From: Alex Schuster <wonko@×××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Does gcc not distribute with distcc?
Date: Sat, 20 Oct 2007 02:00:50
Message-Id: 200710200344.35293.wonko@wonkology.org
In Reply to: Re: [gentoo-user] Does gcc not distribute with distcc? by Michael Sullivan
1 Michael Sullivan writes:
2
3 > On Sat, 2007-10-20 at 01:39 +0200, Alex Schuster wrote:
4 > > Michael Sullivan writes:
5 > > > On Fri, 2007-10-19 at 20:15 +0200, Alex Schuster wrote:
6
7 > > distcc works with a wrapper. When gcc is called, in
8 > > fact /usr/lib/distcc/bin/gcc is called (*), which distributes to the
9 > > hosts defined in /etc/distcc/hosts. Which is set by distcc-config.
10
11 > > (*) If ccache is installed (I hope!), another wrapper for gcc which is
12 > > called even before distcc is /usr/lib/ccache/bin/gcc. If the input is
13 > > not already cached, /usr/lib/distcc/bin/gcc is called.
14 > >
15 > > Alex
16 >
17 > I ran 'which gcc' on the slow machine and this came back:
18
19 I recommend using the bash builtin 'type gcc' for such things, as this would
20 also list shell functions and aliases.
21
22 > bullet portage # ls -l /usr/bin/gcc
23 > -rwxr-xr-x 1 root root 8232 Feb 10 2007 /usr/bin/gcc
24 >
25 > Do I need to change this so that it points to /usr/lib/distcc/bin/gcc?
26
27 Accordig to <http://www.gentoo.org/doc/en/distcc.xml>, this is not
28 necessary. When "distcc" is listened in the FEATURES list
29 in /etc/make.conf, emerge will use it. Well, should use it.
30
31 If you like to use ccache and distcc for stuff you compile manually, add
32 something like
33 PATH=/usr/lib/ccache/bin:/usr/lib/distcc/bin:${PATH}
34 to your /etc/profile.
35
36 wonko@weird ~ --> type gcc
37 gcc is /usr/lib/ccache/bin/gcc
38
39 Alex
40 --
41 gentoo-user@g.o mailing list