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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.13.238.71 with SMTP id x68mr24290398ywe.52.1433849280310; Tue, 09 Jun 2015 04:28:00 -0700 (PDT) X-Received: by 10.140.28.73 with SMTP id 67mr254871qgy.36.1433849280270; Tue, 09 Jun 2015 04:28:00 -0700 (PDT) Path: buffer1.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!q107no160135qgd.0!news-out.google.com!4ni74qgh.1!nntp.google.com!z60no159224qgd.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 9 Jun 2015 04:28:00 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=105.210.1.139; posting-account=orbgeAkAAADzWCTlruxuX_Ts4lIq8C5J NNTP-Posting-Host: 105.210.1.139 References: <6d5f352b-d886-4cd4-8f88-4116fe34129a@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4bc35d01-158d-48bb-b241-d4e3c3ce4344@googlegroups.com> Subject: Re: gnat compiler issues with a partial build From: jan.de.kruyf@gmail.com Injection-Date: Tue, 09 Jun 2015 11:28:00 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: number.nntp.giganews.com comp.lang.ada:193542 Date: 2015-06-09T04:28:00-07:00 List-Id: On Tuesday, June 9, 2015 at 12:21:28 PM UTC+2, Mark Lorenzen wrote: > On Thursday, June 4, 2015 at 1:12:27 PM UTC+2, jan.de...@gmail.com wrote: >=20 > > jan@janDell:~/MMS/programs-KERNEL/ec-master/obj$ nm memory_copy.o > > U __gnat_rcheck_CE_Access_Check > > 0000000000000000 T memcpy > > 0000000000000000 D memory_copy_E > > ------------------------------------- > >=20 > > They are all related to the Exception machinery and refer to about 4 or= 5 symbols in "Ada.Exeptions" in the standard "x86 Linux" runtime. > > They are caused by any construct where the compiler suspects that there= might be a runtime error under certain conditions. And they have to do wit= h exception propagation I suspect, from looking at a disassembly. > > Now in an zfp runtime, any standard runtime references should be switch= ed off in the compiler, or else an alternative should be supplied in the cu= stom runtime. But both ravenscar and zfp (ex Adacore) do not cater for this= eventuality. > >=20 > > Needless to say that I have been through all exception related pragmas = and restrictions. And I did make a 'gnat.adc' file that is duly noted in th= e project file. So that any pragmas are global. >=20 > I don't know what you are trying to achieve, but it seems to me, that you= want to build your module with a ZFP run-time that you don't have... >=20 > Can you build your module with run-time checks disabled? This should ensu= re that the access check code is not emitted and therefore does not refer t= o the undefined symbol __gnat_rcheck_CE_Access_Check. >=20 > Regards, >=20 > MarkL Any simple runtime is easily cooked, when you understand the gnat way of do= ing things. And yes I could compile with runtime checks disabled. But then = there are simpler ways of doing that (like programming in C)=20 The issue seems to me (and I could be mistaken of course) that there is an = anomaly in the compiler and/or the gnat ravenscar runtime and/or the docume= ntation.=20 I am posting mostly to jog my own brains and to document a dark corner in t= he process of kernelmodule building in Ada, since preciously little literat= ure is available. So yes, most definitely thanks for your contribution :) P= erhaps the light will shine someday. cheers, j.