4.7 Power PC bare builds

gmarsden at cogeco.ca gmarsden at cogeco.ca
Thu Sep 22 15:08:51 UTC 2005


Using 4.6.99.2 snapshot, Centos 4.0 (redhat) host
If I try and build rtems with the following, I get two
problems in the build and what looks like a compiler bug
when I try and run the network demo application.

../rtems-4.6.99.2/configure --prefix=/opt/rtems-4.7 --target=powerpc-rtems4.7 --disable-rtems-inlines --disable-posix
--disable-itron --enable-networking --enable-bare-cpu-model="mpc8260" --enable-bare-cpu-cflags="-g -mcpu=603e -O2
-fomit-frame-pointer -mstrict-align -Dmpc8260 -DPPC_ABI=PPC_ABI_EABI -DPPC_ASM=PPC_ASM_ELF" --enable-rtemsbsp="bare"

1. The build breaks down when it trys to build the
serial and networking chips in libchip. I don't know whether it should be even trying to build these.

2. The --enable-bare-cpu-cflags are not passed to gcc when
I do the subsequent "gmake all"

3. When I work around the above and build an app, there
is a problem reenabling interrupts in the inline function
_CORE_semaphore_Seize_isr_disable in rtems_semaphore_obtain.
It seems to be a compiler bug where it uses the wrong value when it restores the MSR. I copied a renamed version of the
inline function into the semobtain.c file and the networking demo now works.



More information about the users mailing list