comp.lang.ada
 help / color / mirror / Atom feed
From: paherbst@gmail.com
Subject: Re: gprbuild not working on GNAT 2015 GPL for raspberry pi cross compile
Date: Mon, 28 Aug 2017 10:22:30 -0700 (PDT)
Date: 2017-08-28T10:22:30-07:00	[thread overview]
Message-ID: <20e2b496-f02f-4f1e-adfe-000e65e02f10@googlegroups.com> (raw)
In-Reply-To: <y9Aox.73290$%5.41545@fx17.iad>

On Sunday, July 12, 2015 at 4:32:32 PM UTC-4, Brad Moore wrote:
> On 2015-07-11 11:56 PM, Simon Wright wrote:
> > Stephen Leake <stephen_leake@stephe-leake.org> writes:
> >
> >> Brad Moore <brad.moore@shaw.ca> 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=<your 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

Brad, what exactly did you have to do to fix this?

  reply	other threads:[~2017-08-28 17:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2018-06-16 10:28 ` jeanbaptistesmn
2018-06-21 16:27   ` 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