From: sjw <simon.j.wright@mac.com>
Subject: Re: GNAT GPL 2009 for Mac OS X (Snow Leopard)
Date: Thu, 24 Dec 2009 07:01:31 -0800 (PST)
Date: 2009-12-24T07:01:31-08:00 [thread overview]
Message-ID: <9f769dce-f855-4f83-b7ff-936615404197@m3g2000yqf.googlegroups.com> (raw)
In-Reply-To: 5b0bf629-0935-414d-9a57-1757632840b8@d10g2000yqh.googlegroups.com
On Dec 22, 5:10 pm, sjw <simon.j.wri...@mac.com> wrote:
> On Dec 22, 2:23 pm, "(see below)" <yaldni...@blueyonder.co.uk> wrote:
>
> > On 22/12/2009 12:09, in article
> > af608388-8088-4779-a3ca-39275fd2c...@r24g2000yqd.googlegroups.com, "sjw"
>
> > <simon.j.wri...@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!
The cross-build (I think I may be wrong about that; perhaps there's an
'architecture' switch?) eventually produced a compiler. Unfortunately
it wouldn't process the simplest exception properly (SIGABRT).
I then had the idea, since the problem that stops building is that
init.c calls sigreturn() which isn't present in Snow Leopard, why not
fake up our own sigreturn() that does exactly what the patch did, then
link against that?
This turned out to work as hoped, result being that we can use Apple's
GNAT-GPL-2009 on Snow Leopard; see http://sourceforge.net/projects/gnuada/files/(navigate
to GNAT_GPL Mac OS X/2009-snow-leopard, get sigreturn.tar.bz2).
Sadly, the failure to handle exceptions with the 64-bit compiler is
unchanged (the 32-bit compiler is OK):
with Ada.Text_IO; use Ada.Text_IO;
procedure Raiser is
begin
begin
raise Constraint_Error;
exception
when Constraint_Error =>
Put_Line ("CE raised.");
end;
end Raiser;
nidhoggr:Test simon$ GNAT_PREFIX=/opt/gnat-gpl-2009_64-leopard
gnatmake -g -f raiser -largs sigreturn-64.o
gcc -c -g raiser.adb
gnatbind -x raiser.ali
gnatlink raiser.ali -g sigreturn-64.o
nidhoggr:Test simon$ ./raiser
Segmentation fault
Rats.
next prev parent reply other threads:[~2009-12-24 15:01 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-22 12:09 GNAT GPL 2009 for Mac OS X (Snow Leopard) sjw
2009-12-22 14:23 ` (see below)
2009-12-22 17:10 ` sjw
2009-12-22 17:46 ` (see below)
2009-12-22 21:52 ` sjw
2009-12-22 23:37 ` sjw
2009-12-23 3:29 ` (see below)
2009-12-23 14:26 ` sjw
2009-12-23 17:18 ` (see below)
2009-12-23 23:44 ` sjw
2009-12-24 0:01 ` (see below)
2009-12-24 14:50 ` sjw
2009-12-24 15:31 ` John B. Matthews
2009-12-24 17:24 ` sjw
2009-12-24 19:20 ` (see below)
2009-12-25 4:30 ` (see below)
2009-12-25 17:59 ` sjw
2009-12-25 17:32 ` sjw
2009-12-26 0:54 ` (see below)
2009-12-23 21:16 ` Jerry
2009-12-23 23:38 ` sjw
2009-12-23 0:08 ` (see below)
2009-12-23 13:48 ` Georg Bauhaus
2009-12-23 17:21 ` (see below)
2009-12-24 15:01 ` sjw [this message]
2009-12-30 3:12 ` Jerry
2009-12-30 14:46 ` sjw
2009-12-25 17:52 ` sjw
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox