Building for Linux
Joel Sherrill
joel at oarcorp.com
Tue May 5 12:09:59 UTC 1998
On Tue, 5 May 1998, Dominic Hanlan VH370 3375 wrote:
> 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
These are only used for cross builds -- not the native unix ones. These
use the native toolset.
> I would like to build the system to run for evaluation on Linux ( intel
> ) but seem to be having no luck so far.
I think linux was broken in that beta. We cleaned up some configuration
and stuff broke. Try this to verify:
mkdir build
cd build
../rtems-4.0.0-beta3/configure
gmake
cd posix/tests
./hello.exe
That is the basic procedure. I will be out of the office today so can't
check that. I am answering from home.
> 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.
Sorry. bit is only for building a cross toolset.
Where in the documentation would this point have helped? Obviously this
point was neglected somewhere.
> 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/
i386-rtems targets an embedded ix86 CPU running RTEMS. It is an embedded
configuration -- not a unix hosted one.
> 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/
> /usr/lib/libm.a /usr/lib/libc.a
> /usr/lib/libc.a: could not read symbols: File format not recognized
Exactly linux is elf and you just build a coff based embedded corss
toolset.
> why is it trying to use /usr/lib/libc.a ? Do they not come from
> newlib-1.8.0 ?
you are configuring for a non-unix embedded i386.
> 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.
--joel
More information about the users
mailing list