Gentoo Archives: gentoo-user

From: Pawel Kraszewski <Gentoo@××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] distcc
Date: Sat, 06 Jan 2007 14:30:57
Message-Id: 200701061527.31799.Gentoo@kraszewscy.net
In Reply to: [gentoo-user] distcc by sean
1 Dnia piątek, 5 stycznia 2007 14:47, sean napisał:
2
3 > I am reading over the info on distcc so that I might be able to setup an
4 > older P4 1.3 Ghz system to have help compiling from my dual Opteron
5 > (amd64 mode).
6 >
7 > I only want the Opteron to help the P4, not the other way around, the
8 > Opteron does not need the help.
9 >
10 > Is that configurable as such?
11 >
12 > Thanks
13 > Sean
14
15 Well, http://wiki.kraszewscy.net/Cross_DistCC shows how to do it (in Polish,
16 sorry).
17
18 In short:
19
20 ---8X---[ setup for COMPILER machine (AMD64) ]-------------------
21
22 1. make directory /opt/cross32/bin
23 2. make there a file "i686-pc-linux-gnu-wrapper" containing
24
25 #!/bin/bash
26 exec /usr/bin/x86_64-pc-linux-gnu-g${0:$[-2]} -m32 "$@"
27
28 3. make it executable
29 4. make soft links in that directory
30
31 ln -s i686-pc-linux-gnu-wrapper gcc
32 ln -s i686-pc-linux-gnu-wrapper g++
33 ln -s i686-pc-linux-gnu-wrapper c++
34 ln -s i686-pc-linux-gnu-wrapper cc
35 ln -s i686-pc-linux-gnu-wrapper i686-pc-linux-gnu-gcc
36 ln -s i686-pc-linux-gnu-wrapper i686-pc-linux-gnu-g++
37 ln -s i686-pc-linux-gnu-wrapper i686-pc-linux-gnu-c++
38 ln -s i686-pc-linux-gnu-wrapper i686-pc-linux-gnu-cc
39
40 5. copy "/etc/init.d/distccd" to "/etc/init.d/distccd32"
41
42 6. fix "/etc/init.d/distccd32" to have
43
44 TMPDIR="${TMPDIR}" \
45 PATH="/opt/cross32/bin" \
46 /sbin/start-stop-daemon –start –quiet –startas ${DISTCCD_EXEC} \
47
48 7. copy "/etc/conf.d/distccd" to "/etc/conf.d/distccd32"
49
50 8. fix "/etc/conf.d/distccd" to have
51
52 DISTCCD_OPTS="${DISTCCD_OPTS} --port 3664"
53
54 ---8X---[ end of setup for COMPILER machine (AMD64) ]-------------------
55
56 Now you have two distccd daemons:
57 * one at port 3632 for 32-bit distcompiling
58 * one at port 3664 for 64-bit distcompiling
59
60 At this point your Opterons will handle remote 32-bit compiling - you don't
61 need to make any changes on P4 machine other than activating regular distcc.
62
63 --
64 Pawel Kraszewski
65 www.kraszewscy.net
66
67 --
68 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] distcc sean <tech.junk@×××××××.net>