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,ba82cf50e767f4f0 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!w1g2000prk.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: cannot generate code for file a-excach.adb (subunit) Date: Tue, 27 Jan 2009 09:15:43 -0800 (PST) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 94.108.173.129 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1233076544 31843 127.0.0.1 (27 Jan 2009 17:15:44 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 27 Jan 2009 17:15:44 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w1g2000prk.googlegroups.com; posting-host=94.108.173.129; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.18) Gecko/20081030 Iceape/1.1.13 (Debian-1.1.13-1),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:3502 Date: 2009-01-27T09:15:43-08:00 List-Id: The error message from GNAT is because Ada.Exceptions.Call_Chain is a separate subprogram which is really part of the package Ada.Exceptions; it is a subunit, not a child unit. GNAT refuses to compile separate units separately; it will compile separate units when it compiles their enclosing unit. What this boils down to is: gnatmake a-excach.adb gives the error "cannot generate code for file a-excach.adb (subunit)" gnatmake a-except.adb compiles both a-except.adb and a-excach.adb into one object file, a- except.o. -- Ludovic Brenta.