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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!fx17.iad.POSTED!not-for-mail From: Brad Moore User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: gprbuild not working on GNAT 2015 GPL for raspberry pi cross compile References: <86615q0z14.fsf@stephe-leake.org> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 68.145.219.148 X-Complaints-To: internet.abuse@sjrb.ca X-Trace: 1436733150 68.145.219.148 (Sun, 12 Jul 2015 20:32:30 UTC) NNTP-Posting-Date: Sun, 12 Jul 2015 20:32:30 UTC Date: Sun, 12 Jul 2015 14:32:30 -0600 X-Received-Bytes: 2524 X-Received-Body-CRC: 1578385603 Xref: news.eternal-september.org comp.lang.ada:26798 Date: 2015-07-12T14:32:30-06:00 List-Id: 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