From: Brian Drummond <brian@shapes.demon.co.uk>
Subject: Re: GNATBind with a GNAT cross‑compiler
Date: Thu, 25 Apr 2013 10:46:09 +0000 (UTC)
Date: 2013-04-25T10:46:09+00:00 [thread overview]
Message-ID: <klb1hh$ves$1@dont-email.me> (raw)
In-Reply-To: op.wv2tmg2cule2fv@cardamome
On Thu, 25 Apr 2013 05:07:18 +0200, Yannick Duchêne (Hibou57) wrote:
> Hi people,
>
> While trying to figure the cause of some weird errors while compiling
> with a GNAT cross‑compiler,
[...]
> I noticed there is a `<target>-gcc`, and a `<target>-ld` and so
> on, for each of my targets including the native one, but only a
> `<target>-gnatbind` for non‑native target, and the native one only exist
> as unprefixed.
> I don't really have any question, that's just to tell people in case any
> one encounter a similar issue. I still wonder why, as compilation of GCC
> and Binutils generates a prefixed version of all of their tools, why
> don't compilation of GNAT do the same.
Where did this crosscompiler come from?
My non-native target builds have the full set of tools. However...
If you built it from source, with --disable-libada, you may have fallen
foul of a longstanding GCC "feature" whereby building "gnattools" is also
(I believe incorrectly) disabled by this configure option.
This leaves you with "<target>-gnat" and ""<target>-gnatbind" but
"<target>-gnat*" for other values of * are missing. (You should still
have "<target>-ld" though; it is a binutils product : perhaps it was
"<target>-gnatlink" that was missing?)
Possible fixes :
after "make" when building the crosscompiler, "make -c gcc gnattools" may
build the remaining targets for you.
If that protests, then you may need to patch the gcc "configure" file to
allow the missing targets to be built, as in the following patch.
http://sourceforge.net/p/msp430ada/code/ci/tip/tree/patches/23-gcc-4.7-
ada-Makefile.patch
found on
http://sourceforge.net/p/msp430ada/code/ci/tip/tree/patches/
Having applied the patch, obviously you need to re-run configure/make/
[make gnattools if utils missing in build dir]/make install.
(The AVR-Ada project has also faced this issue with essentially the same
solution. Some upstream gcc discussion on
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19959 )
If you try this and it works - or if and how it fails - it would be
useful to follow up.
next prev parent reply other threads:[~2013-04-25 10:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-25 3:07 GNATBind with a GNAT cross‑compiler Yannick Duchêne (Hibou57)
2013-04-25 10:46 ` Brian Drummond [this message]
2013-04-26 20:59 ` Yannick Duchêne (Hibou57)
2013-04-26 23:24 ` Yannick Duchêne (Hibou57)
2013-04-27 2:47 ` Yannick Duchêne (Hibou57)
2013-04-27 8:23 ` Brian Drummond
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox