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.99.95.141 with SMTP id t135mr838447pgb.229.1503940950985; Mon, 28 Aug 2017 10:22:30 -0700 (PDT) X-Received: by 10.36.93.82 with SMTP id w79mr39390ita.14.1503940950915; Mon, 28 Aug 2017 10:22:30 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!u11no204825qtu.1!news-out.google.com!j49ni197qtc.1!nntp.google.com!u11no204823qtu.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 28 Aug 2017 10:22:30 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=192.136.15.23; posting-account=pUOYxQoAAAAqY-e7_cmOpJZVceIJerao NNTP-Posting-Host: 192.136.15.23 References: <86615q0z14.fsf@stephe-leake.org> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <20e2b496-f02f-4f1e-adfe-000e65e02f10@googlegroups.com> Subject: Re: gprbuild not working on GNAT 2015 GPL for raspberry pi cross compile From: paherbst@gmail.com Injection-Date: Mon, 28 Aug 2017 17:22:30 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Body-CRC: 1337161800 X-Received-Bytes: 3152 Xref: news.eternal-september.org comp.lang.ada:47826 Date: 2017-08-28T10:22:30-07:00 List-Id: On Sunday, July 12, 2015 at 4:32:32 PM UTC-4, Brad Moore wrote: > On 2015-07-11 11:56 PM, Simon Wright wrote: > > Stephen Leake writes: > > > >> Brad Moore writes: > >> > >>> I am trying to get gprbuild to work for the GNAT 2015 GPL Raspberry Pi > >>> 2 Linux (32 bits) release. > >>> > >>> When I try to build one of my project files, I get the error, > >>> > >>> "warning: no compiler specified for language "Ada", ignoring all its > >>> sources" > >> > >> Run gprconfig -v > >> > >> and see what it says about what compilers are available. Then specify > >> one of those as the target for the gprbuild. > > > > Actually, > > > > gprconfig -v --target= > > > > or > > > > gprconfig -v --target=all > > > > Gprconfig looks for a compiler and a runtime. If it finds {target}-gcc > > it runs -dumpmachine to find the version, then looks for runtimes in (at > > least) lib/gcc/{target}/{version}; first in adalib/, then via > > ada_object_path, then via rts-*/. > > > > Thanks Stephen and Simon for the suggestions, > > Executing the above commands pointed out that I hadn't set the ENV_PREFIX variable correctly, > which was why my compiler install was not being detected. > From this I was eventually able to get things to compile and execute using gprbuild. > > There were a few other things I had to setup as well, for example, the run-time had to be > explicitly linked in via the project file directives for Raspian, but for the x86 builds, this wasn't necessary. > (This was only needed for an executable for which the main was written in C, calling Ada, otherwise > the project files involving pure Ada code did not require any modifications) > > Cheers, > > Brad Brad, what exactly did you have to do to fix this?