From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: gnat for alpha linux (follow up)
Date: 07 Feb 2002 09:57:53 -0500
Date: 2002-02-07T15:02:11+00:00 [thread overview]
Message-ID: <uheotqqz2.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: 3C6185A4.7020605@earthlink.net
"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.
--
-- Stephe
next prev parent reply other threads:[~2002-02-07 14:57 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 [this message]
2002-02-07 15:35 ` Ian S. Nelson
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox