I ran gprconfig -v -v and have attached its results.
>From it I see that I sent you the wrong compilers.xml file.
I think the correct one is /opt/gnat-gpl-2009/share/gprconfig which I attach.
I presume that the the relevant part is:
   <!--   GNAT
    To find the list of supported runtimes, we check the contents of
    the directory. To be compatible with older versions of GNAT (3.16
    for instance), we also accept lib/gcc-lib as the directory that
    contains the runtime files.

    Implementation note: we put two spaces after -adainclude $... in
    the external_tool, because on windows the path will end with a
    '\', and this would act as a quote for the following space.
   -->
  <compiler_description>
    <name>GNAT</name>
    <executable 
prefix="1">(.*(-wrs-|-elf-|-eabispe-|avr-|elinos-linux).*)?gnatmake</executable>
    <version>
      <external>${PREFIX}gnatls -v</external>
      <grep regexp="^GNATLS.+?(\d+(\.\d+)?)" group="1"></grep>
    </version>
    <variable name="gcc_version">
      <external>${PREFIX}gcc -v</external>
      <grep regexp="^gcc version (\S+)" group="1"></grep>
    </variable>
    <languages>Ada</languages>
    <runtimes default="default,kernel">
       <directory group="default" 
>\.\./lib/gcc(-lib)?/$TARGET/$gcc_version/adalib/</directory>
       <directory group="2" 
>\.\./lib/gcc(-lib)?/$TARGET/$gcc_version/rts-(.*)/adalib/</directory>
    </runtimes>
    <target>
      <external>${PREFIX}gcc -dumpmachine</external>
      <grep regexp="[^\r\n]+"></grep>
    </target>
  </compiler_description>

Also,
gcc -v gives:
Using built-in specs.
Target: i386-apple-darwin10.2.0
Configured with: ../gcc-43-src/configure --prefix=/opt/gnat-gpl-2009 
--with-gmp=/opt/gnu --with-mpfr=/opt/gnu --disable-multilib 
--enable-languages=c,ada --disable-libada
Thread model: posix
gcc version 4.3.4 20090511 for GNAT GPL 2009 (20090511) (GCC) 

gcc -dumpversion just gives:
4.3.4

gcc -dumpmachine gives:
i386-apple-darwin10.2.0

If I don't use PATH=/opt/gnat-gpl-2009/bin:$PATH
gcc -v tells me that, Target: i686-apple-darwin10
and
gcc -dumpmachine gives:
i686-apple-darwin10

That's about as far as I can get.
Roger


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gprconfig -v -v.txt
URL: 
<http://box347.bluehost.com/pipermail/qtada-users_lists.qtada.com/attachments/20100426/b1b8896e/attachment.txt>
-------------- next part --------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: compilers.xml
Type: application/xml
Size: 7638 bytes
Desc: not available
URL: 
<http://box347.bluehost.com/pipermail/qtada-users_lists.qtada.com/attachments/20100426/b1b8896e/attachment.rdf>
-------------- next part --------------

On 26/04/2010, at 7:39 AM, Stephen Leake wrote:
> 
> Hmm. I think I spoke too quickly.
> 
> The issue is what target is it looking for - that seems to be
> i386-apple-darwin10.3.0 - and what targets is it finding.
> 
> There are two parts to the GNAT target; gnat itself, and the runtimes.
> The target available for gnat is given by 'gcc -dumpmachine' (see the
> <target> <external> tag). The runtimes are in lib/gcc-lib/$TARGET (see
> the <runtimes> tag).
> 
> There is also the issue of why it is looking for i386-apple-darwin10.3.0
> but finding something else.
> 
> To get a better feel for what is going on, run gnatconfig directly, and
> specify '-v -v'. If gprbuild is creating an auto.config file, get the
> gprconfig command from that; it will be something like:
> 
> C:\Apps\GNAT-6.2.1\bin\gprconfig.exe --batch -o objects/auto.cgpr 
> --target=x86-windows -q --config=c,, --config=ada,,
> 
> Keep the --batch option, but delete the -q, and add -v -v.
> 
> You can also change the desired target with --target; use one 
> that matches 'gcc -dumpmachine'. 
> 
> What I had to change in compilers.xml for Debian was the grep regexp
> that matched the versions; the Debian compilers add "Debian" to that
> string. An alternative change is to replace 'gcc -v' with 'gcc
> -dumpversion'; that gives a simpler string. I'm not clear why AdaCore
> didn't do that in the first place.
> 
> If you are still stuck, send the output of 'gprconfig -v -v', and I'll
> see if I can help.
> 
> I'm writing a QtAda app that I hope to port to Mac, so I have an
> interest in getting this working.
> 
> -- 
> -- Stephe

_______________________________________________
qtada-users mailing list
[email protected]
http://box347.bluehost.com/mailman/listinfo/qtada-users_lists.qtada.com

Reply via email to