This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Compiling the GNU ada compiler on a new platform
- From: Joe Buck <Joe dot Buck at synopsys dot COM>
- To: Paul Smedley <pauldespam at despamsmedley dot id dot au>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Fri, 21 Aug 2009 16:16:11 -0700
- Subject: Re: Compiling the GNU ada compiler on a new platform
- References: <POn1Xm9ddZOp-pn2-dJtYpMPBmmP6@smedley.info>
On Fri, Aug 21, 2009 at 03:40:57PM -0700, Paul Smedley wrote:
> I'm wanting to update the GNU ADA compiler for OS/2... I'm currently
> building GCC 4.3.x and 4.4.x on OS/2 (C/C++/fortran) but for ADA
> configure complains about not finding gnat. The problem is that the
> only gnat compiled for OS/2 was years ago using a different toolchain
> so it's not suitable.
>
> I assume that at some point in time, ada didn't depend on an existing
> gnat, so if I could find that version, I could compile a version of
> gnat to get me started?? Otherwise it's a bit chicken and egg :(
The alternative solution is to build gnat as a cross-compiler, so it
runs on (say) GNU/Linux and produces gnat code for OS/2. I haven't
done that for gnat, only for other languages, but perhaps someone can
advise you on how to set that up. Then you can use the cross-compiler
to build a native compiler.