[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging RTEMS APP



sunpeng@mail.ustc.edu.cn wrote:
Hi,all
   When I try "make debug" in the example "Hello_World_C",here are the error
messages:

make -f Makefile MAKEFILE=Makefile VARIANT=DEBUG
make[1]: Entering directory
`/home/sunshine/RTEMS/source/RTEMS-4.6.99.2/examples-4.6.99.2/hello_world_c'
test -d o-debug || mkdir o-debug
sparc-rtems-gcc --pipe -B/opt/rtems-4.6/sparc-rtems/leon2/lib/ -specs bsp_specs
-qrtems -qrtems_debug -g -Wall -Wno-unused -qrtems_debug -mcpu=cypress
-msoft-float -c -o o-debug/test.o test.c
sparc-rtems-gcc --pipe -B/opt/rtems-4.6/sparc-rtems/leon2/lib/ -specs bsp_specs
-qrtems -qrtems_debug -g -Wall -Wno-unused -qrtems_debug -mcpu=cypress
-msoft-float -o o-debug/hello.exe o-debug/test.o /opt/rtems-4.6/sparc-rtems/leon2/lib/no-dpmem_g.rel
/opt/rtems-4.6/sparc-rtems/leon2/lib/no-event_g.rel
/opt/rtems-4.6/sparc-rtems/leon2/lib/no-msg_g.rel
/opt/rtems-4.6/sparc-rtems/leon2/lib/no-mp_g.rel
/opt/rtems-4.6/sparc-rtems/leon2/lib/no-part_g.rel
/opt/rtems-4.6/sparc-rtems/leon2/lib/no-signal_g.rel
/opt/rtems-4.6/sparc-rtems/leon2/lib/no-timer_g.rel
/opt/rtems-4.6/sparc-rtems/leon2/lib/no-rtmon_g.rel
sparc-rtems-gcc: /opt/rtems-4.6/sparc-rtems/leon2/lib/no-dpmem_g.rel: No such file
or directory
sparc-rtems-gcc: /opt/rtems-4.6/sparc-rtems/leon2/lib/no-event_g.rel: No such file
or directory
sparc-rtems-gcc: /opt/rtems-4.6/sparc-rtems/leon2/lib/no-msg_g.rel: No such file
or directory
sparc-rtems-gcc: /opt/rtems-4.6/sparc-rtems/leon2/lib/no-mp_g.rel: No such file or
directory
sparc-rtems-gcc: /opt/rtems-4.6/sparc-rtems/leon2/lib/no-part_g.rel: No such file
or directory
sparc-rtems-gcc: /opt/rtems-4.6/sparc-rtems/leon2/lib/no-signal_g.rel: No such
file or directory
sparc-rtems-gcc: /opt/rtems-4.6/sparc-rtems/leon2/lib/no-timer_g.rel: No such file
or directory
sparc-rtems-gcc: /opt/rtems-4.6/sparc-rtems/leon2/lib/no-rtmon_g.rel: No such file
or directory
make[1]: *** [o-debug/hello.exe] Error 1
make[1]: Leaving directory
`/home/sunshine/RTEMS/source/RTEMS-4.6.99.2/examples-4.6.99.2/hello_world_c'
make: *** [debug] Error 2


where can I find the files "no-dpmem_g.rel no-event_g.rel "etc. ?

The no-*_g.rel files are the debug binaries for rtems itself. You're trying to build a debug version of the hello_world_c program without the rtems debug binaries. You need to build the debug version of rtems with 'make RTEMS_BSP=leon2 VARIANT=debug'.


Cheers,

Keith