comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: gprbuild fun
Date: Sun, 28 Jun 2015 21:08:43 +0100
Date: 2015-06-28T21:08:43+01:00	[thread overview]
Message-ID: <lyh9prbnp0.fsf@pushface.org> (raw)
In-Reply-To: zsjg2dk0b74c$.14fsadcai5cv.dlg@40tude.net

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:

> 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)

I suppose I've only had arm-eabi-gcc on the path fairly recently, so
there wouldn't've been a cross-compiler to confuse matters.

>> 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.

In this case, I could alternatively have invoked gprbuild with
--target=x86_64-apple-darwin13. But it shouldn't've been necessary!

I'm still quite baffled as to exactly where in the source gprbuild
invokes gprconfig with --target=all to cause the effect I saw. I suppose
it might just call it as a library.

  parent reply	other threads:[~2015-06-28 20:08 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-28 17:28 gprbuild fun Simon Wright
2015-06-28 18:09 ` Dmitry A. Kazakov
2015-06-28 19:22   ` David Botton
2015-06-28 21:37     ` vincent.diemunsch
2015-06-28 23:02       ` David Botton
2015-06-29  8:24         ` vincent.diemunsch
2015-06-29  8:36           ` Simon Wright
2015-06-29  8:57             ` Vincent
2015-06-29  8:29         ` Simon Wright
2015-06-28 20:08   ` Simon Wright [this message]
2015-06-29  9:58 ` Brian Drummond
2015-06-29 10:11   ` Mark Lorenzen
2015-06-29 11:17     ` Simon Wright
2015-06-29 11:10   ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox