more problems building RTEMS 4.6.99.3 powerpc on cygwin

avy st astrominger at yahoo.com
Fri Dec 29 04:04:58 CST 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):
cpu_asm.o
    $ cp -i powerpc-rtems/c/gen405/lib/libcpu/powerpc/cpu_asm.o   powerpc-rtems/c/gen405/lib/libcpu/powerpc/old-exceptions/
vectors.o
    $ cp -i powerpc-rtems/c/gen405/lib/libcpu/powerpc/vectors.o      powerpc-rtems/c/gen405/lib/libcpu/powerpc/ppc403/vectors/
align_h.o
    $ 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):
cpu_asm.o
    $ cp -i powerpc-rtems/c/psim/lib/libcpu/powerpc/cpu_asm.o   powerpc-rtems/c/psim/lib/libcpu/powerpc/new-exceptions/
asm_utils.o
    $ cp -i powerpc-rtems/c/psim/lib/libcpu/powerpc/asm_utils.o   powerpc-rtems/c/psim/lib/libcpu/powerpc/mpc6xx/exceptions/
mmuAsm.o
    $ cp -i powerpc-rtems/c/psim/lib/libcpu/powerpc/mmuAsm.o   powerpc-rtems/c/psim/lib/libcpu/powerpc/mpc6xx/mmu/

"ss555" BSP (Avy Strominger)

cpu_asm.o
    $ cp -i powerpc-rtems/c/ss555/lib/libcpu/powerpc/cpu_asm.o   powerpc-rtems/c/ss555/lib/libcpu/powerpc/new-exceptions/
irq_asm.o
    $ cp -i powerpc-rtems/c/ss555/lib/libcpu/powerpc/irq_asm.o     powerpc-rtems/c/ss555/lib/libcpu/powerpc/mpc5xx/irq/
vectors.o
    $ 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? 
Thanks
Avy
 


----- Original Message ----
From: Robert S. Grimes <rsg at alum.mit.edu>
To: avy st <astrominger at yahoo.com>
Cc: RTEMS mailing list <rtems-users at rtems.org>
Sent: Thursday, December 28, 2006 8:33:26 PM
Subject: Re: more problems building RTEMS 4.6.99.3 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
    ME=\"rtems-c-src-lib-libcpu-powerpc\"
    -DPACKAGE_TARNAME=\"rtems-c-src-lib-libcpu-powerpc\"
    -DPACKAGE_VERSION=\"4.6.99.3\
    " -DPACKAGE_STRING=\"rtems-c-src-lib-libcpu-powerpc\ 4.6.99.3\"
    -DPACKAGE_BUGREPORT=\"rtems-bugs at rtems.com\" -I. -I../..
    /../../../../../rtems-4.6.99.3/c/src/lib/libcpu/powerpc  -isystem
    ../../../../.././gen405/lib/include -I../../../../../.
    ./../rtems-4.6.99.3/c/src/lib/libcpu/powerpc/old-exceptions  -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
    "old-exceptions/.deps/old_exceptions
    _rtems_cpu_rel-cpu.Tpo" -c -o
    old-exceptions/old_exceptions_rtems_cpu_rel-cpu.o `test -f
    'old-exceptions/cpu.c' || echo
    '../../../../../../../rtems-4.6.99.3/c/src/lib/libcpu/powerpc/'`old-exceptions/cpu.c;
    \
    then mv -f
    "old-exceptions/.deps/old_exceptions_rtems_cpu_rel-cpu.Tpo"
    "old-exceptions/.deps/old_exceptions_rtems_cpu_re
    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 ../../..
    /../../../../rtems-4.6.99.3/c/src/lib/libcpu/powerpc/old-exceptions/cpu_asm.S
    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
    old-exceptions/cpu_asm.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
    `/cygdrive/c/Home/ll/etill/rtems-4.6.99.3/tools/b-rtems/powerpc-rtems/c/gen405/lib/libcpu/pow
    erpc'

    $ cp -i powerpc-rtems/c/gen405/lib/libcpu/powerpc/cpu_asm.o
    powerpc-rtems/c/gen405/lib/libcpu/powerpc/old-exceptions/
    $ 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
    `/cygdrive/c/Home/ll/etill/rtems-4.6.99.3/tools/b-rtems/powerpc-rtems/c/gen405/lib/libcpu/pow
    erpc'


    $ 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/
    $ make all

This gets me done.  As you stated earlier, I too am "far from being an
expert on the configure.ac and makefile.am 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!
-Bob

avy st wrote:
> Hello All,
>  
> I'm trying to build the RTEMS toolset and RTEMS 4.6.99.3 for powerpc,
> hosted on cygwin, and supporting Ada.  I followed pretty much the
> instructions given on
> http://www.rtems.com/wiki/index.php/BuildingUnderCygwin (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-4.6.99.3/powerpc-rtems/c/ss555/lib/libcpu/powerpc'
>     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_VERSION=\"4.6.99.3\"
>     -DPACKAGE_STRING=\"rtems-c-src-lib-libcpu-powerpc\ 4.6.99.3\"
>     -DPACKAGE_BUGREPORT=\"rtems-bugs at rtems.com\
>     <mailto:rtems-bugs at rtems.com%5C>" -I.
>     -I../../../../../../../../source/rtems-4.6.99.3/c/src/lib/libcpu/powerpc 
>     -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-4.6.99.3/c/src/lib/libcpu/powerpc/'`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-4.6.99.3/c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S
>     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 yahoo.com <mailto:astrominger at yahoo.com>
> mailto:astrominger at yahoo.com
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rtems.org/pipermail/rtems-users/attachments/20061229/33703d85/attachment.html>


More information about the rtems-users mailing list