Building Ada for RTEMS
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
> > 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
> is requested?
That's a good question. If the native gcc version does not have Ada
it will be a definite failure.
Technically, a range of versions of the native gcc might work but I have
much luck unless at least the major versions of the native and cross source
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
really have no hope it is going to work. I should check if gcc 6 works. For
build, you were supposed to be able to use one major number back but I
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
build the cross. If we install it with the RTEMS tools, we could create
FWIW my procedure is pretty simple, I untar, use the
script, and then build with no configure args except prefix and languages.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the devel