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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: buffer1.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!1.eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: gprbuild not working on GNAT 2015 GPL for raspberry pi cross compile Date: Sun, 12 Jul 2015 06:56:19 +0100 Organization: A noiseless patient Spider Message-ID: References: <86615q0z14.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="c762050aff3a30866fa7e79999b14776"; logging-data="3959"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19pESgT12YjAwKJZMlUNuHBRpU4Z5xMauo=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:yGNAnig/1Fwb9Z4MsuSszqOSJqQ= sha1:HTxGwz/5CoKCN2OeGP4V9ecdMws= Xref: number.nntp.giganews.com comp.lang.ada:194098 Date: 2015-07-12T06:56:19+01:00 List-Id: Stephen Leake writes: > Brad Moore 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= 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-*/.