From: Martin Dowie <martin.dowie@btopenworld.com>
Subject: Re: Elaboration problem with a task
Date: Thu, 5 Jan 2006 10:16:39 +0000 (UTC)
Date: 2006-01-05T10:16:39+00:00 [thread overview]
Message-ID: <dpirm7$cs1$1@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com> (raw)
In-Reply-To: <fwjHYACS8OvDJw3e@diphi.demon.co.uk>
JP Thornley wrote:
> gnatbind -static -x proc_p.ali
> error: elaboration circularity detected
> info: "parent_p (body)" must be elaborated before "parent_p (body)"
> info: reason: Elaborate_All probably needed in unit "parent_p (body)"
> info: recompile "parent_p (body)" with -gnatwl for full details
> info: "parent_p (body)"
> info: must be elaborated along with its spec:
> info: "parent_p (spec)"
> info: which is withed by:
> info: "parent_p.child_c1 (spec)"
> info: which is withed by:
> info: "parent_p (body)"
>
> gnatmake: *** bind failed.
>
>
> Adding pragma Elaborate_All(Parent_P.Child_C1); to the body of Parent_P
> (as suggested) produces the same error except that the pragma is now
> given as the reason for the circularity.
>
> Using -gnatwl doesn't produce any additional information.
>
> An unexpected part of the error message is that the body of Parent_P
> "must be elaborated along with its spec". Can anyone explain why this is
> or otherwise suggest how to avoid the problem.
Have you tried "-gnatE"?
Cheers
-- Martin
next prev parent reply other threads:[~2006-01-05 10:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-05 10:04 Elaboration problem with a task JP Thornley
2006-01-05 10:16 ` Martin Dowie [this message]
2006-01-05 11:13 ` JP Thornley
2006-01-05 14:18 ` Martin Dowie
2006-01-05 16:35 ` Pascal Obry
2006-01-05 19:34 ` Jeffrey R. Carter
2006-01-05 20:42 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox