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'

Hello,

I'm using Keil uvision V3.62c and I tried to use the GNU V3.22 with uclib to compile the Blinky example.
As assembling Startup.s I have the folowing message:
arm-uclibc-as: unrecognized option '-gdwarf-2'

The right option should be '--gdwarf2' but I don't know how changing the 'Compiler control string'

Parents
  • here is my compiler control string, using the same (I think) tool chain:

    -c -mcpu=arm7tdmi -gdwarf-2 -MD -Wall -O -mapcs-frame -mthumb-interwork -Id:\Keil\ARM\INC\ST\91x\ -o *.o
    

    So it looks like a typo. Either way, you can always build your software using a makefile. You can also try to directly change your project's .htp file.

Reply
  • here is my compiler control string, using the same (I think) tool chain:

    -c -mcpu=arm7tdmi -gdwarf-2 -MD -Wall -O -mapcs-frame -mthumb-interwork -Id:\Keil\ARM\INC\ST\91x\ -o *.o
    

    So it looks like a typo. Either way, you can always build your software using a makefile. You can also try to directly change your project's .htp file.

Children