From: Simon Wright <simon@pushface.org>
Subject: Re: GPRbuild compatibility
Date: Mon, 02 Aug 2010 21:54:37 +0100
Date: 2010-08-02T21:54:37+01:00 [thread overview]
Message-ID: <m2ocdkag6q.fsf@pushface.org> (raw)
In-Reply-To: 347d0f93-f553-4ed1-8855-f61f64152ea4@g21g2000prn.googlegroups.com
Marcelo Coraça de Freitas <marcelo.batera@gmail.com> 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!
next prev parent reply other threads:[~2010-08-02 20:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-01 8:17 GPRbuild compatibility Marcelo Coraça de Freitas
2010-08-01 9:00 ` anon
2010-08-01 10:23 ` John B. Matthews
2010-08-01 17:25 ` Simon Wright
2010-08-02 8:24 ` Stephen Leake
2010-08-02 16:17 ` Marcelo Coraça de Freitas
2010-08-02 17:04 ` Simon Wright
2010-08-02 17:49 ` Marcelo Coraça de Freitas
2010-08-02 20:54 ` Simon Wright [this message]
2010-08-03 0:45 ` Marcelo Coraça de Freitas
2010-08-03 16:25 ` Marcelo Coraça de Freitas
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox