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: g2news2.google.com!postnews.google.com!b33g2000yqc.googlegroups.com!not-for-mail From: Jerry Newsgroups: comp.lang.ada Subject: Re: How to exit a loop with keyboard input Date: Fri, 16 Apr 2010 03:25:28 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2368b26c-9832-4bbf-895c-f0f9e1480db1@b33g2000yqc.googlegroups.com> 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 1271413528 24528 127.0.0.1 (16 Apr 2010 10:25:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 16 Apr 2010 10:25:28 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b33g2000yqc.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: g2news2.google.com comp.lang.ada:10986 Date: 2010-04-16T03:25:28-07:00 List-Id: On Apr 15, 12:22=A0pm, Simon Wright wrote: > The SourceForge Leopard GNAT GPL 2009 compiler is 32-bit, while > AdaCore's is 64-bit. > > I had a Leopard issue, where libtk was a thin library supporting only > 32-bit, so I got the sort of problem you report when using AdaCore's > compiler. > > Are you getting the problem with both compilers? if so, I'd expect each > compiler to report the problem with different libraries. And your only > recourse will be to rebuild the offending libraries with the appropriate > compiler. What I've done is to use the matching GNAT compiler; eg for > 64-bit, > > $ PATH=3D/opt/gnat-gpl-2009-x86_64/bin:$PATH > $ ./configure .... > $ make > > Given that most people don't build GNAT with c++, this is only going to > work if the library concerned is C-based. > > You can find what architectures a library supports using lipo (-info or > -detailed_info) Thanks for the architecture tip. I get the problem with only the AdaCore 64-bit compiler. [I have another problem when using your 32-bit compiler from Sourceforge but it's not actually a compiler problem--something goes wrong when the PLplot build system tries to locate a compiler library: dyld: Library not loaded: @rpath/libgnat-2009.dylib Funny thing is, that library (or at least a symlink pointing to it) is found earlier in the build process.] But back to the architecture problem. ld tries to ascertain the architecture of the output (in some cases) by looking at the architecture of the first-listed library. In this case, that is a 32- bit PLplot library which points to a problem in the PLplot build process. I've sent my findings to the PLplot guys. Also, they are attempting to link the Carbon framework in the same command which of course is a no-no because Carbon is 32 bits. Jerry