From: Simon Wright <simon@pushface.org>
Subject: Re: GPRbuild compatibility
Date: Mon, 02 Aug 2010 18:04:33 +0100
Date: 2010-08-02T18:04:33+01:00 [thread overview]
Message-ID: <m21vahaqu6.fsf@pushface.org> (raw)
In-Reply-To: f8c42fc7-97e5-4e41-8f79-b64b8fe70d02@u4g2000prn.googlegroups.com
I've remembered how I did it now.
gprbuild needs the 'gcc' that it finds in the path to match the target
that it was built with, or you have to tell it the target.
The 'gcc' part means that systems where the GNAT compiler is called
'gnatgcc' will have trouble. Perhaps a symlink
$ ln -s /usr/bin/gnatgcc ~/bin/gcc
The 'target' part is more tricky. In my case, having fixed up the PATH I
said
$ gprbuild -v
and near the top I saw
using project file test_extensions.gpr
gprconfig --batch -o /Users/simon/gnat-math-extn/test/.build/auto.cgpr --target=x86_64-apple-darwin10.2.0 --config=ada,,
Error: no matching compiler found for --config=ada,,,,
(note the bit about --target=) but when I say
$ gcc -v
it says a lot of stuff, in the middle of which is
Target: x86_64-apple-darwin10
which meant I was able to get gprbuild to recognise this as the compiler
to use by
$ gprbuild --target=x86_64-apple-darwin10
Of course it's much easier to build gprbuild with the compiler you
intend to use [if you can ;-( ] or, if there is one,to find a way of
fixing this permanently in the gprbuild configuration system.
(in your case, it'd be --target=x86_64-pc-linux-gnu).
next prev parent reply other threads:[~2010-08-02 17:04 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 [this message]
2010-08-02 17:49 ` Marcelo Coraça de Freitas
2010-08-02 20:54 ` Simon Wright
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