View previous topic :: View next topic |
Author |
Message |
Deadly Assassin n00b
Joined: 01 Aug 2010 Posts: 46 Location: Germany
|
Posted: Fri Jun 29, 2012 12:14 am Post subject: Use desktop PC to accelerate compiling on Asus Eee PC 1000H |
|
|
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 |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Goverp Advocate
Joined: 07 Mar 2007 Posts: 2006
|
Posted: Fri Jun 29, 2012 8:32 am Post subject: |
|
|
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 |
|
|
Deadly Assassin n00b
Joined: 01 Aug 2010 Posts: 46 Location: Germany
|
Posted: Sun Jul 01, 2012 4:49 pm Post subject: |
|
|
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 |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Deadly Assassin n00b
Joined: 01 Aug 2010 Posts: 46 Location: Germany
|
Posted: Fri Jul 06, 2012 1:20 pm Post subject: |
|
|
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 |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Fri Jul 06, 2012 9:48 pm Post subject: |
|
|
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 |
|
|
Deadly Assassin n00b
Joined: 01 Aug 2010 Posts: 46 Location: Germany
|
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Deadly Assassin n00b
Joined: 01 Aug 2010 Posts: 46 Location: Germany
|
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Sat Jul 07, 2012 11:05 pm Post subject: |
|
|
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 |
|
|
Deadly Assassin n00b
Joined: 01 Aug 2010 Posts: 46 Location: Germany
|
Posted: Sat Jul 07, 2012 11:40 pm Post subject: |
|
|
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
doesn't display any task
Update:
I found the error. It's kind of embarrassing.
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 |
|
|
Deadly Assassin n00b
Joined: 01 Aug 2010 Posts: 46 Location: Germany
|
Posted: Thu Jul 12, 2012 8:15 pm Post subject: |
|
|
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 |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Thu Jul 12, 2012 8:50 pm Post subject: |
|
|
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 |
|
|
gcasillo l33t
Joined: 23 Sep 2003 Posts: 739 Location: Cincinnati, Ohio, USA
|
Posted: Tue Jul 17, 2012 7:32 pm Post subject: |
|
|
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 |
|
|
|