RTEMS Logo

RTEMS 4.9.5 On-Line Library


Installing GCC and NEWLIB Without RPM

PREV UP NEXT Bookshelf Getting Started with RTEMS

4.2.7: Installing GCC and NEWLIB Without RPM

Before building gcc-<VERSION> and newlib-<VERSION>, binutils-<VERSION> must be installed and the directory containing those executables must be in your PATH.

The C Library is built as a subordinate component of gcc-<VERSION>. Because of this, the newlib-<VERSION> directory source must be available inside the gcc-<VERSION> source tree. This is normally accomplished using a symbolic link as shown in this example:

cd gcc-<VERSION>
ln -s ../newlib-<VERSION>/newlib .

The following example illustrates the invocation of configure and make to build and install gcc-<VERSION> with only C and C++ support for the sparc-rtems4.9 target:

mkdir b-gcc
cd b-gcc
../gcc-<VERSION>/configure --target=sparc-rtems4.9 \
   --with-gnu-as --with-gnu-ld --with-newlib --verbose \
   --enable-threads --enable-languages="c,c++" \
   --prefix=/opt/rtems-4.9
make all
make info
make install

After gcc-<VERSION> is built and installed the build directory b-gcc may be removed.

For more information on the invocation of configure, please refer to the documentation for gcc-<VERSION> or invoke the gcc-<VERSION> configure command with the --help option.


PREV UP NEXT Bookshelf Getting Started with RTEMS

Copyright © 1988-2008 OAR Corporation