From owner-freebsd-questions@FreeBSD.ORG Tue Mar 25 14:03:54 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80058106564A for ; Tue, 25 Mar 2008 14:03:54 +0000 (UTC) (envelope-from jamesh@lanl.gov) Received: from mailwasher.lanl.gov (mailwasher.lanl.gov [204.121.3.2]) by mx1.freebsd.org (Postfix) with ESMTP id 4E3D18FC2A for ; Tue, 25 Mar 2008 14:03:54 +0000 (UTC) (envelope-from jamesh@lanl.gov) Received: from mailwasher.lanl.gov (localhost.localdomain [127.0.0.1]) by mailwasher.lanl.gov (Postfix) with ESMTP id AD7E554024D; Tue, 25 Mar 2008 08:03:53 -0600 (MDT) Received: from mailwasher.lanl.gov (localhost.localdomain [127.0.0.1]) by mailwasher.lanl.gov (Postfix) with ESMTP id AC53D540263; Tue, 25 Mar 2008 08:03:53 -0600 (MDT) Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by mailwasher.lanl.gov (Postfix) with ESMTP id AAD0354024D; Tue, 25 Mar 2008 08:03:53 -0600 (MDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay1.lanl.gov (Postfix) with ESMTP id A7E8210C896A; Tue, 25 Mar 2008 08:03:53 -0600 (MDT) X-CTN-5-Virus-Scanner: amavisd-new at mailrelay1.lanl.gov Received: from mailrelay1.lanl.gov (localhost.localdomain [127.0.0.1]) by mailrelay1.lanl.gov (Postfix) with ESMTP id 94B7110C896F; Tue, 25 Mar 2008 08:03:53 -0600 (MDT) Received: from oppie-mail.lanl.gov (oppie-mail.lanl.gov [128.165.4.123]) by mailrelay1.lanl.gov (Postfix) with ESMTP id 92C2310C896A; Tue, 25 Mar 2008 08:03:53 -0600 (MDT) Received: from [128.165.86.60] (p25dual1.lanl.gov [128.165.86.60]) by oppie-mail.lanl.gov (Postfix) with ESMTP id D82421F8003; Tue, 25 Mar 2008 08:03:47 -0600 (MDT) From: James Harrison To: Wael Nasreddine In-Reply-To: <20080325061753.GA6160@phoenix.nasreddine.info> References: <20080325061753.GA6160@phoenix.nasreddine.info> Content-Type: text/plain Organization: Los Alamos National Labs Date: Tue, 25 Mar 2008 08:03:46 -0600 Message-Id: <1206453827.28606.27.camel@p25dual1.lanl.gov> Mime-Version: 1.0 X-Mailer: Evolution 2.8.0 (2.8.0-40.el5_1.1) Content-Transfer-Encoding: 7bit X-CTN-5-MailScanner-Information: Please see http://network.lanl.gov/email/virus-scan.php X-CTN-5-MailScanner: Found to be clean X-CTN-5-MailScanner-From: jamesh@lanl.gov X-Spam-Status: No Cc: FreeBSD Mailing List Subject: Re: Distcc + cross compiling X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jamesh@lanl.gov List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Mar 2008 14:03:54 -0000 On Tue, 2008-03-25 at 07:17 +0100, Wael Nasreddine wrote: > Hello, > > I have a FreeBSD x86 server, running FreeBSD 7.0-RELEASE, I'd like to > create a new jail with distcc and gcc to help my laptop compiling > gentoo x86 stuff, I'm using GCC 4.2.3 on my laptop... > > is it possible to use FreeBSD for compiling gentoo's stuff?? I heard > of cross-compiling but I have never tried it... if so, any guide > please ?? > > Thanks :) > Cross compiling refers to the practice of compiling on one hardware architecture for another hardware architecture, typically going from x86 to ARM I'd imagine. In this case, FreeBSD and gentoo put libraries in different places, call libraries by different names, and use an entirely different system of makefiles for packages. As such, I imagine that either you'd be better off making a virtual machine with gentoo installed in it on your FreeBSD box and compiling from there, or it's possible you could compile static binaries and use those. I'm not an expert on jails by any means, but my understanding is that the only OS you can use within a jail is FreeBSD, as all jailees share a common kernel. Best James