comp.lang.ada
 help / color / mirror / Atom feed
* gprbuild not working on GNAT 2015 GPL for raspberry pi cross compile
@ 2015-07-11 18:13 Brad Moore
  2015-07-11 19:04 ` Simon Wright
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Brad Moore @ 2015-07-11 18:13 UTC (permalink / raw)


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"

I can build most of my projects with

arm-linux-gnueabihf-gnatmake instead of gprbuild.

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 build these projects.

I have googled and found others with similar problems on other GNAT releases, but have not seen any real fixes.

Has anyone had any luck using gprbuild for this release.

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

So I suspect, there is a quick and easy fix.

Anyone know what that might be?
Has anyone managed to get gprbuild to work with the 2015 Raspberry Pi GPL release of GNAT?

gprbuild does work fine with the x86 build of the x86 2015 GPL release.

One thing I note, is that when I use the -v flag on the gprbuild command line,
I see  --target=x86-linux

I would have thought the target show as --target=arm-linux-gnueabihf

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.

However, if I run
/usr/gnat/bin/gprconfig --show-targets

I only get the following output;

List of targets supported by a compiler:
x86_64-linux-gnu

It appears that gprbuild and gprconfig are unable to find the install of the raspberry Pi cross compiler.


Regards,
Brad Moore

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-06-21 16:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-11 18:13 gprbuild not working on GNAT 2015 GPL for raspberry pi cross compile Brad Moore
2015-07-11 19:04 ` Simon Wright
2015-07-12  4:40 ` Stephen Leake
2015-07-12  5:56   ` Simon Wright
2015-07-12 20:32     ` Brad Moore
2017-08-28 17:22       ` paherbst
2018-06-16 10:28 ` jeanbaptistesmn
2018-06-21 16:27   ` Simon Wright

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