From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,702da61d55762f7b X-Google-Attributes: gid103376,public From: "Tor-Einar Jarnbjo" Subject: Re: GNAT for an unsupported Unix-system? Date: 1997/11/27 Message-ID: <2021.270T782T1141698@cs.tu-berlin.de>#1/1 X-Deja-AN: 293016621 References: <2164.263T879T7501343@cs.tu-berlin.de> <1100.266T350T9940654@cs.tu-berlin.de> <1064.267T676T1160836@cs.tu-berlin.de> <65eaaq$8s8$1@gonzo.sun3.iaf.nl> Organization: Technical University of Berlin, Germany Newsgroups: comp.lang.ada Date: 1997-11-27T00:00:00+00:00 List-Id: 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