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,e49db73f947323a6 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Bill Findlay Newsgroups: comp.lang.ada Subject: Re: GNAT for a PPC Mac OS X machine Date: Mon, 18 Apr 2011 15:31:37 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: individual.net 69MOoxYN9NA83iOEtJz5gg9sviS5Tknjw/wA9i8eFxTNVt5gZC Cancel-Lock: sha1:2uNutMkR8DSjHle73gBmWmrE0VM= User-Agent: Microsoft-Entourage/12.28.0.101117 Thread-Topic: GNAT for a PPC Mac OS X machine Thread-Index: Acv91VLYYWkcouYpIUm1eEi5y0iG+w== Xref: g2news1.google.com comp.lang.ada:18858 Date: 2011-04-18T15:31:37+01:00 List-Id: On 18/04/2011 10:30, in article m2oc43q539.fsf@pushface.org, "Simon Wright" wrote: > Bill Findlay writes: > >> On 17/04/2011 15:43, in article m2vcydos58.fsf@pushface.org, "Simon Wright" >> wrote: >> >>> Bill Findlay writes: >>> >>>> I've an enthusiastic would-be user of my KDF9 emulator who has a G5 Mac. >>>> >>>> What is the most up-to-date compiler he can use, and where can he get it? >>>> >>>> (It needs to be a binary - he would not be up to rolling his own, and >>>> neither am I 8-). >>> >>> There's GNAT GPL 2009 at >>> https://sourceforge.net/projects/gnuada/files/GNAT_GPL%20Mac%20OS%20X/2009-t >>> ig >>> er-ppc/ - do you think that would do? >> >> He's got that and now we have: >> >>> gcc -c -I./ -I../Source -funwind-tables -g -gnatoVa -gnatfl05 -O1 -I- >>> ee9.adb >>> dyld: Library not loaded: /usr/local/lib/libintl.8.dylib >>> Referenced from: /usr/local/gnat-2009//bin/gcc >>> Reason: image not found >> >> Any guesses as to what is going on here? > > Looks as though the contributor didn't include this library in the > tarball. Not sure why it's looking at /usr/local/lib, implies it was on > his system .. afraid I don't know who the contributor was, anyone else > remember? Thanks Simon. He found the library elsewhere on his machine & copied it to where GNAT wanted it. Gnatmake now runs. The problem now is a portability issue. I have the declarations: type word is mod 2**48; ... type field_of_16_bits is mod 2**16; type Q_part is new field_of_16_bits; type Q_register is record C_part, I_part, M_part : Q_part; end record; for Q_register'Size use KDF9.word'Size; And this is fine in Intel. But on PPC, we get the error: 92. for Q_register'Size use word'Size; | >>> size for "Q_register" too small, minimum allowed is 64 It's puzzling that the compiler refuses to give Q_register the size that it happily gave to word. (The aspect clause is there to support unchecked conversions between the word and Q_register types.) -- Bill Findlay with blueyonder.co.uk; use surname & forename;