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,2e577f4772a2a915 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GPRbuild compatibility Date: Mon, 02 Aug 2010 21:54:37 +0100 Organization: A noiseless patient Spider Message-ID: References: <82eiehtobg.fsf@stephe-leake.org> <347d0f93-f553-4ed1-8855-f61f64152ea4@g21g2000prn.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 2 Aug 2010 20:54:38 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="KCXegvZb5vh43D+f3BR6Ew"; logging-data="4230"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18IYn1AEA5sXFxtixqLFqI8I3J92rsKkq0=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:h9eRUNVRu39Vq10IJhIa3d7jqVg= sha1:bUkmSxGjmFrW+5xs+pRyb0fCrMs= Xref: g2news1.google.com comp.lang.ada:12813 Date: 2010-08-02T21:54:37+01:00 List-Id: Marcelo Coraça de Freitas writes: > Thanks Simon, but gprconfig still can't find the Ada compiler. > > > I did what you recomended and it found the gcc: > > > 3. GCC-ASM for Asm in /home/ogro/bin/ version 4.3.1 > 6. GCC-ASM for Asm2 in /home/ogro/bin/ version 4.3.1 > 9. GCC-ASM for Asm_Cpp in /home/ogro/bin/ version 4.3.1 > 12. GCC for C in /home/ogro/bin/ version 4.3.1 > > > But only for C and Asm2 and Asm_Cpp. Not gnat. > > > Do you know why? What GCC version are you using? Maybe it looks for a > different string comming out of the gcc command. No, I don't. The only explanation I can think of is that the command 'gcc' isn't picking up the Ada-aware compiler that you mean it to. I did this: $ PATH=/opt/gcc-4.5.0-x86_64/bin:$PATH gprconfig --target=x86_64-apple-darwin10 -------------------------------------------------- gprconfig has found the following compilers on your PATH. Only those matching the target and the selected compilers are displayed. 1. GNAT for Ada in /opt/gcc-4.5.0-x86_64/bin/ version 4.5 (default runtime) 2. GCC-ASM for Asm in /opt/gcc-4.5.0-x86_64/bin/ version 4.5.0 3. GCC-ASM for Asm2 in /opt/gcc-4.5.0-x86_64/bin/ version 4.5.0 4. GCC-ASM for Asm_Cpp in /opt/gcc-4.5.0-x86_64/bin/ version 4.5.0 5. GCC for C in /opt/gcc-4.5.0-x86_64/bin/ version 4.5.0 Select or unselect the following compiler (or "s" to save): s You can regenerate the same config file in batch mode with the following command line: gprconfig --batch --target=x86_64-apple-darwin10 Creating configuration file: x86_64-apple-darwin10.cgpr but now when I say $ PATH=/opt/gcc-4.5.0-x86_64/bin:$PATH gprbuild --target=x86_64-apple-darwin10 instead of building (which it will if I delete x86_64-apple-darwin10.cgpr) it says using project file test_extensions.gpr test_extensions.gpr:17:09: no languages defined for this project ada_math_build.gpr:15:09: warning: no compiler specified for language "ada", ignoring all its sources ada_math_build.gpr:17:25: warning: libraries are not supported on this platform gprbuild: "test_extensions.gpr" processing failed I'm baffled. Hmm, I tried $ gprconfig --config=Ada,,,/opt/gcc-4.5.0-x86_64/bin --target=x86_64-apple-darwin10 and then $ gprbuild --target=x86_64-apple-darwin10 and it was happy!