comp.lang.ada
 help / color / mirror / Atom feed
From: "Ian S. Nelson" <nelsonis@earthlink.net>
Subject: Re: gnat for alpha linux (follow up)
Date: Thu, 07 Feb 2002 15:35:35 GMT
Date: 2002-02-07T15:35:35+00:00	[thread overview]
Message-ID: <3C629EC2.3020901@earthlink.net> (raw)
In-Reply-To: uheotqqz2.fsf@gsfc.nasa.gov

Stephen Leake wrote:
> "Ian S. Nelson" <nelsonis@earthlink.net> 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




      reply	other threads:[~2002-02-07 15:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-28 22:47 gnat for alpha linux Ian S. Nelson
2002-01-29  5:43 ` David Starner
2002-01-29 15:59   ` Ian S. Nelson
2002-01-29 16:19 ` Jacob Sparre Andersen
2002-01-29 17:13   ` Ian S. Nelson
2002-01-30 18:22 ` Dr. Adrian Wrigley
2002-02-06 19:36 ` gnat for alpha linux (follow up) Ian S. Nelson
2002-02-07 14:57   ` Stephen Leake
2002-02-07 15:35     ` Ian S. Nelson [this message]
replies disabled

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