Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
using a diifferent pc to help emerge
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
koenderoo
Guru
Guru


Joined: 03 Jan 2004
Posts: 514
Location: Zwolle, The Netherlands

PostPosted: Sat Sep 10, 2005 11:00 am    Post subject: using a diifferent pc to help emerge Reply with quote

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 :wink: )

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
View user's profile Send private message
Dlareh
Advocate
Advocate


Joined: 06 Aug 2005
Posts: 2102

PostPosted: Sat Sep 10, 2005 11:03 am    Post subject: Reply with quote

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
View user's profile Send private message
koenderoo
Guru
Guru


Joined: 03 Jan 2004
Posts: 514
Location: Zwolle, The Netherlands

PostPosted: Sat Sep 10, 2005 12:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Sat Sep 10, 2005 9:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
koenderoo
Guru
Guru


Joined: 03 Jan 2004
Posts: 514
Location: Zwolle, The Netherlands

PostPosted: Wed Sep 14, 2005 10:53 am    Post subject: Reply with quote

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 :lol:
Back to top
View user's profile Send private message
chrbecke
Guru
Guru


Joined: 12 Jul 2004
Posts: 598
Location: Berlin - Germany

PostPosted: Wed Sep 14, 2005 11:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Dlareh
Advocate
Advocate


Joined: 06 Aug 2005
Posts: 2102

PostPosted: Wed Sep 14, 2005 12:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
koenderoo
Guru
Guru


Joined: 03 Jan 2004
Posts: 514
Location: Zwolle, The Netherlands

PostPosted: Wed Sep 14, 2005 4:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
chrbecke
Guru
Guru


Joined: 12 Jul 2004
Posts: 598
Location: Berlin - Germany

PostPosted: Wed Sep 14, 2005 5:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
koenderoo
Guru
Guru


Joined: 03 Jan 2004
Posts: 514
Location: Zwolle, The Netherlands

PostPosted: Fri Sep 16, 2005 1:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dlareh
Advocate
Advocate


Joined: 06 Aug 2005
Posts: 2102

PostPosted: Fri Sep 16, 2005 1:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
koenderoo
Guru
Guru


Joined: 03 Jan 2004
Posts: 514
Location: Zwolle, The Netherlands

PostPosted: Fri Sep 16, 2005 2:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum