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.36.17.80 with SMTP id 77mr2813396itf.24.1504016173434; Tue, 29 Aug 2017 07:16:13 -0700 (PDT) X-Received: by 10.36.111.206 with SMTP id x197mr99492itb.3.1504016173363; Tue, 29 Aug 2017 07:16:13 -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.unit0.net!peer01.am4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!u11no1015590qtu.1!news-out.google.com!j49ni1346qtc.1!nntp.google.com!v29no1018141qtv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 29 Aug 2017 07:16:13 -0700 (PDT) In-Reply-To: <1aa5239b-95cc-4ed4-b369-a8e4494e6619@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=173.71.208.22; posting-account=QF6XPQoAAABce2NyPxxDAaKdAkN6RgAf NNTP-Posting-Host: 173.71.208.22 References: <1aa5239b-95cc-4ed4-b369-a8e4494e6619@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <352fa589-ea4b-4ea3-b47f-cf5b0dde72c7@googlegroups.com> Subject: Re: Setting up GPRBUILD for Ada in mingw64 From: Jere Injection-Date: Tue, 29 Aug 2017 14:16:13 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Body-CRC: 3890089969 X-Received-Bytes: 4107 Xref: news.eternal-september.org comp.lang.ada:47830 Date: 2017-08-29T07:16:13-07:00 List-Id: On Wednesday, July 12, 2017 at 9:09:56 AM UTC-4, Jere wrote: > 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. > > > > > Sorry, the earlier attempt had bad formatting. Hopefully this looks better: > $ 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\ > auto.cgpr > Checking configuration D:\Program_Files\msys64\home\Jere\Test_Gnoga\obj\ > auto.cgpr > Setting the default project search directories > > ==============Error messages for project file: D:\Program_Files\msys64\home\ > Jere\test_gnoga.gpr > 1. with "Gnoga"; > | > >>> unknown project file: "Gnoga" > > 24 lines: 1 error > gprbuild: "test_gnoga.gpr" processing failed So after a month or so playing with this, I finally at least got a workaround going. I was never able to get gprbuild to compile correctly, so I went back to trying to get this version of gprbuild to work with my target. My target ended up being x86_64-w64-mingw32 instead of the x86-windows specified in the -v output. I looked up gprconfig in the manual and ended up using: $ gprconfig --target=x86_64-w64-mingw32 --config=Ada batch to generate a .cgpr file (I selected all the options before saving), which I renamed to default.cgpr and placed it in my /msys64/mingw64/share/gpr folder. This causes gprbuild and related executables to use my target when running. Now I am able to use gprbuild with mingw64 and GCC 7.2 on Windows 10. Yay! I still wish I could have gotten it to build correctly, but I'll take what I can get for now.