This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

arm-uclibc-as: unrecognized option '-gdwarf-2'

Hi,

I am getting this above error, when I switched to MDK324.exe , also I tried to remove 'debug information' option from output tab, like suggested on this forum, but then I how I will get into the debugging mode.

I am using GNU compiler for comiling and debugging keil enviornment

thanks in advance
Vishal

  • "I tried to remove 'debug information' option from output tab, like suggested on this forum"

    Why did you do that?

    Why was it suggested? (provide a link to the post that suggested it!)

    "but then I how I will get into the debugging mode"

    It doesn't make any difference to getting in to debug mode - it just means that you will have no symbolic high-level source debug information when you get there!

  • Why was it suggested? (provide a link to the post that suggested it!)

    here is the link for the thread I mentioned about, it was for compiling issue with GNU

    http://www.keil.com/forum/docs/thread13204.asp

    It doesn't make any difference to getting in to debug mode - it just means that you will have no symbolic high-level source debug information when you get there!

    yes, I know, i wont have debug information, but I need tto get into debug option without getting the error "arm-uclibc-as: unrecognized option '-gdwarf-2'"

    So there any other solution i can tried to get rid of the above compilation error.

  • Depending on what GNU assembler you are using, the correct switch for generating dwarf2 debug information is either -gdwarf2 or -gdwarf-2.

    I believe that -gdwarf2 is the more correct one to be using. It seems to be supported by more recent builds of the GNU toolchain.

    It seems that -gdwarf2 is the preferred option in UV3 now as well.

    It is the option supported by the CodeSourcery GNU ARM toolchain which is also compatible with Keil uVision.

    Maybe use that toolchain instead?

    http://www.keil.com/appnotes/docs/apnt_199.asp

  • Thanks Patrick, it helped me in resolving the issue.