Building Ada for RTEMS

Joel Sherrill joel at rtems.org
Tue Jan 22 22:53:01 UTC 2019


On Tue, Jan 22, 2019 at 4:08 PM Chris Johns <chrisj at rtems.org> wrote:

> On 23/1/19 9:04 am, Joel Sherrill wrote:
> > Notice that the build succeeds when using a native version that matches
> the
> > version being built cross. This is in keeping with long-standing advice.
>
> Should the RSB be taught to check for gcc and the native version if an Ada
> build
> is requested?
>

That's a good question. If the native gcc version does not have Ada
support,
it will be a definite failure.

Technically, a range of versions of the native gcc might work but I have
never had
much luck unless at least the major versions of the native and cross source
were
the same. This might require some magic to check and could be overly rigid.

And I could be biased since on CentOS, the native compiler is so old that
you
really have no hope it is going to work. I should check if gcc 6 works. For
a native
build, you were supposed to be able to use one major number back but I
recall
that doesn't work for cross builds reliably.


>
> Can we assume an Ada build fails with a clang native tool set?
>

I think so. I don't think you get Ada with clang, do you?

>
> Should we provide a bare build set for the needed native gcc?
>

Another good idea to discuss. I don't use the built native compiler except
to
build the cross. If we install it with the RTEMS tools, we could create
other
complexities.

FWIW my procedure is pretty simple, I untar, use the
contrib/download_prerequisites
script, and then build with no configure args except prefix and languages.

--joel





>
> Chris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190122/fc398f9b/attachment-0001.html>


More information about the devel mailing list