i386-rtems 4.6.6 build problems

Ze Manel zemanel at gmail.com
Wed Feb 28 21:34:55 UTC 2007


I'm trying to build rtems for i386, and I come to all sorts of errors

I've got the required tools with the right versions.
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.

I downloaded version 4.6.6 sources and uncompressed it
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/"

and the make, in the build directory...

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".
Now I get another error:

optimize/open.o -c ../../../../../../rtems-4.6.6
/c/src/../../cpukit/libcsupport/src/open.c
../../../../../../rtems-4.6.6/c/src/../../cpukit/libcsupport/src/open.c: In
function `open':
../../../../../../rtems-4.6.6/c/src/../../cpukit/libcsupport/src/open.c:83:
error: `_FREAD' undeclared (first use in this function)
../../../../../../rtems-4.6.6/c/src/../../cpukit/libcsupport/src/open.c:83:
error: (Each undeclared identifier is reported only once
../../../../../../rtems-4.6.6/c/src/../../cpukit/libcsupport/src/open.c:83:
error: for each function it appears in.)
../../../../../../rtems-4.6.6/c/src/../../cpukit/libcsupport/src/open.c:85:
error: `_FWRITE' undeclared (first use in this function)

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?

thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20070228/10e423cf/attachment.html>


More information about the users mailing list