View previous topic :: View next topic |
Author |
Message |
koenderoo Guru
Joined: 03 Jan 2004 Posts: 514 Location: Zwolle, The Netherlands
|
Posted: Sat Sep 10, 2005 11:00 am Post subject: using a diifferent pc to help emerge |
|
|
I've heard somewhere that it is possible to have a pc do an emerge and have a different pc helping it do so.
I'm don't know how it's called and how it works, but it sure sound good.
Can anyone help me setting this up and maybe explain how it works? (if it's possible at all )
I have a little bit slow machine which can use a little help from his big brother (an AMD Thunderbird 1000 can use the help from an AMD64 3400+) |
|
Back to top |
|
|
Dlareh Advocate
Joined: 06 Aug 2005 Posts: 2102
|
Posted: Sat Sep 10, 2005 11:03 am Post subject: |
|
|
http://www.gentoo.org/doc/en/distcc.xml , but setting up an AMD64 to compile 32 bit code can be tricky...
There is also the non-distributed method: https://forums.gentoo.org/viewtopic-p-2694145.html#2694145 . It is mostly useful for particularly slow machines that are two slow to be effective head nodes, but this method might be worth it if e.g. you want to rebuild the thunderbird's entire system (emerge -e world, or the ilk) _________________ "Mr Thomas Edison has been up on the two previous nights discovering 'a bug' in his phonograph." --Pall Mall Gazette (1889)
Are we THERE yet? |
|
Back to top |
|
|
koenderoo Guru
Joined: 03 Jan 2004 Posts: 514 Location: Zwolle, The Netherlands
|
Posted: Sat Sep 10, 2005 12:49 pm Post subject: |
|
|
I've installed it completely through the handbook, but keep getting: failed to distubute, running localy instead.
They can ping each other and I've set the right network address as host.
What am I doing wrong? |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sat Sep 10, 2005 9:37 pm Post subject: |
|
|
Do you have CHOST="i686-pc-linux-gnu" on both machines ?
If the CHOST doesn't match, then you are cross-compiling, which is more difficult to setup. |
|
Back to top |
|
|
koenderoo Guru
Joined: 03 Jan 2004 Posts: 514 Location: Zwolle, The Netherlands
|
Posted: Wed Sep 14, 2005 10:53 am Post subject: |
|
|
I've been reading that Cross-compiling howto http://dev.gentoo.org/~vapier/CROSS-COMPILE-HOWTO but I'm not sure what it wants to do.
It looks like it's building the packages for the other system, but keeps them on it's own. Doubt that's the way to do it.
Or can I just emerge crossdev on both machines and try again like mentioned in the header? I sure hope so |
|
Back to top |
|
|
chrbecke Guru
Joined: 12 Jul 2004 Posts: 598 Location: Berlin - Germany
|
Posted: Wed Sep 14, 2005 11:05 am Post subject: |
|
|
You could try method 3 as described here. But as you want to compile for a 32 bit system on a 64 bit system, I'm not sure if it will work. |
|
Back to top |
|
|
Dlareh Advocate
Joined: 06 Aug 2005 Posts: 2102
|
Posted: Wed Sep 14, 2005 12:02 pm Post subject: |
|
|
chrbecke wrote: | You could try method 3 as described here. |
Nice guide! (much more so than what I cobbled together, anyway)
Quote: | But as you want to compile for a 32 bit system on a 64 bit system, I'm not sure if it will work. |
It will. _________________ "Mr Thomas Edison has been up on the two previous nights discovering 'a bug' in his phonograph." --Pall Mall Gazette (1889)
Are we THERE yet? |
|
Back to top |
|
|
koenderoo Guru
Joined: 03 Jan 2004 Posts: 514 Location: Zwolle, The Netherlands
|
Posted: Wed Sep 14, 2005 4:58 pm Post subject: |
|
|
Not that it matters, it seems to be working any way, but I'm not using the 64 bit functionality (yet).
Any one has experience with that cross compiling thing?
How should I set that up? |
|
Back to top |
|
|
chrbecke Guru
Joined: 12 Jul 2004 Posts: 598 Location: Berlin - Germany
|
Posted: Wed Sep 14, 2005 5:14 pm Post subject: |
|
|
If you want to compile on your Athlon 64 for your Thunderbird Athlon, you don't have to cross compile. Just setup distcc, or, as I would suggest, follow my guide.
Cross compiling is only needed if you want to compile for a different CPU architecture, e.g. compile on your Athlon for a PPC. |
|
Back to top |
|
|
koenderoo Guru
Joined: 03 Jan 2004 Posts: 514 Location: Zwolle, The Netherlands
|
Posted: Fri Sep 16, 2005 1:45 pm Post subject: |
|
|
I've been checking my configuration over and over, but the distcc guide won't help me anymore. I've set the security setting to allow and did the distcc-config stuff.
Still no working distcc.
I did not give Crossdev a go, I think I will do this tonight to see what's happening then. |
|
Back to top |
|
|
Dlareh Advocate
Joined: 06 Aug 2005 Posts: 2102
|
Posted: Fri Sep 16, 2005 1:47 pm Post subject: |
|
|
koenderoo wrote: | I've been checking my configuration over and over, but the distcc guide won't help me anymore. I've set the security setting to allow and did the distcc-config stuff.
Still no working distcc.
I did not give Crossdev a go, I think I will do this tonight to see what's happening then. |
Yow, you don't need crossdev, just use an athlon-xp tarball.
Setting up an AMD64 host to compile 32 bit code is not trivial; it's doable, and there are guides that suggest appending -m32 to a seperate init script listening on a different port, but I wouldn't bother.... _________________ "Mr Thomas Edison has been up on the two previous nights discovering 'a bug' in his phonograph." --Pall Mall Gazette (1889)
Are we THERE yet? |
|
Back to top |
|
|
koenderoo Guru
Joined: 03 Jan 2004 Posts: 514 Location: Zwolle, The Netherlands
|
Posted: Fri Sep 16, 2005 2:05 pm Post subject: |
|
|
I think you are assuming I'm still in the first stage. but I have two working systems already. I want the quick one to help the slow one with the larger packages that need updating.
Is there a way to get more info from the slow machine, telling me why it won't distribute?
Maybe the answer is in some log file.
How do I check that they are able to communicate at all? |
|
Back to top |
|
|
|