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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,312e0e8ff2e02854 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!feeder.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: FSF GNAT on Mac OS X Snow Leopard, does it exist? Date: Tue, 16 Mar 2010 20:50:43 +0000 Organization: A noiseless patient Spider Message-ID: References: <4b9e9784$0$2002$4f793bc4@news.tdc.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 16 Mar 2010 20:50:44 +0000 (UTC) Injection-Info: feeder.eternal-september.org; posting-host="KCXegvZb5vh43D+f3BR6Ew"; logging-data="16775"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+kax3B3BIZoBzY4migU6AAW5MwcCU+4As=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin) Cancel-Lock: sha1:I2M1pIHGE55Lj1eFSi+jag62pwM= sha1:KjGYlmEM3WD3sSnl+9nn7NjMEdU= Xref: g2news2.google.com comp.lang.ada:10581 Date: 2010-03-16T20:50:43+00:00 List-Id: Jerry writes: > On Mar 15, 3:09�pm, Simon Wright wrote: >> If you go to http://sourceforge.net/projects/gnuada/files/and navigate >> to GNAT_GPL Mac OS X > 2009-snow-leopard you'll find 64- and 32-bit >> compilers. > > Sorry if these questions have been asked before. > > (1) Do either of these compilers work with Xcode? > (a) If so, which one(s) and what version of Xcode? I don't know, but wouldn't it have to be Xcode 3.2 for SL? > (2) Do either of these compilers work with the debugger gdb? > (a) If so, is it included with the download? Certainly the x86_64 compiler works with Apple's gdb (presumably from Xcode 3.2?): $ gdb ./zero_length_string GNU gdb 6.3.50-20050815 (Apple version gdb-1346) (Fri Sep 18 20:40:51 UTC 2009) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ... done (gdb) b zero_length_string.adb:5 Breakpoint 1 at 0x100001e7b: file zero_length_string.adb, line 5. (gdb) run Starting program: /Users/simon/tmp/zero_length_string Reading symbols for shared libraries ++. done Breakpoint 1, _ada_zero_length_string () at zero_length_string.adb:5 5 Put_Line ("S is """ (gdb) p s $1 = "" Current language: auto; currently ada (gdb) p s'length $2 = 0 (gdb) l 1 with Ada.Text_IO; use Ada.Text_IO; 2 procedure Zero_Length_String is 3 S : String (-5 .. -7) := ""; 4 begin 5 Put_Line ("S is """ 6 & S 7 & """, 'First is " 8 & Integer'Image (S'First) 9 & ", 'Last is " 10 & Integer'Image (S'Last)); (gdb) p s'first $3 = -5 (gdb) p s'last $4 = -6 so it clearly knows a *lot* about Ada! Similar results with the gdb included in AdaCore's GNAT GPL 2009 distribution. > (3) Do either of these compilers work with the gdb GUI in Xcode? Don't know. > (4) Is the 32-bit version more functional with respect to exceptions? I don't think so. There certainly used to be a problem, discussed from http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41260#c34 onward, but it's not present in the 64-bit compiler here. > (5) After installing in their default locations, can they be moved? No, because even in a static link some of the GCC libraries are linked dynamically from the as-built installation location, and remember where they were linked from (-rpath). Of course, there's probably some cunning way round that ... > Yes, that helps, but the picture is still confused. Are things labeled > x86 64-bit and i386 32-bit? Yes. > What are the .dmgs under GNAT_GCC Mac OS > X.>gnat-gcc-4.4.2.dmg? How are they different from those under > GNAT_GPL Mac OS X>2009-snow-leopard? Well, the GNAT_GCC versions are FSF compilers, with the full GNAT-modified GPL on the runtime, whereas the GNAT_GPL versions are rebuilds of AdaCore's compilers with the GNAT extensions to the licence removed. > Is there anything at macada.org > that is useful for Snow Leopard? Not sure, sorry