From owner-freebsd-hackers@FreeBSD.ORG Fri May 22 08:15:31 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 728BE106568F; Fri, 22 May 2009 08:15:29 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: from mail-ew0-f159.google.com (mail-ew0-f159.google.com [209.85.219.159]) by mx1.freebsd.org (Postfix) with ESMTP id 4D97E8FC0C; Fri, 22 May 2009 08:15:28 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: by ewy3 with SMTP id 3so1754064ewy.43 for ; Fri, 22 May 2009 01:15:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:cc :subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to; bh=FjZMV90dnZX/lx1t97owe6AO7vGkGOg8ojyskv9Hdcg=; b=oHkZaCOqncQTUWRtie64wm/Tp634I/CevMP0Bg+j+aqWtAPAfIq7CITKmoTbdlsbKH X1fEyOC4x5uJ3WOTGdhtQ0NiqU08cPx9Bs8F+ju/z4YX/l/N5qhLCSplyBEEGKyDbwlO zH1ba2yQcjy2y3T0yNXcZh3N7rO7FO4zcVcAw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; b=GgUSCso5jrzoRbzWdkkXhKJZq2JBWUjCWJ7mIh0K2eytcR1Miq3Vbov8AssracKu7i c9giUhWzshYdVkSnXtTKlkvKvclY44a+iMMkGyoWC1AjL4u1314+/8HX9agHcw3kU9zI x3umHEixU6T1FXlicoB47vH+xeCyCyUBtd8GI= Received: by 10.210.111.17 with SMTP id j17mr4418832ebc.63.1242980127163; Fri, 22 May 2009 01:15:27 -0700 (PDT) Received: from logik.internal.network (81-86-41-187.dsl.pipex.com [81.86.41.187]) by mx.google.com with ESMTPS id 18sm3018706ewy.93.2009.05.22.01.15.26 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 22 May 2009 01:15:26 -0700 (PDT) Received: by logik.internal.network (Postfix, from userid 11001) id 415195D59; Fri, 22 May 2009 08:15:25 +0000 (UTC) Date: Fri, 22 May 2009 09:15:25 +0100 From: xorquewasp@googlemail.com To: Stanislav Sedov Message-ID: <20090522081525.GA59432@logik.internal.network> References: <20090521095305.GA27043@logik.internal.network> <20090521161018.66b3015c@FreeBSD.org> <20090521164442.GA59069@logik.internal.network> <20090522025322.2acebb01.stas@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090522025322.2acebb01.stas@FreeBSD.org> Cc: freebsd-hackers@freebsd.org Subject: Re: compiling system binutils as cross tools 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: Fri, 22 May 2009 08:15:47 -0000 On 2009-05-22 02:53:22, Stanislav Sedov wrote: > > Why not make this compiler to use fresh binutils from cross-binutils > instead of using systems binutils? This will also allow to support > newer processor families and architectures. Is it possible to tell > GNAT where to look for binutils to assembly and link with? > Well, like I said, at the moment there's a choice of using the system binutils or the cross-binutils port. The compiler isn't actually intended to be a cross compiler but a native amd64 compiler (the lang/gnat-gcc* ports have been marked as i386-only for ages). I'm not sure if it's possible to tell GNAT where to look for binutils at runtime. I have some patches to send to both Adacore and the GCC developers to add support for FreeBSD amd64. I decided to use the system binutils because in order for someone to actually build the port, they have to use bootstrap compiler binaries provided by me (the gnat-gcc* ports do the same thing) and having those binaries depend on a moving target like cross-binutils might create even more complications. I'll be providing full documentation and build scripts to show how the bootstrapping compiler was created so if someone feels the need to use the cross-binutils port, they can. cheers, xw