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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a1fbd17804c1dd58 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-07 07:06:28 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: gnat for alpha linux (follow up) Date: 07 Feb 2002 09:57:53 -0500 Organization: NASA Goddard Space Flight Center Message-ID: References: <3C55D517.5050908@earthlink.net> <3C6185A4.7020605@earthlink.net> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1013094131 3762 128.183.220.71 (7 Feb 2002 15:02:11 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 7 Feb 2002 15:02:11 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Xref: archiver1.google.com comp.lang.ada:19707 Date: 2002-02-07T15:02:11+00:00 List-Id: "Ian S. Nelson" writes: > Okay, I've got the cross compiler building stuff but it didn't/doesn't > build libgnat. Any tips on building that? Here are the steps I use to build a gnat cross: cd ~/ST5/Tools mkdir build-mips-rtems-ada cd build-mips-rtems-ada ../gcc-2.8.1/configure --prefix=/home/stephe/ST5/Ada_Install --target=mips-rtems --with-gnu-as --with-gnu-ld --enable-languages=c,ada ~/ST5/Tools/build-mips-rtems-ada/Makefile : make CFLAGS="-O2 -g" all # CFLAGS drops -Wall from default; lots of bogus warnings in Ada compiler make CFLAGS="-O2" GNATLIBCFLAGS="-O2 -I/home/stephe/ST5/C_Tools/mips-rtems/include" gnatlib # extra -I is for sys/types.h etc make CFLAGS="-O2" cross-gnattools make CFLAGS="-O2" ada.all.cross make install This list was derived partly from help from ACT, partly from black magic. You are entitled to wear a wizard's cap after you get this working :). > I want to build a simple helloworld.adb before I start trying to > build a whole compiler. I'm not sure there's much difference. Assuming you use Ada.Text_IO in helloworld, that's pretty much the whole compiler and run-time library; it doesn't come in smaller pieces. -- -- Stephe