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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.13.226.201 with SMTP id l192mr3080402ywe.50.1499864752422; Wed, 12 Jul 2017 06:05:52 -0700 (PDT) X-Received: by 10.36.29.212 with SMTP id 203mr873527itj.5.1499864752376; Wed, 12 Jul 2017 06:05:52 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!188no297850itx.0!news-out.google.com!196ni1568itl.0!nntp.google.com!v202no302743itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 12 Jul 2017 06:05:52 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=173.71.201.205; posting-account=QF6XPQoAAABce2NyPxxDAaKdAkN6RgAf NNTP-Posting-Host: 173.71.201.205 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Setting up GPRBUILD for Ada in mingw64 From: Jere Injection-Date: Wed, 12 Jul 2017 13:05:52 +0000 Content-Type: text/plain; charset="UTF-8" Xref: news.eternal-september.org comp.lang.ada:47378 Date: 2017-07-12T06:05:52-07:00 List-Id: On Wednesday, July 12, 2017 at 2:50:10 AM UTC-4, Simon Wright wrote: > Jere writes: > > > but when I tried to run a simple: > > > > gprbuild -P test_gnoga.gpr > > > > or any gpr file for that matter, I get the following error > > > > "Error: no native compiler found for language 'ada', default runtime > > test_gnoga.gpr:1:06: unknown project file: "Gnoga" > > gprbuild: "test_gnoga.gpr" processing failed" > > gprbuild uses gprconfig to work out what compilers are > available. gprconfig probes the environment in various ways, for example > by examining the output of "gcc -dumpmachine". > > Try running "gprconfig -v foo.gpr" and see whether (a) the compiler > you've installed is found at all, (b) [if you can! the output can be a > bit terse] why it was rejected. Here was my output: $ gprbuild -v test_gnoga.gpr GPRBUILD GPL 2015 (20150428) (i686-pc-mingw32) Copyright (C) 2004-2015, Free Software Foundation, Inc. 24 lines: No errors gprconfig --batch -o D:\Program_Files\msys64\home\Jere\Test_Gnoga\obj\auto.cgpr --target=x86-windows --config=ada,, Error: no native compiler found for language 'ada', default runtime Creating configuration file: D:\Program_Files\msys64\home\Jere\Test_Gnoga\obj\au to.cgpr Checking configuration D:\Program_Files\msys64\home\Jere\Test_Gnoga\obj\auto.cgp r Setting the default project search directories ==============Error messages for project file: D:\Program_Files\msys64\home\Jere \Test_Gnoga\test_gnoga.gpr 1. with "Gnoga"; | >>> unknown project file: "Gnoga" 24 lines: 1 error gprbuild: "test_gnoga.gpr" processing failed Note that the version of GCC/GNAT that I am using is 7.1. I did try building gprbuild from the adacore git repo, but with little success, which is why I grabbed the gnoga one. Normally my taget has x86_64 in it but that one just says x86 in it. I am guessing that is the culprit? > > A while back you had to say "gprbuild --target=" (where > is the output of "gcc -dumpmachine", e.g. x86_64-apple-darwin14.5.0) if > gprbuild was built with a different compiler than the one you have on > your PATH, but the pattern matching has got a lot better since then. Yeah, I started looking through that at one point, but I really couldn't make heads or tails out of what I was supposed to change. I'll try and keep looking through that. gcc outputs: x86_64-w64-mingw32