From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,b8a1363302988cfe X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!m3g2000yqf.googlegroups.com!not-for-mail From: sjw Newsgroups: comp.lang.ada Subject: Re: GNAT GPL 2009 for Mac OS X (Snow Leopard) Date: Thu, 24 Dec 2009 07:01:31 -0800 (PST) Organization: http://groups.google.com Message-ID: <9f769dce-f855-4f83-b7ff-936615404197@m3g2000yqf.googlegroups.com> References: <5b0bf629-0935-414d-9a57-1757632840b8@d10g2000yqh.googlegroups.com> NNTP-Posting-Host: 82.30.110.254 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1261666892 7664 127.0.0.1 (24 Dec 2009 15:01:32 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 24 Dec 2009 15:01:32 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m3g2000yqf.googlegroups.com; posting-host=82.30.110.254; posting-account=_RXWmAoAAADQS3ojtLFDmTNJCT0N2R4U User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:8516 Date: 2009-12-24T07:01:31-08:00 List-Id: On Dec 22, 5:10=A0pm, sjw wrote: > On Dec 22, 2:23=A0pm, "(see below)" wrote: > > > On 22/12/2009 12:09, in article > > af608388-8088-4779-a3ca-39275fd2c...@r24g2000yqd.googlegroups.com, "sjw= " > > > 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/f= iles/(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 =3D> Put_Line ("CE raised."); end; end Raiser; nidhoggr:Test simon$ GNAT_PREFIX=3D/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.