<br clear="all">I'm trying to build rtems for i386, and I come to all sorts of errors<br>
<br>
I've got the required tools with the right versions.<br>
since I'm compiling it for this arch I am using the gcc that came with
this operating system (gnu/linux), I just created a symbolic link to it
with name i386-rtems-gcc so it wouldn't complaint.<br>
<br>
I downloaded version 4.6.6 sources and uncompressed it<br>
then I made a build dir, went there anda ran "../rtems-4.6.6/configure
--target=i386-rtems --disable-posix
--disable-networking --disable-cxx --prefix=`echo ~`/RTEMS/install_dir/"<br>
<br>
and the make, in the build directory...<br>
<br>
first it kept saying that "no comand didn't exist" and it didn't I
checked the makefiles and it looked like "ar" was what was intended so
I changed no to ar. then there was a problem in
"/cpukit/libcsupport/src/__getpid.c" it aparently lacked an header
"sys/types.h".<br>
Now I get another error:<br>
<br>
optimize/open.o -c ../../../../../../rtems-4.6.6/c/src/../../cpukit/libcsupport/src/open.c<br>
../../../../../../rtems-4.6.6/c/src/../../cpukit/libcsupport/src/open.c: In function `open':<br>
../../../../../../rtems-4.6.6/c/src/../../cpukit/libcsupport/src/open.c:83:
error: `_FREAD' undeclared (first use in this function)<br>
../../../../../../rtems-4.6.6/c/src/../../cpukit/libcsupport/src/open.c:83:
error: (Each undeclared identifier is reported only once<br>
../../../../../../rtems-4.6.6/c/src/../../cpukit/libcsupport/src/open.c:83: error: for each function it appears in.)<br>
../../../../../../rtems-4.6.6/c/src/../../cpukit/libcsupport/src/open.c:85:
error: `_FWRITE' undeclared (first use in this function)<br>
<br>
aparently it also lacks an header, only unlike the previous I have no
idea what it is... Is this normal? I'm compiling the source I got
directly from rtems server... shouldn't it compile normaly? Can anyone
spot some kind of error on my procedure?<br>
<br>
thanks. <br>