This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


On Sun, Feb 17, 2013 at 2:21 AM, Alfred <skybill87@yahoo.it> 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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]