more problems building RTEMS powerpc on cygwin

Robert S. Grimes rsg at
Thu Dec 28 18:33:26 UTC 2006

I have exactly the same problem, except my BSP is using the
old-exceptions; just substitute "old" for "new", and same thing.  I
thought it was peculiar to a set of patches I've been working with for a
Virtex part, though, so I didn't mention it on the Wiki.  I spent some
time looking for it, but wasn't able to find it.  I was hoping to
resolve it eventually...

I have been working around it in the meantime.  What seems to be
happening is the the cpu_asm.o file is indeed being built, but it is
either built, or looked for, in the wrong location.  My error and
workaround is here:

    if powerpc-rtems-gcc --pipe -B../../../../.././lib/
    -B../../../../.././gen405/lib/ -specs bsp_specs -qrtems -DPACKAGE_NA
    " -DPACKAGE_STRING=\"rtems-c-src-lib-libcpu-powerpc\\"
    -DPACKAGE_BUGREPORT=\"rtems-bugs at\" -I. -I../..
    /../../../../../rtems-  -isystem
    ../../../../.././gen405/lib/include -I../../../../../.
    ./../rtems-  -Wall
    -mcpu=403 -D_OLD_EXCEPTIONS -Dppc405 -O4 -fno-keep-in
    line-functions -g -MT
    old-exceptions/old_exceptions_rtems_cpu_rel-cpu.o -MD -MP -MF
    _rtems_cpu_rel-cpu.Tpo" -c -o
    old-exceptions/old_exceptions_rtems_cpu_rel-cpu.o `test -f
    'old-exceptions/cpu.c' || echo
    then mv -f
    l-cpu.Po"; else rm -f
    "old-exceptions/.deps/old_exceptions_rtems_cpu_rel-cpu.Tpo"; exit 1; fi
    powerpc-rtems-gcc --pipe -B../../../../.././lib/
    -B../../../../.././gen405/lib/ -specs bsp_specs -qrtems -isystem ../../
    ../../.././gen405/lib/include  -DASM -mcpu=403 -D_OLD_EXCEPTIONS
    -Dppc405 -O4 -fno-keep-inline-functions -g  -c ../../..
    powerpc-rtems-gcc --pipe -B../../../../.././lib/
    -B../../../../.././gen405/lib/ -specs bsp_specs -qrtems -Wall -mcpu=403
     -D_OLD_EXCEPTIONS -Dppc405 -O4 -fno-keep-inline-functions -g   -o
    old-exceptions/rtems-cpu.rel -qnolinkcmds -nostdlib -
    Wl,-r old-exceptions/old_exceptions_rtems_cpu_rel-cpu.o
    powerpc-rtems-gcc: old-exceptions/cpu_asm.o: No such file or directory
    make[5]: *** [old-exceptions/rtems-cpu.rel] Error 1
    make[5]: Leaving directory

    $ cp -i powerpc-rtems/c/gen405/lib/libcpu/powerpc/cpu_asm.o
    $ make all

After this, I get two more similar errors,  and I assume it's the same
situation, so I work around it the same way.

    powerpc-rtems-gcc --pipe -B../../../../.././lib/
    -B../../../../.././gen405/lib/ -specs bsp_specs -qrtems -Wall -mcpu=403
     -D_OLD_EXCEPTIONS -Dppc405 -O4 -fno-keep-inline-functions -g   -o
    ppc403/vectors.rel -qnolinkcmds -nostdlib -Wl,-r ppc4
    03/vectors/vectors.o ppc403/vectors/align_h.o
    powerpc-rtems-gcc: ppc403/vectors/vectors.o: No such file or directory
    powerpc-rtems-gcc: ppc403/vectors/align_h.o: No such file or directory
    make[5]: *** [ppc403/vectors.rel] Error 1
    make[5]: Leaving directory

    $ cp -i powerpc-rtems/c/gen405/lib/libcpu/powerpc/vectors.o
    $ cp -i powerpc-rtems/c/gen405/lib/libcpu/powerpc/align_h.o
    $ make all

This gets me done.  As you stated earlier, I too am "far from being an
expert on the and stuff", so I'm not sure how
to resolve it, but for now the workaround is good enough; after all, my
real job is what I am developing with RTEMS...  :-P

That being said, I'm sure interested in fixing it properly!

avy st wrote:
> Hello All,
> I'm trying to build the RTEMS toolset and RTEMS for powerpc,
> hosted on cygwin, and supporting Ada.  I followed pretty much the
> instructions given on
> (with the
> required modifications needed for Ada building), and got more problem
> when building RTEMS itself which blows with the following message:
>     make[5]: Entering directory
>     `/cygdrive/d/BuildGccCygwin/powerpc-rtems-4.7-tools/rtems-'
>     if powerpc-rtems-gcc --pipe -B../../../../.././lib/
>     -B../../../../.././ss555/lib/ -specs bsp_specs -qrtems
>     -DPACKAGE_NAME=\"rtems-c-src-lib-libcpu-powerpc\"
>     -DPACKAGE_TARNAME=\"rtems-c-src-lib-libcpu-powerpc\"
>     -DPACKAGE_STRING=\"rtems-c-src-lib-libcpu-powerpc\\"
>     -DPACKAGE_BUGREPORT=\"rtems-bugs at\
>     <mailto:rtems-bugs at>" -I.
>     -I../../../../../../../../source/rtems- 
>     -isystem ../../../../.././ss555/lib/include  -Wall -mcpu=505
>     -Dmpc555 -Dss555 -O4 -fno-keep-inline-functions -MT
>     new-exceptions/new_exceptions_rtems_cpu_rel-cpu.o -MD -MP -MF
>     "new-exceptions/.deps/new_exceptions_rtems_cpu_rel-cpu.Tpo" -c -o
>     new-exceptions/new_exceptions_rtems_cpu_rel-cpu.o `test -f
>     'new-exceptions/cpu.c' || echo
>     '../../../../../../../../source/rtems-'`new-exceptions/cpu.c;
>     \
>          then mv -f
>     "new-exceptions/.deps/new_exceptions_rtems_cpu_rel-cpu.Tpo"
>     "new-exceptions/.deps/new_exceptions_rtems_cpu_rel-cpu.Po"; else
>     rm -f "new-exceptions/.deps/new_exceptions_rtems_cpu_rel-cpu.Tpo";
>     exit 1; fi
>     powerpc-rtems-gcc --pipe -B../../../../.././lib/
>     -B../../../../.././ss555/lib/ -specs bsp_specs -qrtems -isystem
>     ../../../../.././ss555/lib/include  -DASM -mcpu=505 -Dmpc555
>     -Dss555 -O4 -fno-keep-inline-functions  -c
>     ../../../../../../../../source/rtems-
>     powerpc-rtems-gcc --pipe -B../../../../.././lib/
>     -B../../../../.././ss555/lib/ -specs bsp_specs -qrtems -Wall
>     -mcpu=505 -Dmpc555 -Dss555 -O4 -fno-keep-inline-functions   -o
>     new-exceptions/rtems-cpu.rel -qnolinkcmds -nostdlib -Wl,-r
>     new-exceptions/new_exceptions_rtems_cpu_rel-cpu.o
>     new-exceptions/cpu_asm.o 
>     powerpc-rtems-gcc: new-exceptions/cpu_asm.o: No such file or directory
>     make[5]: *** [new-exceptions/rtems-cpu.rel] Error 1
> Any Ideas?
> Thanks everybody
> Avy Strominger
> astrominger at <mailto:astrominger at>
> mailto:astrominger at
> ------------------------------------------------------------------------
> _______________________________________________
> rtems-users mailing list
> rtems-users at

More information about the users mailing list