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: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Setting up GPRBUILD for Ada in mingw64 Date: Wed, 12 Jul 2017 07:50:08 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="5467da6ec080b421e0ad328fee97f677"; logging-data="18741"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18c8kgh3HFJy3uNw1EsvfnoqYI6JMxu5/s=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (darwin) Cancel-Lock: sha1:+5mKktoYUqirjTJgsDYYVaESUrc= sha1:EWIk9rWCGaw4RDQF62nc4o/YjQg= Xref: news.eternal-september.org comp.lang.ada:47371 Date: 2017-07-12T07:50:08+01:00 List-Id: 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. 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.