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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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:35:38 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!paloalto-snh1.gtei.net!lsanca1-snf1!news.gtei.net!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3C629EC2.3020901@earthlink.net> From: "Ian S. Nelson" Reply-To: nelsonis@earthlink.net.NOSPAM User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: gnat for alpha linux (follow up) References: <3C55D517.5050908@earthlink.net> <3C6185A4.7020605@earthlink.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 07 Feb 2002 15:35:35 GMT NNTP-Posting-Host: 66.1.228.145 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 1013096135 66.1.228.145 (Thu, 07 Feb 2002 07:35:35 PST) NNTP-Posting-Date: Thu, 07 Feb 2002 07:35:35 PST Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Thu, 07 Feb 2002 07:35:35 PST (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:19713 Date: 2002-02-07T15:35:35+00:00 List-Id: Stephen Leake wrote: > "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. I have a Pentium executable that builds Alpha binaries. I know the C and C++ parts work right but I can't link an alpha binary on my pentium if it's ada. Then I wanted to cross compile (from pentium generate alpha) an alpha compiler that generates alpha code. I just want to see that I can actually compile ada code before I start trying to build the whole compiler. Thanks for the tips, I'll beat on it some more. Ian