Date: Mon, 29 Jun 2009 17:27:40 -0400 (EDT) From: Daniel Eischen <eischen@vigrid.com> To: xorquewasp@googlemail.com Cc: freebsd-hackers@freebsd.org Subject: Re: bootstrapping gnat GCC on amd64 Message-ID: <Pine.GSO.4.64.0906291725330.2980@sea.ntplx.net> In-Reply-To: <20090519135917.GA5391@logik.internal.network> References: <20090505022151.GA32477@logik.internal.network> <Pine.GSO.4.64.0905042224180.16666@sea.ntplx.net> <20090506140325.GA69468@logik.internal.network> <Pine.GSO.4.64.0905061043420.26946@sea.ntplx.net> <20090506152222.GC69468@logik.internal.network> <20090508211022.GA37475@logik.internal.network> <20090518084831.GA95354@logik.internal.network> <Pine.GSO.4.64.0905181828110.20749@sea.ntplx.net> <20090519114548.GA8610@logik.internal.network> <Pine.GSO.4.64.0905190945330.25229@sea.ntplx.net> <20090519135917.GA5391@logik.internal.network>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.64.0906291725330.2980>