Building for Linux

Dominic Hanlan VH370 3375 hanland at mcd.alcatel.be
Tue May 5 08:19:31 UTC 1998


Hi,

I have just started with RTEMS and have downloaded all the 4.0.0-beta3
files.

egcs-1.0.2
binutils-2.8.1
gas-980314
newlib-1.8.0
bit

plus patches

I would like to build the system to run for evaluation on Linux ( intel
) but seem to be having no luck so far.

Having applied all patches and set the INSTALL_POINT in bit, which CPU
should I choose? I have tried i386 and this successfully builds the
complete tools chain.
The f.c compiles fine and all the paths are correct in verbose mode.

The INSTALL_POINT is /usr/local/rtems/egcs-1.0.2/i386-rtems/

Now moving to rtems itself. I hane tried the following configuration

../rtems-4.0.0-beta3/configure --enable-gcc28 --disable-ka9q \
--prefix=/usr/local/rtems/egcs-1.0.2/i386-rtems/

This results in the following message

target architecture: unix.
available BSPs: posix.
'make all' will build the following BSPs: posix.
other BSPs can be built with 'make RTEMS_BSP="bsp1 bsp2 ..."'

following this with make all

....

***  /usr/src/tools/build-rtems/c/src/tests/samples (all)
cd tests/samples; make all


***  /usr/src/tools/build-rtems/c/src/tests/samples/hello (all)
cd hello; make all
test -d o-posix || /bin/mkdir -p -m 0755 o-posix
/usr/bin/gcc --pipe   -Wall -ansi -fasm -g -nostdinc
-I/usr/src/tools/build-rtems/posix/lib/include  -I/usr/include
-I/usr/lib/gcc-lib/i386-linux/2.7.2.1/include  -O2     -c -o
o-posix/init.o
../../../../../../rtems-4.0.0-beta3/c/src/tests/samples/hello/init.c
/usr/bin/gcc --pipe -o o-posix/hello.exe   o-posix/init.o
/usr/src/tools/build-rtems/posix/lib/no-dpmem.rel
/usr/src/tools/build-rtems/posix/lib/no-event.rel
/usr/src/tools/build-rtems/posix/lib/no-msg.rel
/usr/src/tools/build-rtems/posix/lib/no-mp.rel
/usr/src/tools/build-rtems/posix/lib/no-part.rel
/usr/src/tools/build-rtems/posix/lib/no-signal.rel
/usr/src/tools/build-rtems/posix/lib/no-timer.rel
/usr/src/tools/build-rtems/posix/lib/no-rtmon.rel 
/usr/src/tools/build-rtems/posix/lib/libtest.a  
/usr/src/tools/build-rtems/posix/lib/librtemsall.a /usr/lib/libm.a
/usr/lib/libc.a /usr/lib/gcc-lib/i386-linux/2.7.2.1/libgcc.a 
/usr/lib/libm.a /usr/lib/libc.a
/usr/lib/libc.a: could not read symbols: File format not recognized
make[4]: *** [o-posix/hello.exe] Error 1
make[3]: *** [all] Error 1
make[2]: *** [all] Error 1
make[1]: *** [all] Error 1
make[1]: Leaving directory `/usr/src/tools/build-rtems/c'
make: *** [all] Error 1

why is it trying to use /usr/lib/libc.a ? Do they not come from
newlib-1.8.0 ?

So for anyone out there who has built a Linux hosted system, could you
pass on your pearls of wisdom as to how you got your system working. How
does the tools chain get matched up with the building of RTEMS.

Best regards

/Dominic Hanlan



More information about the users mailing list