more problems building RTEMS powerpc on cygwin

avy st astrominger at
Fri Dec 29 10:04:58 UTC 2006

Hello all,

Bob, many thanks for the tip.  It did helped me out (though with a little different set of files).

If I try to summerize the problems found so far with PowerPC BSP file locations, we have (for each BSP, the offending file and the workaround, which actually shows where the file is and where the build procedure expects it to be):

"gen405" BSP (Robert S. Grimes):
    $ cp -i powerpc-rtems/c/gen405/lib/libcpu/powerpc/cpu_asm.o   powerpc-rtems/c/gen405/lib/libcpu/powerpc/old-exceptions/
    $ cp -i powerpc-rtems/c/gen405/lib/libcpu/powerpc/vectors.o      powerpc-rtems/c/gen405/lib/libcpu/powerpc/ppc403/vectors/
    $ cp -i powerpc-rtems/c/gen405/lib/libcpu/powerpc/align_h.o      powerpc-rtems/c/gen405/lib/libcpu/powerpc/ppc403/vectors/

"psim" BSP (Avy Strominger):
    $ cp -i powerpc-rtems/c/psim/lib/libcpu/powerpc/cpu_asm.o   powerpc-rtems/c/psim/lib/libcpu/powerpc/new-exceptions/
    $ cp -i powerpc-rtems/c/psim/lib/libcpu/powerpc/asm_utils.o   powerpc-rtems/c/psim/lib/libcpu/powerpc/mpc6xx/exceptions/
    $ cp -i powerpc-rtems/c/psim/lib/libcpu/powerpc/mmuAsm.o   powerpc-rtems/c/psim/lib/libcpu/powerpc/mpc6xx/mmu/

"ss555" BSP (Avy Strominger)

    $ cp -i powerpc-rtems/c/ss555/lib/libcpu/powerpc/cpu_asm.o   powerpc-rtems/c/ss555/lib/libcpu/powerpc/new-exceptions/
    $ cp -i powerpc-rtems/c/ss555/lib/libcpu/powerpc/irq_asm.o     powerpc-rtems/c/ss555/lib/libcpu/powerpc/mpc5xx/irq/
    $ cp -i powerpc-rtems/c/ss555/lib/libcpu/powerpc/vectors.o      powerpc-rtems/c/ss555/lib/libcpu/powerpc/mpc5xx/vectors/

Something the quite broken on Powerpc BSPs.
Any idea how to fix this? 

----- Original Message ----
From: Robert S. Grimes <rsg at>
To: avy st <astrominger at>
Cc: RTEMS mailing list <rtems-users at>
Sent: Thursday, December 28, 2006 8:33:26 PM
Subject: Re: more problems building RTEMS powerpc on cygwin

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list