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.182.88.133 with SMTP id bg5mr4500463obb.33.1433950453378; Wed, 10 Jun 2015 08:34:13 -0700 (PDT) X-Received: by 10.140.46.98 with SMTP id j89mr64166qga.13.1433950453275; Wed, 10 Jun 2015 08:34:13 -0700 (PDT) Path: buffer2.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!h15no1615618igd.0!news-out.google.com!4ni377qgh.1!nntp.google.com!q107no396802qgd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 10 Jun 2015 08:34:13 -0700 (PDT) In-Reply-To: <1e1e5cf8-5535-4e9f-9d85-261466ad9ce2@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=105.210.1.171; posting-account=orbgeAkAAADzWCTlruxuX_Ts4lIq8C5J NNTP-Posting-Host: 105.210.1.171 References: <6d5f352b-d886-4cd4-8f88-4116fe34129a@googlegroups.com> <4bc35d01-158d-48bb-b241-d4e3c3ce4344@googlegroups.com> <373a8c7e-8538-4de3-9647-dead707b8a88@googlegroups.com> <1e1e5cf8-5535-4e9f-9d85-261466ad9ce2@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <295e0eb8-4779-4c72-ba98-3fb0c507640d@googlegroups.com> Subject: Re: gnat compiler issues with a partial build From: jan.de.kruyf@gmail.com Injection-Date: Wed, 10 Jun 2015 15:34:13 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: number.nntp.giganews.com comp.lang.ada:193560 Date: 2015-06-10T08:34:13-07:00 List-Id: On Wednesday, June 10, 2015 at 12:11:43 PM UTC+2, Mark Lorenzen wrote: > On Tuesday, June 9, 2015 at 8:57:51 PM UTC+2, jan.de...@gmail.com wrote: >=20 > > you would not see anything because as I said above your program will ru= n until you call the undefined symbol. and that chance is very small. (Only= when you have been dumb that happens) > >=20 > > But a kernel module will not load when there are undefined symbols, per= iod. > >=20 > > And perhaps ask, yes, how I cook my runtimes . . . > > It helps the discussion. > >=20 > > cheers, > >=20 > > j. >=20 > I just checked using the nm utility (leon3-elf-nm) and there are no undef= ined symbols in the executable when building with the GNAT Ravenscar runtim= e library (otherwise it of course would'nt succeed to link), so I still thi= nk you must be configuring your runtime wrong. >=20 > Regards, >=20 > MarkL I will follow that up Mark, on the stm32 Arm board and Ravenscar, but that = _is_=20 a different compiler in the sense that it is a cross compiler. I am working= native. In any case: the runtime cooking business is like this (in its most basic f= orm) 1. extract something very basic from ravenscar or zfp. 2. compile little test programs with (1) in a subdirectory and no libraries= . 3. run nm to look for 'U' symbols. and use grep to find where they originat= e and where they are defined in any runtime. 4. Then adapt that piece of code where they are defined, one way or another= , to you new runtime. Normally of course either ravenscar or zfp will have a piece of code tha= t fits without hacking too much.=20 only for heap memory I had to modify s-memory quite a bit to fit the kernel= environment so it is all strictly controlled and not pageable. (one of my = requirements) 5. repeat 2,3,4 until satisfied that it is usable now. Then you can build t= he runtime subdirectory into a runtime library. So in that process I discovered those pesky undefined symbols, that _should= _ disappear with some compiler switch, either in System.ads or on the comma= nd line. Since it is superfluous code that is generated by the compiler, fo= r which there are no symbols in the arm ravenscar profile, that I am sure o= f. ---- Ah, the talking worked. I should next make the compiler commandline vi= sible in the arm cross compile environment. Good. Thank you. Ok, at the moment I am on another mission, but in some idle half hour I wil= l do that. Thanks again j.