comp.lang.ada
 help / color / mirror / Atom feed
* How to build a bare GNAT compiler?
@ 2003-12-22 18:03 Luke A. Guest
  0 siblings, 0 replies; only message in thread
From: Luke A. Guest @ 2003-12-22 18:03 UTC (permalink / raw)


Hi,

I want to try building a kernel image in Ada for MIPS-ELF. I can build a
C/C++ compiler and just not use the runtime libraries, but not for Ada.
What exactly do I have to do to achieve this?

I currently have the latest gcc-3.3.2 (core, g++, objc & Ada) built. For
GNAT, there exists only mips-elf-gnatbind & gnat1, no other cross binaries
get build because it wants the RTS built before the tools can be built.

So, if I try to build an empty Ada program, I get the following error:

laguest@rogue ada-test $ mips-elf-gcc -c -v empty.adb
Reading specs from /home/laguest/opt/xgcc-mips-elf/lib/gcc-lib/mips-elf/3.3.2/specs
Configured with: ../gcc-3.3.2/configure --prefix=/home/laguest/opt/xgcc-mips-elf --target=mips-elf --disable-nls --with-gnu-as --with-gnu-ld
Thread model: single
gcc version 3.3.2
 /home/laguest/opt/xgcc-mips-elf/lib/gcc-lib/mips-elf/3.3.2/gnat1 -quiet -dumpbase empty.adb empty.adb -o /tmp/cc1YjQUf.s
fatal error, run-time library not installed correctly
cannot locate file system.ads
compilation abandoned

This *must* be possible? Does anyone have a clue as to how to do it?

Thanks,
Luke.




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-12-22 18:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-22 18:03 How to build a bare GNAT compiler? Luke A. Guest

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