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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4c019ad9cc913bbe X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-16 10:28:37 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: prichtmyer@yahoo.com (Peter Richtmyer) Newsgroups: comp.lang.ada Subject: Re: The Dreaded "Missing Subunits" Date: 16 Sep 2002 10:28:36 -0700 Organization: http://groups.google.com/ Message-ID: <1b585154.0209160928.1381657a@posting.google.com> References: <1b585154.0209121449.ef12609@posting.google.com> NNTP-Posting-Host: 164.223.72.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1032197317 19013 127.0.0.1 (16 Sep 2002 17:28:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 16 Sep 2002 17:28:37 GMT Xref: archiver1.google.com comp.lang.ada:29037 Date: 2002-09-16T17:28:37+00:00 List-Id: Simon Wright wrote in message news:... > I just tried this with GCC-3.2: > > procedure Sep is > procedure Ch is separate; > begin > Ch; > end Sep; > > and get > > smaug[9]$ gnatmake sep > gcc -c sep.adb > No code generated for file sep.adb (missing subunits) > sep.adb:2:04: warning: subunit "Sep.Ch" in file "sep-ch.adb" not found > gnatmake: "sep.adb" compilation error > > Which version are you using? I (the original poster) am using Gnat 3.14P on Win2K and AdaGIDE. When I build your little sample above, I get the same (helpful) error message. It seems to have something to do with the fact that we are not using the .ads and .adb extensions. We do use the Source_File_Name pragmas. the end of the error message (directory and unit names changed): ------------------------------------- gcc -c -Ic:\yyyyyy\sw\xxxx\ -gnatwu -gnato -IC:\YYYYYY\sw\XXXX -I.\. -I.\.. -I.\changes -I..\changes -I.\hacks -x ada -gnatwl -gnatws -gnatf - g -I- -x ada -o .\changes\zzzz.2.o .\changes\zzzz.2.ada No code generated for file zzzz.2.ada (missing subunits) End of compilation gnatmake: ".\changes\zzzz.2.ada" compilation error Done--error detected. ------------------------------------- I created a small test package with the .ads and .adb extensions and I got the name of the missing unit in the error mmessage. Of course, my "real" problem package is much larger, but that should not make a difference. I'll Take Stephen Leake's advice and report it. See what the doctor says. :-) Thanks to all... Peter