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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,93e9f244fd8e7db4 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news3.google.com!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Erroneous installation for GPRBuild on Ubuntu ? Date: Thu, 26 May 2011 13:21:24 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: mx04.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="8191"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+kThKkIv0/0Pq76wBytj5NtfqrRMKVW/8=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (darwin) Cancel-Lock: sha1:478nVgcPuhaD/Sl7M0uWn0fY87w= sha1:NqNSOJnSKCRmEeGaOEsgaG2RhYw= Xref: g2news1.google.com comp.lang.ada:19485 Date: 2011-05-26T13:21:24+01:00 List-Id: "Yannick Duchêne (Hibou57)" writes: > I've installed GNAT in Ubuntu (10.10) since 4 months. This works > fine. Today, I wanted to install AUnit. The documentation stated > GPRBuild is required for that. So I installed GPRBuild (which I did > not installed so far), and launched the “make” command from the > “aunit-gpl-2010-src” directory. > > It failed, with this rather surprising message: > >> aunit_build.gpr:3:09: warning: no compiler specified forlanguage >> "Ada", ignoring all its sources >> […] >> gprbuild: no sources to compile > > How is this possible ? No compiler specified for language "Ada", it says ? > > Note: both the FSF Ada compiler and GPRBuild was installed from > official packages (not installed from scratch). When you say "GPRBuild was installed from official packages" I suppose you mean AdaCore's? I think the trouble is that gprbuild has lots of flexibility to run different compilers in different circumstances, and this can confuse it. I presume that your GNAT's gcc and gprbuild are both on your PATH (NB, gprbuild is looking for "gcc", not "gnatgcc"). If this is OK and gprbuild still doesn't work, then execute $ gcc -v and check the Target: line; here, I get $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/opt/gcc-4.6.0-x86_64/libexec/gcc/x86_64-apple-darwin10/4.6.0/lto-wrapper Target: x86_64-apple-darwin10 [...] and you need to tell gprbuild to use that target. Without, $ /opt/gnat-gpl-2010-x86_64/bin/gprbuild -P default default.gpr:1:09: no languages defined for this project gprbuild: "default" processing failed With, $ /opt/gnat-gpl-2010-x86_64/bin/gprbuild \ --target=x86_64-apple-darwin10 -P default gcc -c -g -gnatQ -gnato -fstack-check -g acc.adb [...]