<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=FR link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:10.0pt;color:#333333'>Hello
everybody,<br>
 <br>
I am working on a i386 computer in order to compile RTEMS 4.7.99.1 for a i386
target, but i have some compilation problems. <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;color:#333333'>I work under
Fedora core 6 distribution.<br>
 <br>
So, i created a directory "/rtems" to run the configure :<br>
 <br>
/root/Desktop/rtems-4.7.99.1/configure --target=i386-rtems --enable-rtemsbsp=pc386<br>
 <br>
The configure works well, i have these messages :<br>
 <br>
target architecture: i386.<br>
available BSPs: pc386.<br>
'gmake all' will build the following BSPs: pc386.<br>
other BSPs can be built with 'gmake RTEMS_BSP="bsp1 bsp2 ..."'<br>
 <br>
config.status: creating Makefile<br>
config.status: creating make/Makefile<br>
 <br>
 <br>
 <br>
Then, like it's indicated in the documentation started.pdf ( export <br>
PATH=<INSTALL_POINT>/bin:${PATH} ), i made this command :<br>
 <br>
export PATH=/rtems/bin:${PATH}<br>
Then I specify the CC variable like that :<br>
 <br>
# CC=gcc ;export CC<br>
After, i make the following command : gmake all<br>
 <br>
The compilation starts but i have a problem at this point :<br>
 <br>
gmake[7]: Entering directory <br>
`/rtems/i386-rtems/c/pc386/cpukit/score/cpu/i386'<br>
gcc --pipe -DHAVE_CONFIG_H -I../../.. <br>
-I../../../../cpukit/../../../pc386/lib/include -Wall -fasm -O2 -g -MT <br>
libscorecpu_a-cpu.o -MD -MP -MF .deps/libscorecpu_a-cpu.Tpo -c -o <br>
libscorecpu_a-cpu.o `test -f 'cpu.c' || echo <br>
'/root/Desktop/rtems-4.7.99.1/c/src/../../cpukit/score/cpu/i386/'`cpu.c<br>
In file included from /usr/include/sys/types.h:220,<br>
from ../../../../cpukit/../../../pc386/lib/include/rtems/rtems/cache.h:39,<br>
from ../../../../cpukit/../../../pc386/lib/include/rtems.h:50,<br>
from <br>
/root/Desktop/rtems-4.7.99.1/c/src/../../cpukit/score/cpu/i386/cpu.c:15:<br>
../../../../cpukit/../../../pc386/lib/include/sys/select.h:66: error: <br>
expected declaration specifiers or ‘...’ before
‘fd_set’<br>
../../../../cpukit/../../../pc386/lib/include/sys/select.h:67: error: <br>
expected declaration specifiers or ‘...’ before
‘fd_set’<br>
../../../../cpukit/../../../pc386/lib/include/sys/select.h:68: error: <br>
expected declaration specifiers or ‘...’ before
‘fd_set’<br>
gmake[7]: *** [libscorecpu_a-cpu.o] Error 1<br>
gmake[7]: Leaving directory <br>
`/rtems/i386-rtems/c/pc386/cpukit/score/cpu/i386'<br>
gmake[6]: *** [all-recursive] Error 1<br>
gmake[6]: Leaving directory `/rtems/i386-rtems/c/pc386/cpukit/score/cpu'<br>
gmake[5]: *** [all-recursive] Error 1<br>
gmake[5]: Leaving directory `/rtems/i386-rtems/c/pc386/cpukit/score'<br>
gmake[4]: *** [all-recursive] Error 1<br>
gmake[4]: Leaving directory `/rtems/i386-rtems/c/pc386/cpukit'<br>
gmake[3]: *** [all] Error 2<br>
gmake[3]: Leaving directory `/rtems/i386-rtems/c/pc386/cpukit'<br>
gmake[2]: *** [all-recursive] Error 1<br>
gmake[2]: Leaving directory `/rtems/i386-rtems/c/pc386'<br>
gmake[1]: *** [all-recursive] Error 1<br>
gmake[1]: Leaving directory `/rtems/i386-rtems/c'<br>
make: *** [all-recursive] Error 1<br>
 <br>
What could be the problem ? Does someone have any ideas?<br>
If you need more information, let me know.<br>
 <br>
 <br>
Matthieu Desarmeaux & Jean-Gabriel Gonzalez<br>
Interns in the University of Oklahoma<br>
School of Computer Science</span><o:p></o:p></p>

</div>

</body>

</html>