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 X-Google-Thread: 103376,beb6b378a857b7ea X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-20 07:07:46 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Use of entries using Ravenscar Date: 20 Dec 2001 09:59:04 -0500 Organization: NASA Goddard Space Flight Center Message-ID: References: <4948089f.0112180828.2ea4c80@posting.google.com> <4948089f.0112192354.5411f0ed@posting.google.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: skates.gsfc.nasa.gov 1008860557 23280 128.183.220.71 (20 Dec 2001 15:02:37 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 20 Dec 2001 15:02:37 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Xref: archiver1.google.com comp.lang.ada:18149 Date: 2001-12-20T15:02:37+00:00 List-Id: jidu2851@student.uu.se (Jimmy Dub�n) writes: > Well, more exactly the compiler throws a lot of errors when compiling > my old code. > I've declared a entry in a protected object (this is the only entry in > this PO) with a simple boolean as a "blocker". Now I get compiling > errors everywhere I call this entry. > > Example of compiler error: > > Protected_Object.Read; > >>>expected type > "System.Tasking.Protected_Objects.Single_Entry.Protection_Entry_Access" > >>>found type access to subtype of > "System.Tasking.Protected_Objects.Entries.Protection_Entries" > >>>==> in call to "Protected_Single_Entry_Call" at s-tposen.adb:232 > > This was not a problem with the old compiler, nor is it a problem > without pragma ravenscar. If I recall correctly, the Ravenscar profile forbids entries. Or maybe that was only on tasks? In any case, this is complaining about the internals of the GNAT runtime system; note the package name "System.Tasking". It could be you have some object and/or .ali files hanging around from either "the old compiler" or "compiling without Pragma (Ravenscar)". Try deleting _everything_, and recompiling from scratch. -- -- Stephe