Re: main.c:1: error: target CPU does not support ARM mode

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

 



On Sun, Feb 17, 2013 at 2:21 AM, Alfred <skybill87@xxxxxxxx> wrote:
>
> I'm using a Virtual Machine (VMare Player), in which I run TW WinXp.
> In this environment I work with Eclipse.
> When I press on the button "Build", here is the message I get:
>
>
> **** Build of configuration Debug for project Carbone_A1 ****
>
> cs-make all
> 'Building file: ../main.c'
> 'Invoking: ARM Sourcery Windows GCC C Compiler'
> arm-none-eabi-gcc -I"C:\workspace\Carbone_A1\Libraries"
> -I"C:\workspace\Carbone_A1\Libraries\inc"
> -I"C:\workspace\Carbone_A1\Libraries\src" -O0 -pedantic -Wall -fsigned-char -c
> -fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.d" -mcpu=cortex-m3 -g3
> -gdwarf-2 -o"main.o" "../main.c"
> ../main.c:1: error: target CPU does not support ARM mode
> cs-make: *** [main.o] Error 1
>
> I don't really know from where this error comes out.
> I'd like to kindly ask if
> you could help me solving this issue.

The error does come from GCC.  It presumably has something to do with
the -mcpu=cortex-m3 option.  I don't see how it could happen with
mainline GCC.  It looks like you are using a CodeSourcery toolchain;
you may want to ask them for support.  Perhaps that toolchain does not
have cortex-m3 support.

By the way, I assume that you intend to compile for the ARM processor;
you didn't really say.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux