From owner-freebsd-questions@FreeBSD.ORG Mon Oct 10 14:40:38 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E0B716A420 for ; Mon, 10 Oct 2005 14:40:38 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DE6C43D58 for ; Mon, 10 Oct 2005 14:40:16 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j9AEeACU035986; Mon, 10 Oct 2005 09:40:10 -0500 (CDT) (envelope-from dan) Date: Mon, 10 Oct 2005 09:40:10 -0500 From: Dan Nelson To: Garrett Cooper Message-ID: <20051010144009.GG44754@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 Cc: FreeBSD Questions Subject: Re: distcc and cross-compiling for FreeBSD on Linux/Solaris X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 14:40:38 -0000 In the last episode (Oct 10), Garrett Cooper said: > On Oct 10, 2005, at 2:34 AM, Andrew P. wrote: > > We've got some mostly idle, but powerful sparc64 servers running > > Solaris 9/10, as well as a host of Linux servers (x86 and x86_64). > > Of course, all the real work is done on a pack of FreeBSD boxes :-) > > > > Some days ago I started using ccache and distcc, and I really love > > these tools. Now I want to get the Solaris and Linux servers to do > > something useful and compile world, kernels and ports for the > > FreeBSD boxes. Is there a somewhat comprehensive guide to this? Can > > somebody share his experience with me? I'm now looking into > > crosstool how-to's, but I have no knowledge of gcc intrinsics, and > > some points are very hard for me to understand. > > Good luck with that effort. Not to treat it as the feat is > entirely impossible, but I'm not sure how you would approach it > without using GNU lib stuff since linux runs via GNU libs whereas > FreeBSD uses their own libc package. Distcc takes care to only pass preprocessed source to remote hosts, and only distributes source->object compile requests, so you don't need FreeBSD headers or libraries on the other systems; just a cross-compiler. I can't help with setting up cross-compilers, but since there's a FAQ entry on it ( http://distcc.samba.org/faq.html#cross-compile ), doing what you want is certainly possible. -- Dan Nelson dnelson@allantgroup.com