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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e592a3ec8b5ab997,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-26 07:08:50 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!west.cox.net!east.cox.net!peer01.cox.net!cox.net!bigfeed.bellsouth.net!bignumb.bellsouth.net!news.bellsouth.net!bignews3.bellsouth.net.POSTED!not-for-mail From: Kurt User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: RedHat 9 / GCC 3.2.2 - Florist 3.15p compile error Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Trace: bhmkggakljkaanefdbdpiflmbcekedmfhojhikkbagflhcboabkmjlaeajlhgbobfeaidjnaemoelcdilkdpobeoopngghmndipoccifmainhjgphfmjcikamagghflcmfkllfndoaljddmbopgkhfbmgdpmhfjg NNTP-Posting-Date: Fri, 26 Sep 2003 10:07:23 EDT Date: Fri, 26 Sep 2003 10:07:39 -0400 Xref: archiver1.google.com comp.lang.ada:42989 Date: 2003-09-26T10:07:39-04:00 List-Id: 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