From: Kurt <kurt@spamnot.org>
Subject: RedHat 9 / GCC 3.2.2 - Florist 3.15p compile error
Date: Fri, 26 Sep 2003 10:07:39 -0400
Date: 2003-09-26T10:07:39-04:00 [thread overview]
Message-ID: <vKXcb.22623$jO.12417@bignews3.bellsouth.net> (raw)
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
next reply other threads:[~2003-09-26 14:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-26 14:07 Kurt [this message]
2003-09-27 10:03 ` RedHat 9 / GCC 3.2.2 - Florist 3.15p compile error David Holm
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox