From: (see below) on
On 24/12/2009 17:24, in article
65af5bac-a490-4e08-b8e0-7d36030b780c(a)m25g2000yqc.googlegroups.com, "sjw"
<simon.j.wright(a)mac.com> wrote:

> On Dec 24, 3:31�pm, "John B. Matthews" <nos...(a)nospam.invalid> wrote:
>> In article
>> <f0b47208-95f0-48ef-8184-9f36f2a2f...(a)a32g2000yqm.googlegroups.com>,
>>
>> �sjw <simon.j.wri...(a)mac.com> wrote:
>>> Each compiler I have installed lives in a different top-level
>>> directory. I set my path using
>>
>>> � $ export PATH=/opt/gnat-gpl-2009/bin:/usr/bin:/bin:/usr/sbin:/sbin
>>
>> FWIW, here's a bash shell script I use to show the current PATH and the
>> alternative. The checkPath() and removePath() functions could be used in
>> managing multiple versions:
>>
>> <http://home.roadrunner.com/~jbmatthews/gtk/lady.html#ada.sh>
>
> Thanks for that.
>
> I was meaning to reply specifically to Bill's query about possible
> clashes caused by multiple compiler installations.

Well, I have deleted every copy of GNAT I could find, and downloaded
gnat-gpl-2009-i386-apple-darwin10.2.0-1.tar.bz2 afresh.

My .profile sets the PATH to:

PATH=/Users/wf/a2z/MPS/Cstage2:/Users/wf/ex-GU/HOCUS/sysdev/bin:/Users/wf/Pr
ograms:/Users/wf/KDF9/emulation/testing:/Users/wf/a2z/Testing:/Users/wf/Prog
rams/bin:/opt/gnat-gpl-2009/bin:/opt/local/sbin:/opt/local/bin:/usr/X11R6/bi
n:/usr/share:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

which gnat gives /opt/gnat-gpl-2009/bin/gnat
which gcc gives /opt/gnat-gpl-2009/bin/gcc

