Pawel Kraszewski wrote:
Dnia piątek, 5 stycznia 2007 14:47, sean napisał:

I am reading over the info on distcc so that I might be able to setup an
older P4 1.3 Ghz system to have help compiling from my dual Opteron
(amd64 mode).

I only want the Opteron to help the P4, not the other way around, the
Opteron does not need the help.

Is that configurable as such?

                        Thanks
                        Sean

Well, http://wiki.kraszewscy.net/Cross_DistCC shows how to do it (in Polish, sorry).

In short:

---8X---[ setup for COMPILER machine (AMD64) ]-------------------

1. make directory /opt/cross32/bin
2. make there a file "i686-pc-linux-gnu-wrapper" containing

  #!/bin/bash
  exec /usr/bin/x86_64-pc-linux-gnu-g${0:$[-2]} -m32 "$@"

3. make it executable
4. make soft links in that directory

 ln -s i686-pc-linux-gnu-wrapper gcc
 ln -s i686-pc-linux-gnu-wrapper g++
 ln -s i686-pc-linux-gnu-wrapper c++
 ln -s i686-pc-linux-gnu-wrapper cc
 ln -s i686-pc-linux-gnu-wrapper i686-pc-linux-gnu-gcc
 ln -s i686-pc-linux-gnu-wrapper i686-pc-linux-gnu-g++
 ln -s i686-pc-linux-gnu-wrapper i686-pc-linux-gnu-c++
 ln -s i686-pc-linux-gnu-wrapper i686-pc-linux-gnu-cc

5. copy "/etc/init.d/distccd" to "/etc/init.d/distccd32"

6. fix "/etc/init.d/distccd32" to have

       TMPDIR="${TMPDIR}" \
       PATH="/opt/cross32/bin" \
       /sbin/start-stop-daemon –start –quiet –startas ${DISTCCD_EXEC} \

7. copy "/etc/conf.d/distccd" to "/etc/conf.d/distccd32"

8. fix "/etc/conf.d/distccd" to have

        DISTCCD_OPTS="${DISTCCD_OPTS} --port 3664"

---8X---[ end of setup for COMPILER machine (AMD64) ]-------------------

Now you have two distccd daemons: * one at port 3632 for 32-bit distcompiling
* one at port 3664 for 64-bit distcompiling

At this point your Opterons will handle remote 32-bit compiling - you don't need to make any changes on P4 machine other than activating regular distcc.


Thanks Pawel,

        Your steps are obviously a bit different then those listed here.
http://www.gentoo.org/doc/en/cross-compiling-distcc.xml

So you are stating just emerge crossdev, the run crossdev -t
and from the point where the web page states "Here is what you want to do:" (1.2) follow the instructions you listed here, rather then the web page?

                        Sean
--
gentoo-user@gentoo.org mailing list

Reply via email to