From: Bill Findlay <yaldnif.w@blueyonder.co.uk>
Subject: Re: GNAT for a PPC Mac OS X machine
Date: Mon, 18 Apr 2011 15:31:37 +0100
Date: 2011-04-18T15:31:37+01:00 [thread overview]
Message-ID: <C9D209D9.9928%yaldnif.w@blueyonder.co.uk> (raw)
In-Reply-To: m2oc43q539.fsf@pushface.org
On 18/04/2011 10:30, in article m2oc43q539.fsf@pushface.org, "Simon Wright"
<simon@pushface.org> wrote:
> Bill Findlay <yaldnif.w@blueyonder.co.uk> writes:
>
>> On 17/04/2011 15:43, in article m2vcydos58.fsf@pushface.org, "Simon Wright"
>> <simon@pushface.org> wrote:
>>
>>> Bill Findlay <yaldnif.w@blueyonder.co.uk> 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;
next prev parent reply other threads:[~2011-04-18 14:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-17 14:02 GNAT for a PPC Mac OS X machine Bill Findlay
2011-04-17 14:43 ` Simon Wright
2011-04-17 18:47 ` Bill Findlay
2011-04-18 1:50 ` Bill Findlay
2011-04-18 9:30 ` Simon Wright
2011-04-18 14:31 ` Bill Findlay [this message]
2011-04-18 15:28 ` Niklas Holsti
2011-04-18 15:46 ` Bill Findlay
2011-04-18 17:08 ` Niklas Holsti
2011-04-19 3:07 ` Bill Findlay
2011-04-18 15:52 ` Georg Bauhaus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox