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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,57ca86d2263c2ca9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-29 23:50:53 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: wojtek@power.com.pl (Wojtek Narczynski) Newsgroups: comp.lang.ada Subject: Re: Gnat: system__finalization_implementation__finalize_list Date: 29 Jan 2003 23:50:52 -0800 Organization: http://groups.google.com/ Message-ID: <5ad0dd8a.0301292350.414ad2c6@posting.google.com> References: <3e379038$0$350$bed64819@news.gradwell.net> <3e38664a$0$351$bed64819@news.gradwell.net> NNTP-Posting-Host: 80.55.195.178 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1043913052 22342 127.0.0.1 (30 Jan 2003 07:50:52 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 30 Jan 2003 07:50:52 GMT Xref: archiver1.google.com comp.lang.ada:33594 Date: 2003-01-30T07:50:52+00:00 List-Id: porton@ex-code.com (Victor Porton) wrote in message news:<3e38664a$0$351$bed64819@news.gradwell.net>... > It is inside of Ada libraries. To check I would need to download the > Gnat sources and probably recompile these :-( You only need to recompile the runtime libraries. GNAT manual mentions how to do this. In default install they are: /usr/gnat/lib/gcc-lib/i686-pc-linux-gnu/2.8.1/adainclude /usr/gnat/lib/gcc-lib/i686-pc-linux-gnu/2.8.1/adalib (But GNAT sources are interesting anyway!) > Oh, Ada is not so reliable as I cannot find a cause of segfault with > all checks turned on! :-~ Like C++... > > >> This error appears after exiting my main rountine (well, the main > >> rountine is not a procedure but a begin...end block of a package > >> body.) > > > > That's _not_ a main routine; in Ada, the main routine must be a > > library level procedure. Hmm, can't find that in the LRM, maybe that's > > a GNAT distinction. > > "Main rountine" was just my informal wording. Then you may need to check GNAT manual on invoking Ada from C main routine. This is not that straightforward. I believe it's described here http://gcc.gnu.org/onlinedocs/gnat_ug_unx/Generating-the-Binder-Program-in-C.html Regards, Wojtek