From owner-freebsd-hackers@FreeBSD.ORG Mon May 4 18:56:49 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 3E3771065674 for ; Mon, 4 May 2009 18:56:49 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: from mail-ew0-f171.google.com (mail-ew0-f171.google.com [209.85.219.171]) by mx1.freebsd.org (Postfix) with ESMTP id 802078FC0C for ; Mon, 4 May 2009 18:56:48 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: by ewy19 with SMTP id 19so4041277ewy.43 for ; Mon, 04 May 2009 11:56:47 -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=OCWjqmBp6Mwhr+0nkfwHnk55ZHtAS7EcsLX/4t3a4PI=; b=ROanvNdrG6wfEobDxJvSDTCw7nXiFG+VwvqDv2HRdwz0pzKmPWK2a6UUNdhkUNT9mW HWum9U/npvYdRur3fiFmMl1xexFvmehcQdXg2Mzi6hNm6S9RPFXgnqrIB4BT1e4C7qi3 Cjf9wd5BBeelu6H3u5TTTdMI0KhFiy8u2/aE8= 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=Bs9mjphsiWl9RbSwrTp6qFKc9NN0BETxm+kPOOJw7AEQ8fhHAcm0CmEcV1WokgpvJU PkE5Cq5+L0uU36BvG2pe3oS/xHJ/nF4WxFc3rpm9Udfv8067V/7+oZgKoCR0EgEyxiJN vijxfo/4YWmjpQcdwpgLP1wiR7sA3eQ8UKZgs= Received: by 10.216.1.85 with SMTP id 63mr1865861wec.26.1241463407163; Mon, 04 May 2009 11:56:47 -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 28sm7763274ewy.24.2009.05.04.11.56.46 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 May 2009 11:56:46 -0700 (PDT) Received: by logik.internal.network (Postfix, from userid 11001) id 77BD15C31; Mon, 4 May 2009 18:56:44 +0000 (UTC) Date: Mon, 4 May 2009 19:56:44 +0100 From: xorquewasp@googlemail.com To: Daniel Eischen Message-ID: <20090504185644.GA16315@logik.internal.network> References: <20090504182714.GA52480@logik.internal.network> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: Mon, 04 May 2009 18:56:49 -0000 On 2009-05-04 14:44:52, Daniel Eischen wrote: > Is that your only system (amd64)? I originally > ported GNAT to FreeBSD x86 from a solaris-sparc32 system. > I built a sparc-sun-freebsd GNAT cross compiler using > the native Solaris GNAT binary and its associated > sources. I also (first) had to cross build binutils > similarly. This made a cross compiler that ran on > Solaris and built ELF binaries for FreeBSD. I then > used this cross compiler to rebuild GNAT as a FreeBSD > binary. So it was 2 major steps: build a cross compiler, > then use the cross to build a native compiler. > > It's been years since I've done that. I don't know > how much has changed, but you probably have to do > something similar. > > -- > DE Hello. I have a debian system with a working x86 gnat gcc 4.3.3 and a freebsd x86 system running gnat gcc 4.3.2. I guess the first step will be an i386->amd64 cross compiler then. Thanks, xw