In message <[EMAIL PROTECTED]>
          Stefan Bellon <[EMAIL PROTECTED]> wrote:

> John Tytgat wrote:
> > In message <[EMAIL PROTECTED]>
> >           Stefan Bellon <[EMAIL PROTECTED]> wrote:
> 
> > > 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. 
> 
> Ah, perhaps this directory level is only introduced if there are
> multiple runtimes to chose from and that the directory level is omitted
> if there is only one runtime available.
> 
> > And yes, "ads.system" (suffix swapped!) is there under adainclude.
> 
> And the GCC knows how to swap the ads extension the "RISC OS" way?

I assume so.  This is defined in !GCC.!Run.

> [...]
> > 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
> 
> system.ads, not system.adb. There is no system.adb.

Yes, I meant system.ads but wrongly wrote .adb.

> >    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 ?
> 
> Oh, that's easy, just do
> 
> *gcc -gnatdl -c hello.adb
> 
> You can enable the debug flags with -gnatdxxxxx and putting the
> character codes for the flags as xxxxx. But I'm not sure whether that
> helps in this case.

Ah so I did try the right thing and no, -gnatdl does not give me the
debug I thought it would give in this case. :-(

> You can as well call gnatmake instead of gcc. Not sure whether this
> should make a difference here.
> 
> *gnatmake hello.adb

No, same error not being able to find system.ads.

> > 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 ?
> 
> Yes, I'm willing to look at whatever you have.

Superb, thanks.  I've uploaded a zip file at
<URL:http://joty.drobe.co.uk/gccsdk-4/1/1-c-ada-static-pre-rel2-20080429/zip>

As you might guess from the zip filename, it only contains C and Ada
compilers and is configured for static libraries.  I haven't tried to do
a shared library build with Ada included.

The source changes I made can be consulted via:
<URL:http://www.riscos.info/websvn/listing.php?repname=gccsdk&path=%2Ftrunk%2F&rev=3435&sc=1>

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

Reply via email to