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 2002:a24:3f4c:: with SMTP id d73-v6mr1903146ita.30.1529144928388; Sat, 16 Jun 2018 03:28:48 -0700 (PDT) X-Received: by 2002:a9d:4b04:: with SMTP id q4-v6mr219139otf.3.1529144928210; Sat, 16 Jun 2018 03:28:48 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!news.redatomik.org!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!85.12.16.69.MISMATCH!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.am4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!d7-v6no2782680itj.0!news-out.google.com!c20-v6ni1768itc.0!nntp.google.com!u78-v6no2763829itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 16 Jun 2018 03:28:47 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a01:e34:ec14:6240:17:7d0:8c3c:4fae; posting-account=WhOnNQoAAABiIq-mEoPhZr-jnm9KsB6V NNTP-Posting-Host: 2a01:e34:ec14:6240:17:7d0:8c3c:4fae References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <7d1aa1b8-44af-417e-8fe0-4512c2f74bf1@googlegroups.com> Subject: Re: gprbuild not working on GNAT 2015 GPL for raspberry pi cross compile From: jeanbaptistesmn@gmail.com Injection-Date: Sat, 16 Jun 2018 10:28:48 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 4384 X-Received-Body-CRC: 2901243062 Xref: reader02.eternal-september.org comp.lang.ada:53136 Date: 2018-06-16T03:28:47-07:00 List-Id: Le samedi 11 juillet 2015 20:13:09 UTC+2, Brad Moore a =C3=A9crit=C2=A0: > I am trying to get gprbuild to work for the GNAT 2015 GPL Raspberry Pi 2= Linux (32 bits) release. >=20 > When I try to build one of my project files, I get the error, >=20 > "warning: no compiler specified for language "Ada", ignoring all its sour= ces" >=20 > I can build most of my projects with >=20 > arm-linux-gnueabihf-gnatmake instead of gprbuild. >=20 > However, some of my projects involve multi-language support, which fails = to build. > I suspect that if I could get gprbuild to work, then I would be able to b= uild these projects. >=20 > I have googled and found others with similar problems on other GNAT relea= ses, but have not seen any real fixes. >=20 > Has anyone had any luck using gprbuild for this release. >=20 > I think I could possibly get things to work by defining the GNAT compiler= from scratch > in the gprbuild knowledgebase files, but surely one shouldn't need to do = that if the compiler > is GNAT. One would think the base install would have set things up for co= mpiling Ada. >=20 > So I suspect, there is a quick and easy fix. >=20 > Anyone know what that might be? > Has anyone managed to get gprbuild to work with the 2015 Raspberry Pi GPL= release of GNAT? >=20 > gprbuild does work fine with the x86 build of the x86 2015 GPL release. >=20 > One thing I note, is that when I use the -v flag on the gprbuild command = line, > I see --target=3Dx86-linux >=20 > I would have thought the target show as --target=3Darm-linux-gnueabihf >=20 > Yet, the only compilers in my PATH are the Raspberry GNAT cross compiler, > and the FSF x86 compiler for the 4.9 release. The Raspberry GPL compiler= appears first in the PATH. >=20 > However, if I run > /usr/gnat/bin/gprconfig --show-targets >=20 > I only get the following output; >=20 > List of targets supported by a compiler: > x86_64-linux-gnu >=20 > It appears that gprbuild and gprconfig are unable to find the install of = the raspberry Pi cross compiler. >=20 >=20 > Regards, > Brad Moore Hello, i have the problem too but i don't resolve it. I think the ENV_PREFIX variable is correctly set : $ echo $ENV_PREFIX /usr/gnat/arm-linux-gnueabihf/sysroot sysroot directory was generated and : $ gprconfig -show-targets Lists of targets supported by a compilater: arm-linux-gnueabihf x86_64-linux-gnu arm-linux-gnueabihf but when i do : $ gprbuild --target=3Darm-linux-gnueabihf -P myProject.gpr "warning: no compiler specified for language "Ada", ignoring all its source= s"=20 "main.adb" is not a source of project "myProject" Simon, i'm not sure i understand your answer : >Gprconfig looks for a compiler and a runtime. If it finds {target}-gcc=20 >it runs -dumpmachine to find the version, then looks for runtimes in (at= =20 >least) lib/gcc/{target}/{version}; first in adalib/, then via=20 >ada_object_path, then via rts-*/.=20 what's wrong whith my environment ? Jean-Baptiste