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,ebfd1d7c60facfc5 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!newsfeed.stueberl.de!feed.news.tiscali.de!news.belwue.de!LF.net!news.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: elaboration circularity detected problem, How to fix? Date: Mon, 20 Sep 2004 19:11:10 +0200 Message-ID: <87oek027dd.fsf@deneb.enyo.de> References: <414eee7d@dnews.tpgi.com.au> <414efb5b$1_1@baen1673807.greenlnk.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: albireo.enyo.de 1095700271 22186 212.9.189.171 (20 Sep 2004 17:11:11 GMT) X-Complaints-To: Cancel-Lock: sha1:wkg1c1Y7+8CAlLFM5f8C+ulHELY= Xref: g2news1.google.com comp.lang.ada:3870 Date: 2004-09-20T19:11:10+02:00 List-Id: * Martin Dowie: > Scott Travak wrote: >> Hi everyone, I was hoping to obtain some assistance with a program I >> am constructing. Essentially my program is made up as follows: >> >> 1) Two packages (one of which is a generic package). >> 2) Each package essentially contains a task >> 3) Each task contains a reference to (operates on) the other task >> >> I am encountering a "elaboration circularity detected" error (see >> below). > > try building using the " -gnatE " option. Dynamic elaboration checks are never the best solution. If the elaboration order can't be determined at compile-time, there is some significant design problem in the code. Scott, you should try to determine what's causing the circularity and try to work around it (for example, by putting initialization code into a different package).