From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 29 21:47:35 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 83874106566C for ; Mon, 29 Jun 2009 21:47:35 +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 18F9D8FC14 for ; Mon, 29 Jun 2009 21:47:34 +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 n5TLRenu001508; Mon, 29 Jun 2009 17:27:40 -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.2.2 (mail.netplex.net [204.213.176.10]); Mon, 29 Jun 2009 17:27:41 -0400 (EDT) Date: Mon, 29 Jun 2009 17:27:40 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: xorquewasp@googlemail.com In-Reply-To: <20090519135917.GA5391@logik.internal.network> Message-ID: References: <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> <20090519114548.GA8610@logik.internal.network> <20090519135917.GA5391@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: Mon, 29 Jun 2009 21:47:35 -0000 How's this all going? I'm updating lang/gnat to gnat-2009 right now. In the GNAT sources, it has build instructions including how to build the cross - see below. -- DE -------------------------------------- -- BUILDING GNAT - EXAMPLE SEQUENCE -- -------------------------------------- Supposing you have one tarball for the GCC sources and one for the GNAT sources, here is a possible way to proceed: 0/ If not available on your system, build libgmp and libmpfr following build instructions from these packages. 1/ Create a root directory into which you'll later setup the source and build subdirectories: ~ $ mkdir GNAT ~ $ cd GNAT 2/ Setup an initial source tree from the GCC and the GNAT tarballs: ~/GNAT $ gzip -dc [...]/gcc-4.3*.tgz | tar xf - ~/GNAT $ mv gcc-4* src ~/GNAT $ cd src ~/GNAT/src $ gzip -dc [...]/gnat-xxx-src.tgz | tar xf - ~/GNAT/src $ mv gnat-xxx-src/src/ada gcc ~/GNAT/src $ patch -p0 < gnat-xxx-src/src/gcc-43.dif ~/GNAT/src $ touch gcc/cstamp-h.in 3/ Prepare and configure the build tree: ~/GNAT/src $ mkdir ../obj; cd ../obj ~/GNAT/obj $ ../src/configure --enable-languages="c,ada" --disable-libada ... [see the GCC documentation for other relevant configure options] 4/ Build the compiler, run time and tools: Note that the use of "GNU Make" is required by the GCC Makefiles. ~/GNAT/obj $ make bootstrap ~/GNAT/obj $ make -C gcc gnatlib gnattools If you are building a cross compiler, you will need to replace the above sequence by something similar to: ~/GNAT/obj $ make ~/GNAT/obj $ make -C gcc gnatlib cross-gnattools ada.all.cross 5/ Install the whole package: ~/GNAT/obj $ make install