The error I reported on the "test" package has not gone away. 8-(

--
Bill Findlay
<surname><forename> chez blueyonder.co.uk


From: (see below) on
On 24/12/2009 19:20, in article C7596F6A.12FADA%yaldnif.w(a)blueyonder.co.uk,
"(see below)" <yaldnif.w(a)blueyonder.co.uk> wrote:

>
> Well, I have deleted every copy of GNAT I could find, and downloaded
> gnat-gpl-2009-i386-apple-darwin10.2.0-1.tar.bz2 afresh.
>
> My .profile sets the PATH to:
>
> PATH=/Users/wf/a2z/MPS/Cstage2:/Users/wf/ex-GU/HOCUS/sysdev/bin:/Users/wf/Pr
> ograms:/Users/wf/KDF9/emulation/testing:/Users/wf/a2z/Testing:/Users/wf/Prog
> rams/bin:/opt/gnat-gpl-2009/bin:/opt/local/sbin:/opt/local/bin:/usr/X11R6/bi
> n:/usr/share:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
>
> which gnat gives /opt/gnat-gpl-2009/bin/gnat
> which gcc gives /opt/gnat-gpl-2009/bin/gcc
>
> The error I reported on the "test" package has not gone away. 8-(
|||||||||
I.e., the compiler failure at -O1 has not gone away.
The malfunction at -O3 was my fault, and the optimised module does work.

--
Bill Findlay
<surname><forename> chez blueyonder.co.uk


From: sjw on
On Dec 24, 7:20 pm, "(see below)" <yaldni...(a)blueyonder.co.uk> wrote:
> On 24/12/2009 17:24, in article
> 65af5bac-a490-4e08-b8e0-7d36030b7...(a)m25g2000yqc.googlegroups.com, "sjw"
> <simon.j.wri...(a)mac.com> wrote:
> > On Dec 24, 3:31 pm, "John B. Matthews" <nos...(a)nospam.invalid> wrote:
> >> In article
> >> <f0b47208-95f0-48ef-8184-9f36f2a2f...(a)a32g2000yqm.googlegroups.com>,
>
> >>  sjw <simon.j.wri...(a)mac.com> wrote:
> >>> Each compiler I have installed lives in a different top-level
> >>> directory. I set my path using
>
> >>>   $ export PATH=/opt/gnat-gpl-2009/bin:/usr/bin:/bin:/usr/sbin:/sbin
>
> >> FWIW, here's a bash shell script I use to show the current PATH and the
> >> alternative. The checkPath() and removePath() functions could be used in
> >> managing multiple versions:
>
> >> <http://home.roadrunner.com/~jbmatthews/gtk/lady.html#ada.sh>
>
> > Thanks for that.
>
> > I was meaning to reply specifically to Bill's query about possible
> > clashes caused by multiple compiler installations.
>
> Well, I have deleted every copy of GNAT I could find, and downloaded
> gnat-gpl-2009-i386-apple-darwin10.2.0-1.tar.bz2 afresh.
>
> My .profile sets the PATH to:
>
> PATH=/Users/wf/a2z/MPS/Cstage2:/Users/wf/ex-GU/HOCUS/sysdev/bin:/Users/wf/P r
> ograms:/Users/wf/KDF9/emulation/testing:/Users/wf/a2z/Testing:/Users/wf/Pro g
> rams/bin:/opt/gnat-gpl-2009/bin:/opt/local/sbin:/opt/local/bin:/usr/X11R6/b i
> n:/usr/share:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
>
> which gnat gives /opt/gnat-gpl-2009/bin/gnat
> which gcc gives /opt/gnat-gpl-2009/bin/gcc
>
> The error I reported on the "test" package has not gone away. 8-(

I said 'gnatmake -f test -O1' etc, did you have any other options?
From: sjw on
On Dec 22, 5:10 pm, sjw <simon.j.wri...(a)mac.com> wrote:
> On Dec 22, 2:23 pm, "(see below)" <yaldni...(a)blueyonder.co.uk> wrote:
>
> > On 22/12/2009 12:09, in article
> > af608388-8088-4779-a3ca-39275fd2c...(a)r24g2000yqd.googlegroups.com, "sjw"
>
> > <simon.j.wri...(a)mac.com> wrote:
> > > I've just released a 32-bit build of GNAT GPL 2009 for Snow Leopard;
> > > find it athttp://sourceforge.net/projects/gnuada/files/(navigateto
> > > GNAT_GPL Mac OS X/2009-snow-leopard-i386).
>
> > Many thanks -- I'll try it ASAP.
> > Any chance of a 64-bit build?
>
> Will have a go, but it's a cross-build so may take some getting my
> head round!

Not actually a cross build, which would be specified by configuring
with --target=x86_64-apple-darwin10.2.0; I don't know what the
technical name is, but configuring with --build=x86_64-apple-
darwin10.2.0 does the trick.

Unfortunately the built compiler won't handle exceptions; a severe
failing. Perhaps Apple have changed the OS features that GNAT uses to
support exception handling? (I tried configuring with --enable-sjlj-
exceptions, no joy).
From: sjw on
On Dec 25, 4:30 am, "(see below)" <yaldni...(a)blueyonder.co.uk> wrote:
> On 24/12/2009 19:20, in article C7596F6A.12FADA%yaldni...(a)blueyonder.co.uk,
> "(see below)" <yaldni...(a)blueyonder.co.uk> wrote:
[...]
> I.e., the compiler failure at -O1 has not gone away.
> The malfunction at -O3 was my fault, and the optimised module does work.

The verbose results of my compilation are

$ GNAT_PREFIX=/opt/gnat-gpl-2009 gnatmake -f test -O1 -cargs -v
gcc -c -O1 -v test.adb
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)
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.6.2' '-gnatea' '-c' '-O1'
'-v' '-gnatez' '-mtune=generic'
/opt/gnat-gpl-2009/libexec/gcc/i386-apple-darwin10.2.0/4.3.4/gnat1 -
quiet -dumpbase test.adb -O1 -gnatez -mmacosx-version-min=10.6.2 -
gnatea -gnatez -mtune=generic -fPIC test.adb -o /var/folders/it/
itCqFVrG2P8Zlk+F71KE3U+++TI/-Tmp-//cccOTx7p.s
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.6.2' '-gnatea' '-c' '-O1'
'-v' '-gnatez' '-mtune=generic'
as -arch i386 -force_cpusubtype_ALL -o test.o /var/folders/it/
itCqFVrG2P8Zlk+F71KE3U+++TI/-Tmp-//cccOTx7p.s
COMPILER_PATH=/opt/gnat-gpl-2009/libexec/gcc/i386-apple-
darwin10.2.0/4.3.4/:/opt/gnat-gpl-2009/libexec/gcc/i386-apple-
darwin10.2.0/4.3.4/:/opt/gnat-gpl-2009/libexec/gcc/i386-apple-
darwin10.2.0/:/opt/gnat-gpl-2009/lib/gcc/i386-apple-
darwin10.2.0/4.3.4/:/opt/gnat-gpl-2009/lib/gcc/i386-apple-
darwin10.2.0/
LIBRARY_PATH=/opt/gnat-gpl-2009/lib/gcc/i386-apple-
darwin10.2.0/4.3.4/:/opt/gnat-gpl-2009/lib/gcc/i386-apple-
darwin10.2.0/4.3.4/../../../:/usr/lib/
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.6.2' '-gnatea' '-c' '-O1'
'-v' '-gnatez' '-mtune=generic'
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.6.2' '-gnatea' '-c' '-O1'
'-v' '-gnatez' '-mtune=generic'

Not sure if we'll be able to glean any significant differences ...