<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>RE: Ada Toolchain for RTEMS 4.10/LEON3</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>> > My current build attempt is based on:<BR>
> ><BR>
> > binutils 2.201.1<BR>
> > gmp 5.0.1<BR>
> > mpc 0.8.1<BR>
> > mpfr 2.4.2<BR>
> > newlib 1.18.0<BR>
> > gcc 4.5.0<BR>
> ><BR>
> > I build sparc-rtems binutils, a multilibbed native gcc with C and Ada<BR>
> > support, a multilibbed sparc-rtems gcc with C and C++ support only,<BR>
> > followed by a multilibbed sparc-rtems gcc with C, C++ and Ada<BR>
> > support. I specify a sysroot during the cross-compile builds. <BR>
> > Predictably, everything goes wrong for me during the final step. The<BR>
> > build drops out with errors in gcc/ada/rts/socket.c. These seem to be<BR>
> > related to missing types (especially struct servent). I'm guessing<BR>
> > this should come from gsocket.h, and there are some interesting<BR>
> > comments in that file about RTEMS support but I'm afraid that I don't<BR>
> > understand a word of them.<BR>
> ><BR>
> > Has anyone successfully built a multilibbed Ada toolchain for recent<BR>
> > RTEMS versions? It looks some major issues have been resolved,<BR>
> > especially since the wiki entry was written. Can anyone offer any advice?<BR>
> ><BR>
> Yes. :-D<BR>
><BR>
> I can't speak for the accuracy of the wiki at the moment but the<BR>
> scripts in the gcc-testing CVS module can build it. The trick is<BR>
> to build RTEMS with networking multilib'ed and install it<BR>
> and the BSP you are interested in before building Ada.<BR>
><BR>
> <A HREF="http://www.rtems.org/pipermail/rtems-tooltestresults/2010-April/000337.html">http://www.rtems.org/pipermail/rtems-tooltestresults/2010-April/000337.html</A><BR>
><BR>
> There are two patches from the SVN head you need that were<BR>
> too late for the branch.<BR>
<BR>
Thanks for the pointer to gcc-testing Joel, I didn't know that existed. I'm still getting some build problems, but having had a look around the source, I was wondering: do I need to be patching the tools with the patches in rtems/contrib/crossrpms/patches? If so, do I need all of them, and which versions should I be using for the head revision of CVS? I was under the impression that RTEMS 4.10 was (going to be) the head of CVS, as it says on the home page, which leaves me confused about RTEMS 4.11. Can anyone explain?<BR>
<BR>
Thanks in advance,<BR>
<BR>
Peter<BR>
<BR>
2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com><BR>
<BR>
* g-socket.adb: A target can have multiple missing errno's. This<BR>
will result in multiple errno's being defined as -1. Because<BR>
of this<BR>
we can not use a case but must use a series of if's to avoid<BR>
a duplicate case error in GNAT.Sockets.Resolve_Error.<BR>
<BR>
2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com><BR>
<BR>
* gsocket.h: Run-time can no longer be built without network<BR>
OS headers available. Changing RTEMS GNAT build procedure to<BR>
reflect this and letting run-time build use network .h files.<BR>
<BR>
> Thanks in advance,<BR>
><BR>
> Peter<BR>
><BR>
> SciSys UK Limited. Registered in England and Wales No. 4373530.<BR>
> Registered Office: Methuen Park, Chippenham, Wiltshire SN14 0GB, UK.<BR>
> P Before printing, please think about the environment.<BR>
<BR>
<BR>
--<BR>
Joel Sherrill, Ph.D. Director of Research& Development<BR>
joel.sherrill@OARcorp.com On-Line Applications Research<BR>
Ask me about RTEMS: a free RTOS Huntsville AL 35805<BR>
Support Available (256) 722-9985<BR>
<BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
<!--[object_id=#scisys.co.uk#]--><FONT face=Tahoma size=2><FONT color=#0000ff>
<DIV align=left> </DIV>
<DIV align=left><FONT face=Tahoma color=#808080 size=2>SciSys UK Limited. Registered in England and Wales No. 4373530.</FONT></DIV>
<DIV align=left><FONT face=Tahoma color=#808080 size=2>Registered Office: Methuen Park, Chippenham, Wiltshire SN14 0GB, UK.</FONT></DIV>
<DIV align=left> </DIV>
<DIV align=left><SPAN class=400184714-12042007><FONT face=Webdings color=#008000 size=4>P</FONT><FONT color=#000000><FONT face=Tahoma><FONT size=4> </FONT><SPAN style="FONT-SIZE: 7pt; FONT-FAMILY: Tahoma"><FONT size=1><FONT color=#008000>Before printing, <SPAN class=296245114-12042007>please </SPAN>think about the environment<SPAN class=296245114-12042007>.</SPAN></FONT></FONT></SPAN></FONT></FONT></SPAN></DIV></FONT></FONT></HTML>