1 |
On Sunday 03 April 2005 13:21, Andrew de Quincey wrote: |
2 |
> On Sunday 03 April 2005 13:18, Andrew de Quincey wrote: |
3 |
> > On Sunday 03 April 2005 11:35, Stuart Longland wrote: |
4 |
> > > Andrew de Quincey wrote: |
5 |
> > > > On Sunday 03 April 2005 03:10, Andrew Gaffney wrote: |
6 |
> > > >>Andrew de Quincey wrote: |
7 |
> > > >>>Hi, I hope this is the correct place to send this. |
8 |
> > > >>> |
9 |
> > > >>>I have setup distcc in my network. Most of the hosts are i686, but |
10 |
> > > >>> one of them is x86_64. I wish to distribute tasks to the i686 |
11 |
> > > >>> machines from the x86_64 machine. This involves installing a cross |
12 |
> > > >>> compiler on the i686 machines for x86_64 tasks. Crossdev is |
13 |
> > > >>> overkill for this - I don't actually _need_ glibc and the like on |
14 |
> > > >>> the client machines for a simple distcc environment. It really adds |
15 |
> > > >>> to the upgrade time when emerge sync; emerge worlding. |
16 |
> > > >> |
17 |
> > > >>crossdev -s1 -t <x86_64 CHOST> |
18 |
> > > > |
19 |
> > > > According to the docs, that doesn't compile a c++ compiler: |
20 |
> > > > |
21 |
> > > > -s1, --stage1 Build a C compiler (no libc/C++) |
22 |
> > > |
23 |
> > > And guess what... no libc... no c++. |
24 |
|
25 |
The dependency on libc is not in the c++ compiler. This is what led me to |
26 |
realise I could do this. The dependency on libc comes from when it builds the |
27 |
target libraries - libgcc & libstdc++ and the like. |
28 |
|
29 |
First of all, gcc builds all the compilers - C and C++. After its done that, |
30 |
it compiles libgcc etc - and as I said earlier, this is what needs a libc for |
31 |
the target machine. |
32 |
|
33 |
My patch simply disables the compilation/installation of the target machine's |
34 |
libraries. All you end up with are the binaries of the cross compilers; which |
35 |
is all you really want for distcc. |
36 |
|
37 |
Have you had a chance to try it out yet? Lemme know if you like it, and I'll |
38 |
see if I can clean it up more. |
39 |
-- |
40 |
gentoo-dev@g.o mailing list |