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: Cygwin grpbuild problems Date: Mon, 17 Oct 2016 18:25:24 +0100 Organization: A noiseless patient Spider Message-ID: References: <094a38ea-77a6-413d-a1cc-f9c1b53e7c05@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="5345094866ee722b933cee179a910749"; logging-data="25437"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/0gS+6KUOzAm4feo9V25QQn6jjFiaCmQw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) Cancel-Lock: sha1:i5Y47JnF2QWLnu5eTk1lUMVdgFQ= sha1:mqA2TTwQK/Ye/eFkLAVTJrOrdQ4= Xref: news.eternal-september.org comp.lang.ada:32097 Date: 2016-10-17T18:25:24+01:00 List-Id: Maciej Sobczak writes: > I tried to compile an older project of mine on Cygwin with GNAT 5.4.0. > I got the folliwing two messages: > > no languages defined for this project > warning: libraries are not supported on this platform > > (note: no shared libraries are involved, only static ones) The first message is the important one; after all, if no compiler, libraries certainly won't be supported (by this toolset). > Did anybody found the same problem on Cygwin? No, but you've probably got a mismatch between the complicated rules that gprbuild (really, gprconfig) uses to determine what compiler to use and the compiler you want to use. Rules in $prefix/share/gprconfig/compilers.xml. Are you using a gprbuild corresponding to (GCC?) 4.5.0? I'd guess not. If you say 'gcc -dumpmachine' to your 4.5.0 compiler, what does it say? If you say 'gprconfig -v', what does it say it's looking for? Here, I see [...] Parsing file /opt/gcc-4.8.1/share/gprconfig/targetset.xml Parsing file /opt/gcc-4.8.1/share/gprconfig/windres.xml Only compilers matching target x86_64-apple-darwin12 will be preserved Will examine P /opt/gcc-4.8.1/bin Will examine P /opt/gnat-gpl-2016/bin Will examine P /usr/local/bin [...] You may be able to persuade gprconfig to use your compiler by using --target={something matching what your compiler reports}. I'm not sure what the actual matching command is; complex stuff in compilers.xml. gprbuild passes the target setting to gprconfig. You can supply it on the command line (tedious, easy to forget), in a makefile, or in the project file for Target use "whatever-machine";