Gentoo Archives: gentoo-user

From: Thanasis <thanasis@××××××××××.org>
To: gentoo-user@l.g.o
Cc: YoYo Siska <yoyo@××××××.sk>
Subject: Re: [gentoo-user] distcc to compile Gentoo on the laptop
Date: Thu, 14 Jun 2012 05:23:10
Message-Id: 4FD974CF.5060902@asyr.hopto.org
In Reply to: Re: [gentoo-user] distcc to compile Gentoo on the laptop by YoYo Siska
1 on 06/14/2012 02:05 AM YoYo Siska wrote the following:
2
3 >
4 > 3. Mount the laptops root filesystem through nfs on the fast computer
5 > (use no_root_squash on the laptop export to have correct root access to
6 > files) bind-mount something local (disk or tmpfs if you have enough mem)
7 > over /var/tmp/portage, chroot into it (don't forget to mount /proc,
8 > maybe /sys and maybe bind-mount /dev, though that should not be needed
9 > and don't forget 'linux32 chroot') and run emerges there... you will
10 > actually be running everything on the fast computer, only the access to
11 > the laptops disk will be through the network. With a fast network it
12 > should be a lot faster then working ont the slower notebook (note that
13 > if you bind-mount /var/tmp/portage inside the chroot, most of the
14 > compilation will be working with a local disk...) Compared to the distcc
15 > method, even the configure phases will be much faster... I do this
16 > often with my Pentium M 1.6Ghz thinkpad laptop and my quad core amd64
17 > desktop...
18
19 Exactly. I do this too.
20 You also need to pay attention and set CFLAGS correctly and not to "native".
21 Like:
22 CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"