From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QwBIH-0000gx-Ro for garchives@archives.gentoo.org; Wed, 24 Aug 2011 11:06:50 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 65C1521C2D3; Wed, 24 Aug 2011 11:06:23 +0000 (UTC) Received: from mail-gy0-f181.google.com (mail-gy0-f181.google.com [209.85.160.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 3901E21C17A for ; Wed, 24 Aug 2011 11:04:43 +0000 (UTC) Received: by gyg8 with SMTP id 8so981357gyg.40 for ; Wed, 24 Aug 2011 04:04:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=TIRn5o2cMkYVhDCfW00eabtJySeEs2tktsWGfmbrVnY=; b=Dg6yU1+NOQBaOc/fnNY9qkvfJtHpEGcZKxBoLaTSPZN2ZQ9ySc6iisOtnmnlP0HDxN QghU66qUBkeelrY6RgoIuVpZycbY1gnOHmpypmVWZkywLRldbRAk54q7ixQx9Y7j01mr o1CQxJupfsHb2zEuGrEjhsJLZV7c38b7IPemw= Received: by 10.101.131.4 with SMTP id i4mr4505012ann.61.1314183882644; Wed, 24 Aug 2011 04:04:42 -0700 (PDT) Received: from [192.168.2.5] (adsl-65-0-116-190.jan.bellsouth.net [65.0.116.190]) by mx.google.com with ESMTPS id h15sm806463ank.13.2011.08.24.04.04.40 (version=SSLv3 cipher=OTHER); Wed, 24 Aug 2011 04:04:41 -0700 (PDT) Message-ID: <4E54DAC7.4050902@gmail.com> Date: Wed, 24 Aug 2011 06:04:39 -0500 From: Dale User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.19) Gecko/20110816 Gentoo/2.0.14-r1 SeaMonkey/2.0.14 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Hoping someone can help explain distcc to me References: <4E50718E.8020709@gmail.com> <201108211041.56704.peter@humphrey.ukfsn.org> In-Reply-To: <201108211041.56704.peter@humphrey.ukfsn.org> Content-Type: text/plain; charset=ISO-8859-6; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: f5e514119dc981f21dbbf39bbb94557e Peter Humphrey wrote: > On Sunday 21 August 2011 04:04:05 Matthew Finkel wrote: > > >> On Sat, Aug 20, 2011 at 10:46 PM, Dale wrote: >> >>> How hard is it to set up a 64 bit machine to compile programs for a 32 >>> bit system? >>> >>> Dale >>> >>> :-) :-) >>> >> It's actually quite easy. IIRC, when I did it last, the only difference >> is that when you chroot into the subsystem you need prefix the command >> with linux32, e.g. linux32 chroot /path/to/chroot /bin/bash >> > Yes, just follow this guide: > http://www.gentoo.org/proj/en/base/amd64/howtos/chroot.xml > > I did that and it was straightforward as far as I remember. I did spend some > time thinking at a few stages, to get an understanding of what I was doing > rather than just blindly following somebody else's prescription. > > Then it's a matter of writing some simple scripts to mount the packages > directory on the big host. Here's mine, most of which I scrounged from > somewhere: > > $ cat /etc/init.d/atom > #!/sbin/runscript > > depend() { > need localmount > need bootmisc > } > > start() { > ebegin "Mounting 32-bit chroot dirs" > mount -o bind /dev /mnt/atom/dev>/dev/null > mount -o bind /dev/pts /mnt/atom/dev/pts>/dev/null > mount -o bind /dev/shm /mnt/atom/dev/shm>/dev/null > mount -t proc /proc /mnt/atom/proc>/dev/null > mount -o bind /sys /mnt/atom/sys>/dev/null > mount -o bind /tmp /mnt/atom/tmp>/dev/null > mount -t nfs -o vers=3 192.168.2.2:/usr/portage/packages > /mnt/atom/usr/portage/packages > eend $? "An error occurred while attempting to mount 32-bit chroot > directories" > ebegin "Copying 32-bit chroot files" > cp -pf /etc/resolv.conf /mnt/atom/etc/>/dev/null > cp -pf /etc/passwd /mnt/atom/etc/>/dev/null > cp -pf /etc/shadow /mnt/atom/etc/>/dev/null > cp -pf /etc/group /mnt/atom/etc/>/dev/null > cp -pf /etc/hosts /mnt/atom/etc/> /dev/null > cp -Ppf /etc/localtime /mnt/atom/etc/>/dev/null > eend $? "An error occurred while attempting to copy 32-bit chroot files." > } > > stop() { > ebegin "Unmounting 32-bit chroot dirs" > umount -f /mnt/atom/dev/pts>/dev/null > umount -f /mnt/atom/dev/shm>/dev/null > umount -f /mnt/atom/dev>/dev/null > umount -f /mnt/atom/proc>/dev/null > umount -f /mnt/atom/sys>/dev/null > umount -f /mnt/atom/tmp>/dev/null > umount -f /mnt/atom/usr/portage/packages>/dev/null > eend $? "An error occurred while attempting to unmount 32-bit chroot > directories" > } > > I could list the steps of my daily routine to upgrade both the client and > the chroot if that would help. > > I followed the guide and some info here and it seems to have worked great. I'm glad. The cooler on the heatsink is VERY whimpy. It's aluminum and has a little 60mm fan on it. I didn't measure it but its certainly not as big as my 80mm. I can barely feel the air it moves. Compiling on htat would likely be a problem pretty quick. Now to get the install moved over to the other rig. DVD and a tarball maybe? Hmmmm, I got to think on this one. It's almost 5Gbs worth. Maybe man scp will help. ;-) Thanks for the link. This was awesome!! Dale :-) :-) P. S. Now I can build binaries for my old rig too. :-D