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,7a27b8f727dd1e47 X-Google-Attributes: gid103376,public Path: g2news1.google.com!news2.google.com!proxad.net!newsfeed.stueberl.de!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GNAT and no runtime Date: 10 Jun 2004 06:15:46 +0100 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <5ad0dd8a.0405260252.6523893f@posting.google.com> <3519454.Bj6hR9Rpgt@linux1.krischik.com> <5ad0dd8a.0405281242.535b9e7e@posting.google.com> <14117933.bn39bjDOdp@linux1.krischik.com> <1760877.vB5b9iA35e@linux1.krischik.com> <40c6b8fd$1_1@baen1673807.greenlnk.net> <2611361.JMxpSgI9HX@linux1.krischik.com> <40c6d68f$1_1@baen1673807.greenlnk.net> <1097959.zrTv3dtysH@linux1.krischik.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1086844833 19599 62.49.19.209 (10 Jun 2004 05:20:33 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Thu, 10 Jun 2004 05:20:33 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: g2news1.google.com comp.lang.ada:1353 Date: 2004-06-10T06:15:46+01:00 List-Id: Martin Krischik writes: > This might actually help with the problems I have with the x86_64 > version. The linker is upset that the -fPIC option was not used > when libgnat.a was created. The problem we had with -a was that the compiler options that gnatmake uses to build your code aren't necessarily the same as those used for the rebuilt library. We saw this with GNAT Project; IIRC the compiler options for your code come from package Compiler, those for library code from package Builder. We saw this because of -mlongcall (PPC option needed for large programs, not so large under VxWorks whith lots of memory on the SBC!). We now rebuild the library with the options we need; see Makefile.adalib in the adalib/ directory. Note that some GNAT releases (I don't know about the public GCC) don't include everything you need for Makefile.adalib to work, I can help a bit if you do go this route. -- Simon Wright 100% Ada, no bugs.