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,430e73ffe1dca4e9 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!30g2000yqi.googlegroups.com!not-for-mail From: Jerry Newsgroups: comp.lang.ada Subject: Re: How to exit a loop with keyboard input Date: Wed, 14 Apr 2010 20:39:56 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <176f2831-ce2a-4bb1-9e04-47f662fc7176@q23g2000yqd.googlegroups.com> <20100412181434.dd154269.tero.koskinen@iki.fi> NNTP-Posting-Host: 75.172.180.11 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1271302796 17097 127.0.0.1 (15 Apr 2010 03:39:56 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 15 Apr 2010 03:39:56 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 30g2000yqi.googlegroups.com; posting-host=75.172.180.11; posting-account=x5rpZwoAAABMN2XPwcebPWPkebpwQNJG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-US) AppleWebKit/528.16+(KHTML, like Gecko, Safari/528.16) OmniWeb/v622.8.0,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:9987 Date: 2010-04-14T20:39:56-07:00 List-Id: On Apr 13, 2:22=A0pm, Simon Wright wrote: > Jerry writes: > > However, both of these builds still contain the old bug which arises > > when using > > =A0 =A0 Ada.Numerics.Long_Real_Arrays; > > in which the linker can't find the non-existent (on OS X) library > > lgnalasup (linear algebra support) requested by i-forbla.adb. I > > thought this was fixed a long time ago and if I'm reading the history > > correctly it was fixed on Apr 22 07:14:31 2008. I suppose I should > > raise this on another thread, however. > > Same here. > > $ gnatmake jerry > gcc -c jerry.adb > gnatbind -x jerry.ali > gnatlink jerry.ali > ld: library not found for -lgnalasup > collect2: ld returned 1 exit status > gnatlink: error when calling /opt/gnat-gpl-2009-x86_64/bin/gcc > gnatmake: *** link failed. > > (sorry to take your name in vain, it helps me to keep my ~/tmp > code in order) > > 4.5.0 has a Darwin-specific i-forbla.adb containing > > OX-------------------------------------------- > -- =A0Version for Mac OS X > > package body Interfaces.Fortran.BLAS is > =A0 =A0pragma Linker_Options ("-Wl,-framework,vecLib"); > end Interfaces.Fortran.BLAS; > OX-------------------------------------------- > > and I just managed to link (just a 'with', no execution) with GNAT GPL > 2009 by compiling against this file -- I put it in a subdir called math > and said > > $ gnatmake jerry -a -Imath > gcc -gnatpg -c -Imath i-forbla.adb > gnatbind -Imath -x jerry.ali > gnatlink jerry.ali Awesome. In the past I discovered that if I delete the inappropriate linker pragma in i-forbla.adb and link with -largs to the BLAS and LAPACK libraries in the OS X frameworks that I could work around this problem. But this is better. Following your lead, I moved the newly- made i-forbla.o and i-forbla.ali into /opt/gnat-gpl-2009/lib/gcc/i386-apple-darwin9.7.0/4.3.4/adalib I then moved /opt/gnat-gpl-2009 to /usr/local/ada-4.3 which is where the Xcode Ada plug-in expects to find a compiler. I also moved your / opt/gnu/ to /usr/local/gnu. I can now compile a small program that uses Real_Vector etc. and has a non-blocking Get_Immediate without any compiler switches using Xcode with the (ever-brittle) Ada plug-in. 8o) Trying to use the GUI debugger within Xcode, (Apple version gdb-768) (Tue Oct 2 04:07:49 UTC 2007) is mostly successful but it bombs with SIGBUS when trying to single- step past a Put_Line. I have also applied the fix to AdaCore's GPL 2009. Unfortunately, with the new set-up, building PLplot (to which I wrote Ada bindings) now results in the linker complaining of some dylibs, "file is not of required architecture." Jerry