<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Hello all,</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"> </DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Bob, many thanks for the tip.  It did helped me out (though with a little different set of files).</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR>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):</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR>"gen405" BSP (Robert S. Grimes):</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">cpu_asm.o</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">    $ cp -i powerpc-rtems/c/gen405/lib/libcpu/powerpc/cpu_asm.o   powerpc-rtems/c/gen405/lib/libcpu/powerpc/old-exceptions/</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">vectors.o</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">    $ cp -i powerpc-rtems/c/gen405/lib/libcpu/powerpc/vectors.o      powerpc-rtems/c/gen405/lib/libcpu/powerpc/ppc403/vectors/<BR>align_h.o</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">    $ cp -i powerpc-rtems/c/gen405/lib/libcpu/powerpc/align_h.o      powerpc-rtems/c/gen405/lib/libcpu/powerpc/ppc403/vectors/<BR></DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">"psim" BSP (Avy Strominger):</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">cpu_asm.o</DIV>    $ cp -i powerpc-rtems/c/psim/lib/libcpu/powerpc/cpu_asm.o   powerpc-rtems/c/psim/lib/libcpu/powerpc/new-exceptions/
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">asm_utils.o</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">    $ cp -i powerpc-rtems/c/psim/lib/libcpu/powerpc/asm_utils.o   powerpc-rtems/c/psim/lib/libcpu/powerpc/mpc6xx/exceptions/</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">mmuAsm.o</DIV></DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">    $ cp -i powerpc-rtems/c/psim/lib/libcpu/powerpc/mmuAsm.o   powerpc-rtems/c/psim/lib/libcpu/powerpc/mpc6xx/mmu/</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"> </DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">"ss555" BSP (Avy Strominger)<BR>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">cpu_asm.o</DIV>    $ cp -i powerpc-rtems/c/ss555/lib/libcpu/powerpc/cpu_asm.o   powerpc-rtems/c/ss555/lib/libcpu/powerpc/new-exceptions/</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">irq_asm.o</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">    $ cp -i powerpc-rtems/c/ss555/lib/libcpu/powerpc/irq_asm.o     powerpc-rtems/c/ss555/lib/libcpu/powerpc/mpc5xx/irq/</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">vectors.o</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">    $ cp -i powerpc-rtems/c/ss555/lib/libcpu/powerpc/vectors.o      powerpc-rtems/c/ss555/lib/libcpu/powerpc/mpc5xx/vectors/<BR></DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Something the quite broken on Powerpc BSPs.</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Any idea how to fix this? </DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Thanks</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Avy</DIV></DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"> </DIV></DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"> </DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"> </DIV></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Robert S. Grimes <rsg@alum.mit.edu><BR>To: avy st <astrominger@yahoo.com><BR>Cc: RTEMS mailing list <rtems-users@rtems.org><BR>Sent: Thursday, December 28, 2006 8:33:26 PM<BR>Subject: Re: more problems building RTEMS 4.6.99.3 powerpc on cygwin<BR><BR>
<DIV>I have exactly the same problem, except my BSP is using the<BR>old-exceptions; just substitute "old" for "new", and same thing.  I<BR>thought it was peculiar to a set of patches I've been working with for a<BR>Virtex part, though, so I didn't mention it on the Wiki.  I spent some<BR>time looking for it, but wasn't able to find it.  I was hoping to<BR>resolve it eventually...<BR><BR>I have been working around it in the meantime.  What seems to be<BR>happening is the the cpu_asm.o file is indeed being built, but it is<BR>either built, or looked for, in the wrong location.  My error and<BR>workaround is here:<BR><BR>    if powerpc-rtems-gcc --pipe -B../../../../.././lib/<BR>    -B../../../../.././gen405/lib/ -specs bsp_specs -qrtems
 -DPACKAGE_NA<BR>    ME=\"rtems-c-src-lib-libcpu-powerpc\"<BR>    -DPACKAGE_TARNAME=\"rtems-c-src-lib-libcpu-powerpc\"<BR>    -DPACKAGE_VERSION=\"4.6.99.3\<BR>    " -DPACKAGE_STRING=\"rtems-c-src-lib-libcpu-powerpc\ 4.6.99.3\"<BR>    -DPACKAGE_BUGREPORT=\"rtems-bugs@rtems.com\" -I. -I../..<BR>    /../../../../../rtems-4.6.99.3/c/src/lib/libcpu/powerpc  -isystem<BR>    ../../../../.././gen405/lib/include -I../../../../../.<BR>    ./../rtems-4.6.99.3/c/src/lib/libcpu/powerpc/old-exceptions  -Wall<BR>    -mcpu=403 -D_OLD_EXCEPTIONS -Dppc405 -O4 -fno-keep-in<BR>    line-functions -g -MT<BR>    old-exceptions/old_exceptions_rtems_cpu_rel-cpu.o -MD -MP
 -MF<BR>    "old-exceptions/.deps/old_exceptions<BR>    _rtems_cpu_rel-cpu.Tpo" -c -o<BR>    old-exceptions/old_exceptions_rtems_cpu_rel-cpu.o `test -f<BR>    'old-exceptions/cpu.c' || echo<BR>    '../../../../../../../rtems-4.6.99.3/c/src/lib/libcpu/powerpc/'`old-exceptions/cpu.c;<BR>    \<BR>    then mv -f<BR>    "old-exceptions/.deps/old_exceptions_rtems_cpu_rel-cpu.Tpo"<BR>    "old-exceptions/.deps/old_exceptions_rtems_cpu_re<BR>    l-cpu.Po"; else rm -f<BR>    "old-exceptions/.deps/old_exceptions_rtems_cpu_rel-cpu.Tpo"; exit 1; fi<BR>    powerpc-rtems-gcc --pipe -B../../../../.././lib/<BR>    -B../../../../.././gen405/lib/ -specs bsp_specs -qrtems -isystem
 ../../<BR>    ../../.././gen405/lib/include  -DASM -mcpu=403 -D_OLD_EXCEPTIONS<BR>    -Dppc405 -O4 -fno-keep-inline-functions -g  -c ../../..<BR>    /../../../../rtems-4.6.99.3/c/src/lib/libcpu/powerpc/old-exceptions/cpu_asm.S<BR>    powerpc-rtems-gcc --pipe -B../../../../.././lib/<BR>    -B../../../../.././gen405/lib/ -specs bsp_specs -qrtems -Wall -mcpu=403<BR>     -D_OLD_EXCEPTIONS -Dppc405 -O4 -fno-keep-inline-functions -g   -o<BR>    old-exceptions/rtems-cpu.rel -qnolinkcmds -nostdlib -<BR>    Wl,-r old-exceptions/old_exceptions_rtems_cpu_rel-cpu.o<BR>    old-exceptions/cpu_asm.o<BR>    powerpc-rtems-gcc: old-exceptions/cpu_asm.o: No such file or directory<BR>    make[5]: *** [old-exceptions/rtems-cpu.rel] Error
 1<BR>    make[5]: Leaving directory<BR>    `/cygdrive/c/Home/ll/etill/rtems-4.6.99.3/tools/b-rtems/powerpc-rtems/c/gen405/lib/libcpu/pow<BR>    erpc'<BR><BR>    $ cp -i powerpc-rtems/c/gen405/lib/libcpu/powerpc/cpu_asm.o<BR>    powerpc-rtems/c/gen405/lib/libcpu/powerpc/old-exceptions/<BR>    $ make all<BR><BR>After this, I get two more similar errors,  and I assume it's the same<BR>situation, so I work around it the same way.<BR><BR>    powerpc-rtems-gcc --pipe -B../../../../.././lib/<BR>    -B../../../../.././gen405/lib/ -specs bsp_specs -qrtems -Wall -mcpu=403<BR>     -D_OLD_EXCEPTIONS -Dppc405 -O4 -fno-keep-inline-functions -g   -o<BR>    ppc403/vectors.rel -qnolinkcmds -nostdlib -Wl,-r ppc4<BR>    03/vectors/vectors.o
 ppc403/vectors/align_h.o<BR>    powerpc-rtems-gcc: ppc403/vectors/vectors.o: No such file or directory<BR>    powerpc-rtems-gcc: ppc403/vectors/align_h.o: No such file or directory<BR>    make[5]: *** [ppc403/vectors.rel] Error 1<BR>    make[5]: Leaving directory<BR>    `/cygdrive/c/Home/ll/etill/rtems-4.6.99.3/tools/b-rtems/powerpc-rtems/c/gen405/lib/libcpu/pow<BR>    erpc'<BR><BR><BR>    $ cp -i powerpc-rtems/c/gen405/lib/libcpu/powerpc/vectors.o<BR>    powerpc-rtems/c/gen405/lib/libcpu/powerpc/ppc403/vectors/<BR>    $ cp -i powerpc-rtems/c/gen405/lib/libcpu/powerpc/align_h.o<BR>    powerpc-rtems/c/gen405/lib/libcpu/powerpc/ppc403/vectors/<BR>    $ make all<BR><BR>This gets me done.  As you stated earlier, I too am "far from being an<BR>expert
 on the configure.ac and makefile.am stuff", so I'm not sure how<BR>to resolve it, but for now the workaround is good enough; after all, my<BR>real job is what I am developing with RTEMS...  :-P<BR><BR>That being said, I'm sure interested in fixing it properly!<BR>-Bob<BR><BR>avy st wrote:<BR>> Hello All,<BR>>  <BR>> I'm trying to build the RTEMS toolset and RTEMS 4.6.99.3 for powerpc,<BR>> hosted on cygwin, and supporting Ada.  I followed pretty much the<BR>> instructions given on<BR>> <A href="http://www.rtems.com/wiki/index.php/BuildingUnderCygwin" target=_blank>http://www.rtems.com/wiki/index.php/BuildingUnderCygwin</A> (with the<BR>> required modifications needed for Ada building), and got more problem<BR>> when building RTEMS itself which blows with the following message:<BR>><BR>>     make[5]: Entering directory<BR>>    
 `/cygdrive/d/BuildGccCygwin/powerpc-rtems-4.7-tools/rtems-4.6.99.3/powerpc-rtems/c/ss555/lib/libcpu/powerpc'<BR>>     if powerpc-rtems-gcc --pipe -B../../../../.././lib/<BR>>     -B../../../../.././ss555/lib/ -specs bsp_specs -qrtems<BR>>     -DPACKAGE_NAME=\"rtems-c-src-lib-libcpu-powerpc\"<BR>>     -DPACKAGE_TARNAME=\"rtems-c-src-lib-libcpu-powerpc\"<BR>>     -DPACKAGE_VERSION=\"4.6.99.3\"<BR>>     -DPACKAGE_STRING=\"rtems-c-src-lib-libcpu-powerpc\ 4.6.99.3\"<BR>>     -DPACKAGE_BUGREPORT=\"rtems-bugs@rtems.com\<BR>>     <mailto:rtems-bugs@rtems.com%5C>" -I.<BR>>     -I../../../../../../../../source/rtems-4.6.99.3/c/src/lib/libcpu/powerpc <BR>>     -isystem ../../../../.././ss555/lib/include  -Wall
 -mcpu=505<BR>>     -Dmpc555 -Dss555 -O4 -fno-keep-inline-functions -MT<BR>>     new-exceptions/new_exceptions_rtems_cpu_rel-cpu.o -MD -MP -MF<BR>>     "new-exceptions/.deps/new_exceptions_rtems_cpu_rel-cpu.Tpo" -c -o<BR>>     new-exceptions/new_exceptions_rtems_cpu_rel-cpu.o `test -f<BR>>     'new-exceptions/cpu.c' || echo<BR>>     '../../../../../../../../source/rtems-4.6.99.3/c/src/lib/libcpu/powerpc/'`new-exceptions/cpu.c;<BR>>     \<BR>>          then mv -f<BR>>     "new-exceptions/.deps/new_exceptions_rtems_cpu_rel-cpu.Tpo"<BR>>     "new-exceptions/.deps/new_exceptions_rtems_cpu_rel-cpu.Po"; else<BR>>     rm -f
 "new-exceptions/.deps/new_exceptions_rtems_cpu_rel-cpu.Tpo";<BR>>     exit 1; fi<BR>>     powerpc-rtems-gcc --pipe -B../../../../.././lib/<BR>>     -B../../../../.././ss555/lib/ -specs bsp_specs -qrtems -isystem<BR>>     ../../../../.././ss555/lib/include  -DASM -mcpu=505 -Dmpc555<BR>>     -Dss555 -O4 -fno-keep-inline-functions  -c<BR>>     ../../../../../../../../source/rtems-4.6.99.3/c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S<BR>>     powerpc-rtems-gcc --pipe -B../../../../.././lib/<BR>>     -B../../../../.././ss555/lib/ -specs bsp_specs -qrtems -Wall<BR>>     -mcpu=505 -Dmpc555 -Dss555 -O4 -fno-keep-inline-functions   -o<BR>>     new-exceptions/rtems-cpu.rel -qnolinkcmds -nostdlib
 -Wl,-r<BR>>     new-exceptions/new_exceptions_rtems_cpu_rel-cpu.o<BR>>     new-exceptions/cpu_asm.o <BR>>     powerpc-rtems-gcc: new-exceptions/cpu_asm.o: No such file or directory<BR>>     make[5]: *** [new-exceptions/rtems-cpu.rel] Error 1<BR>><BR>> Any Ideas?<BR>> Thanks everybody<BR>> Avy Strominger<BR>> astrominger@yahoo.com <mailto:astrominger@yahoo.com><BR>> mailto:astrominger@yahoo.com<BR>><BR>> ------------------------------------------------------------------------<BR>><BR>> _______________________________________________<BR>> rtems-users mailing list<BR>> rtems-users@rtems.com<BR>> <A href="http://rtems.rtems.org/mailman/listinfo/rtems-users" target=_blank>http://rtems.rtems.org/mailman/listinfo/rtems-users</A><BR>></DIV></DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR></DIV></div></body></html>