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-Thread: 103376,a7ce27b599c77060 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-peer0-test!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: Martin Dowie Newsgroups: comp.lang.ada Subject: Re: Elaboration problem with a task Date: Thu, 5 Jan 2006 10:16:39 +0000 (UTC) Organization: BT Openworld Message-ID: References: NNTP-Posting-Host: host86-131-210-224.range86-131.btcentralplus.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com 1136456199 13185 86.131.210.224 (5 Jan 2006 10:16:39 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Thu, 5 Jan 2006 10:16:39 +0000 (UTC) In-Reply-To: X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) Xref: g2news1.google.com comp.lang.ada:2444 Date: 2006-01-05T10:16:39+00:00 List-Id: 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