This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Ada on ARM


Selon "Joel Sherrill <joel@OARcorp.com>" <joel.sherrill@OARcorp.com>:

> Ralf Corsepius wrote:
> > On Mon, 2005-11-21 at 17:14 +0100, Frédéric PRACA wrote:
> >
> >>Hi,
> >>I'm currently trying to build an Ada cross compiler for ARM using the
> arm-rtems
> >>target. I tried with GCC 4.0.2 and subversion-version but I failed.
> >>What should I know to do this knowing that I already built the C and C++
> >>cross-compilers ?
> >
> >
> > 1. Replace your host compiler with the same version you want to build
> > cross (Ada requirement).
>
> Definitely critical to any success.
Well, I tried to build a svn-version croos compiler with a 4.0.2 version of GCC.
Will try again tonight after building a whole svn GCC.

> > 2. The standard RTEMS toolchains are multilib'ed, Gnatlib in gcc-4.0.x
> > doesn't support multilibs
> > => The only chance you have is to build a non-multilib'ed custom
> > RTEMS-GCC.
>
> Instructions from Laurent Guerby are on the RTEMS Wiki.
>
> http://www.rtems.com/wiki/index.php/RTEMSAda
That's already my handbook ;-)

> > 3. GNAT from GCC < 4.0.2 did not support the arm. I haven't tried
> > gcc-4.0.2 and don't know if anybody has meanwhile added arm-support to
> > GNAT.
>
> arm-rtems4.7 does build C, C++, and Ada on the gcc SVN head.  I have
> done no testing beyond that.
If you managed, I hope I'll do too.

> > All in all, I think you've lost ... :(
>
> Even if you get a compiler from the head to compile, the gnat tools
> seem to misparse target names with a version in them.  You would have to
> compile for arm-rtems to even have a prayer.
I didn't want to compile with the release number anyway.
> --joel
Thanks again.

Fred


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]