<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 22, 2019 at 4:08 PM Chris Johns <<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 23/1/19 9:04 am, Joel Sherrill wrote:<br>
> Notice that the build succeeds when using a native version that matches the<br>
> version being built cross. This is in keeping with long-standing advice. <br>
<br>
Should the RSB be taught to check for gcc and the native version if an Ada build<br>
is requested?<br></blockquote><div><br></div><div>That's a good question. If the native gcc version does not have Ada support, </div><div>it will be a definite failure.</div><div><br></div><div>Technically, a range of versions of the native gcc might work but I have never had</div><div>much luck unless at least the major versions of the native and cross source were</div><div>the same. This might require some magic to check and could be overly rigid. </div><div><br>And I could be biased since on CentOS, the native compiler is so old that you </div><div>really have no hope it is going to work. I should check if gcc 6 works. For a native</div><div>build, you were supposed to be able to use one major number back but I recall</div><div>that doesn't work for cross builds reliably.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Can we assume an Ada build fails with a clang native tool set?<br></blockquote><div><br></div><div>I think so. I don't think you get Ada with clang, do you? </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Should we provide a bare build set for the needed native gcc?<br></blockquote><div><br></div><div>Another good idea to discuss. I don't use the built native compiler except to</div><div>build the cross. If we install it with the RTEMS tools, we could create other</div><div>complexities. </div><div><br></div><div>FWIW my procedure is pretty simple, I untar, use the contrib/download_prerequisites</div><div>script, and then build with no configure args except prefix and languages.</div><div><br></div><div>--joel</div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Chris<br>
</blockquote></div></div>