From owner-freebsd-arch@FreeBSD.ORG Wed Feb 27 15:30:09 2013 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D81FDAD7; Wed, 27 Feb 2013 15:30:09 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) by mx1.freebsd.org (Postfix) with ESMTP id 126789E4; Wed, 27 Feb 2013 15:30:08 +0000 (UTC) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.5/8.14.5) with ESMTP id r1RFUApD017629; Wed, 27 Feb 2013 09:30:10 -0600 (CST) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.5/8.14.5/Submit) id r1RFUA8v017628; Wed, 27 Feb 2013 09:30:10 -0600 (CST) (envelope-from brooks) Date: Wed, 27 Feb 2013 09:30:10 -0600 From: Brooks Davis To: Alfred Perlstein Subject: Re: [RFC] external compiler support Message-ID: <20130227153010.GA17489@lor.one-eyed-alien.net> References: <20130227003517.GB7348@lor.one-eyed-alien.net> <512D77D9.9020205@mu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FL5UXtIhxfXey3p5" Content-Disposition: inline In-Reply-To: <512D77D9.9020205@mu.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Brooks Davis , freebsd-arch@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2013 15:30:09 -0000 --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 26, 2013 at 07:04:57PM -0800, Alfred Perlstein wrote: > On 2/26/13 4:35 PM, Brooks Davis wrote: > > Below (and at http://people.freebsd.org/~brooks/patches/xcc.diff) you > > can find an initial patch with proposed commit for external compiler > > support. It relies on the existing cross binutils as I'm finding that > > the two are fairly separable. With this patch I've been able to build > > from amd64 to arm, amd64, and i386 using clang from the lang/clang-devel > > port. I've also compiled the tree with a customized clang being > > developed at the University of Cambridge. > > > > The patch is untested with gcc. > > > > Does this seem like a reasonable approach? I do plan to look at extern= al > > binutils support, but it's not on the critical path for our current work > > so I've opted to avoid it for now. > > > > As a bonus for those who don't need an external compiler, but do run > > make buildworld frequently, the XCC, XCXX, and XCPP variables can be set > > to the location of the installed base system compiler to avoid building > > the compiler twice during buildworld. >=20 > This is very cool work and it's non-invasive. Are there any downsides=20 > to bringing it in? (I can't see any). Other than an increasing pile of code to set up the cross build environment, I don't see a downside. It should be a no-op for most users. -- Brooks --FL5UXtIhxfXey3p5 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iD8DBQFRLiaCXY6L6fI4GtQRAuW+AKCQLKeRr26MpkQOW0dgd27ahFNwPQCgqETH 4QQh7UMEAwCxIgHa50MBCtM= =x4Iu -----END PGP SIGNATURE----- --FL5UXtIhxfXey3p5--