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 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-27 03:03:25 PST Path: news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!news.algonet.se!algonet!news-stob.telia.net!telia.net!217.209.241.173.MISMATCH!masternews.telia.net.!newsc.telia.net.POSTED!not-for-mail From: David Holm Newsgroups: comp.lang.ada Subject: Re: RedHat 9 / GCC 3.2.2 - Florist 3.15p compile error Message-ID: <20030927120256.442b9ec1.david@realityrift.com> References: X-Newsreader: Sylpheed version 0.9.5claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="Multipart_Sat__27_Sep_2003_12_02_56_+0200_pzIjqExXONfQI7=." Date: Sat, 27 Sep 2003 10:03:23 GMT NNTP-Posting-Host: 217.208.105.245 X-Complaints-To: abuse@telia.com X-Trace: newsc.telia.net 1064657003 217.208.105.245 (Sat, 27 Sep 2003 12:03:23 CEST) NNTP-Posting-Date: Sat, 27 Sep 2003 12:03:23 CEST Organization: Telia Internet Xref: news1.google.com comp.lang.ada:43212 Date: 2003-09-27T10:03:23+00:00 List-Id: --Multipart_Sat__27_Sep_2003_12_02_56_+0200_pzIjqExXONfQI7=. Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit 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 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 > --Multipart_Sat__27_Sep_2003_12_02_56_+0200_pzIjqExXONfQI7=. Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/dWBTxVDe1wIoqX0RApBHAJ4nHhGNEjNCsxdygaVeb5V7uULQCQCff//e IgWmhSx1a5qqZbQBEV7bwvg= =2Xax -----END PGP SIGNATURE----- --Multipart_Sat__27_Sep_2003_12_02_56_+0200_pzIjqExXONfQI7=.--