Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Use desktop PC to accelerate compiling on Asus Eee PC 1000H
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
Deadly Assassin
n00b
n00b


Joined: 01 Aug 2010
Posts: 46
Location: Germany

PostPosted: Fri Jun 29, 2012 12:14 am    Post subject: Use desktop PC to accelerate compiling on Asus Eee PC 1000H Reply with quote

Currently I am running Gentoo 64Bit on my desktop PC with an AMD FX-8120. Now I want to setup my Eee PC 1000H with Gentoo 32Bit, because every other distro just "feels" wrong! =) But compiling on my netbook would take a couple of time. So here is my question:

What would be the best way to use the power of my desktop PC to accelerate compiling on my Eee PC?
Thanks!
_________________
Human knowledge belongs to the world!
BluePanel - Source that matters…
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Fri Jun 29, 2012 12:44 am    Post subject: Reply with quote

Simplest would be distcc in pump mode. But you could create binary packages in 32-bit chroot. There are other ways, too.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2006

PostPosted: Fri Jun 29, 2012 8:32 am    Post subject: Reply with quote

Jaglover wrote:
Simplest would be distcc in pump mode. But you could create binary packages in 32-bit chroot. There are other ways, too.

I have a similar setup, and use distcc and crossdev (on the desktop, to handle the difference between the hardwares). Though it's a bit involved, it makes recompiling chromium or KDE feasible; otherwise it would take more than a day
_________________
Greybeard
Back to top
View user's profile Send private message
Deadly Assassin
n00b
n00b


Joined: 01 Aug 2010
Posts: 46
Location: Germany

PostPosted: Sun Jul 01, 2012 4:49 pm    Post subject: Reply with quote

Jaglover wrote:
Simplest would be distcc in pump mode. But you could create binary packages in 32-bit chroot.

Does distcc has any disadvantages? Can you recommend a guide for setting up distcc with crosscompiling to me?

Jaglover wrote:
There are other ways, too.

What other ways are there?

I read about icecream. Does anybody has experience with it?
_________________
Human knowledge belongs to the world!
BluePanel - Source that matters…
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Jul 01, 2012 8:13 pm    Post subject: Reply with quote

http://www.gentoo.org/doc/en/distcc.xml

http://www.gentoo.org/doc/en/cross-compiling-distcc.xml

Other options.
You can set up a 32 bit chroot in your 64 bit PC and produce binary packages for your netbook, I think you even can mount the root of netbook over NFS and use it as chroot.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Deadly Assassin
n00b
n00b


Joined: 01 Aug 2010
Posts: 46
Location: Germany

PostPosted: Fri Jul 06, 2012 1:20 pm    Post subject: Reply with quote

I tried to set up distcc, but seems like it is not running. How can I find out misconfiguration?
_________________
Human knowledge belongs to the world!
BluePanel - Source that matters…
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Fri Jul 06, 2012 9:48 pm    Post subject: Reply with quote

Deadly Assassin wrote:
I tried to set up distcc, but seems like it is not running. How can I find out misconfiguration?


emerge distcc
set up /etc/distcc/hosts
then make sure to add FEATURES="distcc" to make.conf

one other thing to note, using -march=native on your 32bit machine disables distcc

my personal preference is to just do a 32bit chroot on the 64bit machine (just untar a 32bit stage3 onto your 64bit machine, bind mount /proc and /dev, then linux32 chroot /mnt/gentoo32 /bin/bash (replace /mnt/gentoo32 with wherever youve untarred things), untar portage from within the chroot *after* chrooting, set up make.conf, build whatever you like)

build binary packages within the chroot, transfer them to the 32bit machine, done and done
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
Deadly Assassin
n00b
n00b


Joined: 01 Aug 2010
Posts: 46
Location: Germany

PostPosted: Sat Jul 07, 2012 11:44 am    Post subject: Reply with quote

It is still not working.

Here are my config files:

Eee PC 32Bit (192.168.1.30):
http://bpaste.net/show/33813/
http://bpaste.net/show/33809/
http://bpaste.net/show/33811/
http://bpaste.net/show/33812/

Desktop 64Bit (192.168.1.24):
http://bpaste.net/show/33814/
http://bpaste.net/show/33815/
http://bpaste.net/show/33816/
_________________
Human knowledge belongs to the world!
BluePanel - Source that matters…
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sat Jul 07, 2012 8:22 pm    Post subject: Reply with quote

You do not want localhost for netbook, there is no need to configure distcc server in netbook.
distcc daemon must be running in helper box.
To use pump mode:
Code:
pump emerge foo

_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Deadly Assassin
n00b
n00b


Joined: 01 Aug 2010
Posts: 46
Location: Germany

PostPosted: Sat Jul 07, 2012 10:51 pm    Post subject: Reply with quote

I removed localhost from /etc/distcc/hosts on my netbook.

I tried to execute pump on my Eee PC, but it doesn't work:
http://bpaste.net/show/33931/
_________________
Human knowledge belongs to the world!
BluePanel - Source that matters…
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sat Jul 07, 2012 11:05 pm    Post subject: Reply with quote

Quote:
# pump emerge gnome
Using distcc-pump from /usr/bin
/usr/bin/pump: error: pump mode requested, but distcc hosts list does not contain any hosts with ',cpp' option

It is recommended you post your errors here, only huge logs go to pastebin.

That said, isn't this error self-explanatory? You have to dedicate at least one helper with cpp option in your netbook hosts.

And you really should run emerge with -av to see what you are doing.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Deadly Assassin
n00b
n00b


Joined: 01 Aug 2010
Posts: 46
Location: Germany

PostPosted: Sat Jul 07, 2012 11:40 pm    Post subject: Reply with quote

I changed my /etc/distcc/hosts to
Code:
192.168.1.24,cpp,lzo

then I tried again
Code:
pump emerge -avq gnome

on my netbook but
Code:
distccmon-gui

doesn't display any task

Update:
I found the error. It's kind of embarrassing. :oops:
http://bpaste.net/show/33813/
In line 14 was a typing error.

Now everything runs fine.
But I have got one more question: Is there a way to disable compiling on my netbook completely? Only my desktop PC should be used if it is possible
Thanks!
_________________
Human knowledge belongs to the world!
BluePanel - Source that matters…
Back to top
View user's profile Send private message
Deadly Assassin
n00b
n00b


Joined: 01 Aug 2010
Posts: 46
Location: Germany

PostPosted: Thu Jul 12, 2012 8:15 pm    Post subject: Reply with quote

I couldn't notice a real acceleration of compiling with distcc enabled and for some packages I had to disable it to compile without errors.
Is the a measurable improvement of using chroot?
_________________
Human knowledge belongs to the world!
BluePanel - Source that matters…
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Jul 12, 2012 8:50 pm    Post subject: Reply with quote

If you use the 32-bit chroot then you can practically duplicate the whole netbook in chroot with USE flags, etc. Just add FEATURES="buildpkg" to the make.conf in your chroot.
Then share your /usr/portage over NFS, mount it from your netbook and add FEATURES="getbinpkg" to the make.conf.

Alternative: I haven't tried it, but I see no reason why you could not be able to mount the / of netbook over NFS and use it as 32-bit chroot.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
gcasillo
l33t
l33t


Joined: 23 Sep 2003
Posts: 739
Location: Cincinnati, Ohio, USA

PostPosted: Tue Jul 17, 2012 7:32 pm    Post subject: Reply with quote

I would recommend icecream over distcc...when icecream works. Lesser configuration needed for icecream. Unfortunately, icecream is bug-riddled at the moment, and no one seems to be in a hurry to fix it. :?
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