comp.lang.ada
 help / color / mirror / Atom feed
From: "Tor-Einar Jarnbjo" <bjote@cs.tu-berlin.de>
Subject: Re: GNAT for an unsupported Unix-system?
Date: 1997/11/27
Date: 1997-11-27T00:00:00+00:00	[thread overview]
Message-ID: <2021.270T782T1141698@cs.tu-berlin.de> (raw)
In-Reply-To: 65eaaq$8s8$1@gonzo.sun3.iaf.nl


On 25-Nov-97 11:46:50, Geert Bosch wrote in comp.lang.ada:
>(Please, follow-ups to chat@gnat.com, subscribe using chat-request@gnat.com)

>You will have to do a cross-compile, starting on a platform for which
>a new binary release is available. If you have access to a Unix box
>somewhere, the best way to proceed is as follows:
>  *  build cross-gcc for your Unix to m68k, should work out of the box
>  *  compile trivial C file to assembly (.s) and assemble/link on m68k
>  *  if this works, build cross-gnat and compile all GNAT sources to .s
>  *  build native GNAT on m68k: now you don't need the GNAT compiler
>     because you have assembly sources

Ok, to cross-compile GNAT from Solaris, I was about to do the following:

1. Install GNAT
2. Compile gcc and GNAT with "--target=amiga-netbsd" set when running
   configure. This should compile gcc (and GNAT I hope) as a cross-
   compiler for Solaris making output for m68k-NetBSD
3. Use the cross-compiler to compile (but not assemble) itself and GNAT
   again, then move everything to the Amiga and then assemble and link
   the .s-files there.

But I get stuck somewhere in step two. According to the GNAT installation
guide, I shall patch the gcc-sources, move the src/ada-directory into
the gcc-tree, do the touch-thingy, configure gcc and then do (though
I use gmake instead of make):

make CC=gcc CFLAGS="-O2" LANGUAGES="c ada"

After some compilation, this produces the program "xgcc" which is then
used to do some more compiling. The problem is that xgcc is already
made to compile for the m68k and the Solaris "as" doesn't find the m68k-
assembler very interesting, so no hope. I tried to replace xgcc with
gcc (from the GNAT binaries) but this core-dumps when I try to continue
the make-process.

I suppose this is rather a gcc-question than related to ADA, but if 
you've already cross-compiled GNAT, you might know what I'm doing
wrong here, as it to me is not very obvious :-(

Tor-Einar

--
Tor-Einar Jarnbjo
bjote@cs.tu-berlin.de
+49 30  41107941





  reply	other threads:[~1997-11-27  0:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-11-10  0:00 GNAT for an unsupported Unix-system? Tor-Einar Jarnbjo
1997-11-15  0:00 ` Chris Morgan
     [not found]   ` <1630.259T1446T2081822@cs.tu-berlin.de>
1997-11-17  0:00     ` Robert Dewar
     [not found]       ` <2164.263T879T7501343@cs.tu-berlin.de>
     [not found]         ` <dewar.880070329@merv>
1997-11-23  0:00           ` Tor-Einar Jarnbjo
1997-11-23  0:00             ` Robert Dewar
1997-11-24  0:00               ` Tor-Einar Jarnbjo
1997-11-24  0:00                 ` Robert Dewar
1997-11-27  0:00                   ` Tor-Einar Jarnbjo
1997-11-26  0:00                     ` Robert Dewar
1997-11-25  0:00                 ` Geert Bosch
1997-11-27  0:00                   ` Tor-Einar Jarnbjo [this message]
1997-11-27  0:00                     ` Richard Kenner
1997-11-28  0:00                       ` Dale Stanbrough
1997-12-01  0:00                         ` Scott Ingram
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox