In message <[EMAIL PROTECTED]>
Stefan Bellon <[EMAIL PROTECTED]> wrote:
> John Tytgat wrote:
> > *gcc -v -c hello.adb
> > Using built-in specs.
> > Target: arm-unknown-riscos
> > Configured with:
> > /home/joty/projects/gccsdk/gccsdk_svn/gcc4/srcdir/configure riscos
> > Thread model: posix
> > gcc version 4.1.1 (GCCSDK GCC 4.1.1 pre-release 2)
> >
> > /ADFS::Zion.$/GCCSDK-Ada/!GCC/bin/../libexec/gcc/arm-unknown-riscos/4.1.1/gnat1
> > -quiet -dumpbase hello.adb hello.adb -o /tmp/cc7gyCIa.s
> > fatal error, run-time library not installed correctly
> > cannot locate file system.ads
>
> The file system.ads should be present inside
> !GCC/lib/gcc/arm-unknown-riscos/4.1.1/<runtime>/adainclude/ where
> <runtime> should be the name of the runtime version.
I have an adainclude (and adalib) straight under 4.1.1. I don't see
any sign of a <runtime> subdir in the native RISC OS build, nor in the
working cross-compile build. And yes, "ads.system" (suffix swapped!)
is there under adainclude.
> GNU/Linux and
> Windows offer rts-native (with zero-cost exception handling) and
> rts-sjlj (with setjump-longjump exception handling). I do not know
> that's possible on RISC OS in this respect. When configuring the GCC
> one can specify which runtime to build.
If I understand this stuff a bit, it's the zero-cost exception handling
which is used:
--8<--
recipe/files/gcc/ada/system-riscos-arm.ads: ZCX_By_Default :
constant Boolean := True;
recipe/files/gcc/ada/system-riscos-arm.ads: GCC_ZCX_Support :
constant Boolean := True;
recipe/files/gcc/ada/system-riscos-arm.ads: Front_End_ZCX_Support :
constant Boolean := False;
--8<--
> Please note: I have never built a GNAT for RISC OS, only for Solaris,
> GNU/Linux and a MinGW cross-compiler hosted on GNU/Linux, so I do not
> know about RISC OS specific things.
But but but... you probably know then much more than I do !
Two questions:
1. I would like to get debug output where GNAT is looking for system.adb.
I think I want to set the debug option 'dl' (as mentioned in debug.adb)
but I simply fail to see how I can specify this on the command line.
Or won't dl help me ?
2. If I would upload the native RISC OS build, would you have time to have
a look to see what possibly is missing ? And/or to review the Ada
changes I made ?
John.
--
John Tytgat, in his comfy chair at home BASS
[EMAIL PROTECTED] ARM powered, RISC OS driven
_______________________________________________
GCCSDK mailing list [email protected]
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK