From owner-freebsd-hackers@FreeBSD.ORG Tue May 5 01:19:21 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45E6B106564A for ; Tue, 5 May 2009 01:19:21 +0000 (UTC) (envelope-from eischen@vigrid.com) Received: from mail.netplex.net (mail.netplex.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id EB3258FC22 for ; Tue, 5 May 2009 01:19:20 +0000 (UTC) (envelope-from eischen@vigrid.com) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.14.3/8.14.3/NETPLEX) with ESMTP id n450sk4j028678; Mon, 4 May 2009 20:54:46 -0400 (EDT) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-4.0 (mail.netplex.net [204.213.176.10]); Mon, 04 May 2009 20:54:46 -0400 (EDT) Date: Mon, 4 May 2009 20:54:46 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: xorquewasp@googlemail.com In-Reply-To: <20090505005128.GA4519@logik.internal.network> Message-ID: References: <20090504182714.GA52480@logik.internal.network> <20090504185644.GA16315@logik.internal.network> <20090505005128.GA4519@logik.internal.network> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: bootstrapping gnat GCC on amd64 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 May 2009 01:19:21 -0000 On Tue, 5 May 2009, xorquewasp@googlemail.com wrote: > On 2009-05-04 15:03:32, Daniel Eischen wrote: >> Right, you should be able to do it from either of those, >> but perhaps the freebsd x86 may be easier. >> >> I would use a PREFIX other than /usr/local (or something >> different than whatever your actual PREFIX is) for the >> builds. >> >> I was looking around for my notes but can't find them. >> If I do find them, I'll post them. > > I've built an i386 jail and am currently building the > gnat-gcc43 port to compile a GNAT cross-compiler (i386 -> > amd64). > > There are two reasons for this whole exercise: I just moved > over to amd64 and want a native toolchain and I also have a > lot of software written in Ada that I'd like to submit to > FreeBSD ports but can't due a lack of an Ada compiler on amd64. > > I noticed that the gnat-gcc43 port downloads a rather > anonymous set of gcc 4.1 bootstrap binaries. I assume I'd > have to provide my own in the same manner to create a port? Yes, you can look at my lang/gnat port to find its bootstrap compiler. I would recommend making a binary bootstrap compiler on the earliest version of FreeBSD amd64 as you can. If you use 8.0-current for instance, others will not be able to build the port on 7.x. -- DE