network-demos/netdemo runtime error & debug build error: no rule to make target `librtemsbsp_g.a'
Morgan, Keith S
morgank at lanl.gov
Thu Jun 6 14:00:32 UTC 2019
> -----Original Message-----
> From: Joel Sherrill
> Sent: Friday, May 31, 2019 3:40 PM
> To: Morgan, Keith S
> Cc: Jeff Mayes
>
> The profile and debug options of the old external user Makefile system
> don't work. You can't build RTEMS libraries with debug (e.g. _g) or
> profiling (_p) variants.
>
> An _g library would just mean the debug information is included and by
> default every file is built with -g. It is in each BSP's .cfg file for
> compiler flags. So "debug" doesn't make sense anymore.
>
> When you build RTEMS, you can --enable-rtems-debug which turns on some
> internal consistency checks in RTEMS but that's usually not helpful unless
> you are debugging RTEMS or something really bizarre happening.
>
> FWIW my favorite newly learned gcc option is "-Og" which enables all
> optimizations which do not negatively impact debugging. It really improves
> the situation where stepping through code jumps around. I have been locally
> changing -O2 to -Og when debugging things.
>
> --joel
More information about the users
mailing list