22.08.2009 02:16, Joe Buck kirjoitti:
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.
I tried for some last versions cross-native build for DJGPP under Linux.
Not much success for Ada.
About native build:
If there was some port sometimes long ago, then one could do all in several
steps: build for example gcc-3.something including Ada using existing port,
after that move to some newer version. I do not thing that there will be
many steps required.
For DJGPP I initially used used some port I found somewhere when built
first version which included Ada support.
Also:
when building Linux-to-DJGPP cross-compiler (C, C++, Fortran, Objective C,
Objective C++, Ada) I had to bootstrap at first native compiler for Linux
(C and Ada only) or otherwise I have got problems building libada with
native system compiler under Linux.
Andris