how to solve this question about comliting erro.

All design tool related questions: compiler, assembler, linker. Embedded programming questions: assembler, C code.

Moderator: nferre

eyy
Posts: 3
Joined: Tue Aug 24, 2010 5:50 am

how to solve this question about comliting erro.

Sun Nov 14, 2010 11:07 am

Dear all,
when I use the crosstools to complite the bootstrap,occur this error "cc1: error: bad value (arm926ej-s) for -mcpu= switch",why,kindly please help me.
Thanks all!
---------------------
easy@easy-desktop:~/armlab/bootstrap/board/at91sam9260ek/nandflash$ make
rm -f *.o *.bin *.elf *.map
arm-linux-gcc -g -mcpu=arm926ej-s -c -Os -Wall -DAT91SAM9260 -I./board/at91sam9260ek/nandflash -DTOP_OF_MEM=0x301000 crt0_gnu.S -o crt0_gnu.o
cc1: error: bad value (arm926ej-s) for -mcpu= switch
make: *** [crt0_gnu.o] Error 1
CptTitanic
Posts: 871
Joined: Sat Oct 30, 2010 6:04 pm

Re: how to solve this question about comliting erro.

Sun Nov 14, 2010 4:12 pm

Perhaps you are using the wrong version of the compiler/assembler, or your PATH is wrong.

Builds fine with arm-eabi-gcc 4.3.0, arm-eabi-as 2.18.50.20080313
eyy
Posts: 3
Joined: Tue Aug 24, 2010 5:50 am

Re: how to solve this question about comliting erro.

Mon Nov 15, 2010 3:50 am

Thanks , yes I use the wrong compliter, I use the arm-linux-gcc compler,Thanks

Return to “Development Tools”

Who is online

Users browsing this forum: No registered users and 1 guest