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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: gprbuild fun Date: Sun, 28 Jun 2015 20:09:05 +0200 Organization: cbb software GmbH Message-ID: References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: evoS9sCOdnHjo0GRLLMU1Q.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:26514 Date: 2015-06-28T20:09:05+02:00 List-Id: On Sun, 28 Jun 2015 18:28:13 +0100, Simon Wright wrote: > I have a mixed-language GPR like > > project build is > for languages use ("ada", "c"); > for source_files use ("a.adb", "c.c"); > package ide is > for compiler_command ("ada") use "gnatmake"; > end ide; > end build; > > (I have no idea why I introduced the compiler_command setting on > 2014-05-01, and I have no idea why the issue has only just surfaced) > > and, if I have the native gcc and arm-eabi-gcc present in the PATH, > gprbuild chooses to use the native gcc for the Ada part and arm-eabi-gcc > for the C part! > > Fix: delete the compiler_command line. Under Fedora ARM gprbuild is broken (wrong target). The fix is to rename it to /usr/bin/gprbuild.old and use #!/bin/sh gprbuild.old --target=armv7hl-redhat-linux-gnueabi $* instead. It is a pity that gnatmake is going to be ditched. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de