comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: Use of entries using Ravenscar
Date: 20 Dec 2001 09:59:04 -0500
Date: 2001-12-20T15:02:37+00:00	[thread overview]
Message-ID: <usna67xaf.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: 4948089f.0112192354.5411f0ed@posting.google.com

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



  parent reply	other threads:[~2001-12-20 14:59 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-18 16:28 Use of entries using Ravenscar Jimmy Dubén
2001-12-20  7:54 ` Jimmy Dubén
2001-12-20  8:46   ` martin.m.dowie
2001-12-20 13:52     ` Jimmy Dubén
2001-12-20 14:59   ` Stephen Leake [this message]
2001-12-20 15:14     ` martin.m.dowie
2001-12-20 20:34       ` Jimmy Dub�n
2001-12-21 22:47         ` martin.m.dowie
2001-12-22  1:52           ` Jimmy Dub�n
2001-12-22 15:27             ` martin.m.dowie
2001-12-22 22:56               ` Jimmy Dub�n
2001-12-23 11:02                 ` martin.m.dowie
2001-12-22 12:25     ` Simon Wright
2001-12-23 18:48       ` Jimmy Dub�n
2001-12-26 18:02         ` Simon Wright
2001-12-23 20:01       ` Stephen Leake
2001-12-24  8:52         ` Jimmy Dub�n
2001-12-26 18:20           ` Simon Wright
2001-12-27 10:57             ` Jimmy Dub�n
2001-12-28 18:36               ` Simon Wright
2001-12-27 11:11             ` Florian Weimer
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox