From owner-freebsd-hackers@FreeBSD.ORG Mon May 18 22:36:17 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 6658E1065679 for ; Mon, 18 May 2009 22:36:17 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id 031498FC1A for ; Mon, 18 May 2009 22:36:16 +0000 (UTC) (envelope-from deischen@freebsd.org) 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 n4IMaFpH025912; Mon, 18 May 2009 18:36:15 -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, 18 May 2009 18:36:15 -0400 (EDT) Date: Mon, 18 May 2009 18:36:15 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: xorquewasp@googlemail.com In-Reply-To: <20090518084831.GA95354@logik.internal.network> Message-ID: References: <20090504185644.GA16315@logik.internal.network> <20090505005128.GA4519@logik.internal.network> <20090505022151.GA32477@logik.internal.network> <20090506140325.GA69468@logik.internal.network> <20090506152222.GC69468@logik.internal.network> <20090508211022.GA37475@logik.internal.network> <20090518084831.GA95354@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 Reply-To: Daniel Eischen List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 May 2009 22:36:18 -0000 On Mon, 18 May 2009, xorquewasp@googlemail.com wrote: > Hi. > > After a week off, another update: > > I've realised, too late, that I'm using a version of binutils > (2.19) that's incompatible with the system binutils (2.15). > Specifically, assembler code emitted by the native GNAT contains > .cfi_personality directives (and no doubt other things too) that > can't be processed by the system 'as'. > > I've got two choices now and would appreciate some advice on > which to take given that I want to produce a FreeBSD port: > > 1. Compile binutils-2.15. > > Unfortunately, compiling these as cross-binutils appear to be problematic: Hmm, if the system binutils is 2.15, then it should build as a cross. You can do a cross build of all FreeBSD - I think you just set TARGET="amd64" to build amd64 from a different arch. Part of this process should be to create a cross binutils toolset. > 2. Continue to use binutils-2.19. > > This would appear to require me to create a binutils-2.19 port > just for the GNAT compiler. Seems like it would be preferable > to use the system binutils rather than to take this route... Well, I used a newer binutils on sparc when I did the original port. Once I built the cross compiler and binutils toolset, I was done with it. After the native compiler is built using the cross tools, you should be able to rebuild the native compiler _again_ but this time with the system (amd64) binutils. -- DE