From: David Holm <david@realityrift.com>
Subject: Re: RedHat 9 / GCC 3.2.2 - Florist 3.15p compile error
Date: Sat, 27 Sep 2003 10:03:23 GMT
Date: 2003-09-27T10:03:23+00:00 [thread overview]
Message-ID: <20030927120256.442b9ec1.david@realityrift.com> (raw)
In-Reply-To: vKXcb.22623$jO.12417@bignews3.bellsouth.net
[-- Attachment #1: Type: text/plain, Size: 1423 bytes --]
GNAT in GCC 3.2.2 is a very old prealpha of GNAT 5.0. I suggest you either install GNAT 3.15p
(which is stable) or GNAT 5.02 from ACT's CVS (which is not yet stable, but much more stable
than GCC 3.X).
//David Holm
On Fri, 26 Sep 2003 10:07:39 -0400
Kurt <kurt@spamnot.org> wrote:
>
> I looked for an FAQ, but no luck.
>
> When I build Florist 3.14p or 3.15p with gcc 3.2.2, I get a range error:
>
> gcc -c -O2 -gnatpg deps.adb
> posix-signals.ads:121:33: warning: static value out of range of type
> "Signal" defined at line 57
> posix-signals.ads:121:33: warning: "CONSTRAINT_ERROR" will be raised at
> run time
> gnatmake: "deps.adb" compilation error
> make: *** [deps] Error 4
>
> I'm a little rusty at Ada, but looking at the code:
>
> From 'posix-c.ads':
>
> SIGRTMAX : constant := 64;
> SIGRTMIN : constant := 34;
> NSIGS : constant := 63;
>
> From 'posix-signals.ads':
>
> type Signal is
> new System.Interrupt_Management.Interrupt_ID'Base
> range 0 .. POSIX.C.NSIGS;
> for Signal'Size use POSIX.C.int'Size;
> subtype Realtime_Signal is Signal range
> POSIX.C.SIGRTMIN .. POSIX.C.SIGRTMAX;
>
> I changed:
>
> subtype Realtime_Signal is Signal range
> POSIX.C.SIGRTMIN .. POSIX.C.SIGRTMAX;
>
> to:
>
> subtype Realtime_Signal is Signal range
> POSIX.C.SIGRTMIN .. POSIX.C.NSIGS;
>
> And, it compiled. Any ideas on this?
>
>
> --Kurt
>
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2003-09-27 10:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-26 14:07 RedHat 9 / GCC 3.2.2 - Florist 3.15p compile error Kurt
2003-09-27 10:03 ` David Holm [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox