Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: how to solve this question about comliting erro.
PostPosted: Sun Nov 14, 2010 11:07 am 
Offline

Joined: Tue Aug 24, 2010 5:50 am
Posts: 3
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


Top
 Profile  
 
 Post subject: Re: how to solve this question about comliting erro.
PostPosted: Sun Nov 14, 2010 4:12 pm 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 574
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


Top
 Profile  
 
 Post subject: Re: how to solve this question about comliting erro.
PostPosted: Mon Nov 15, 2010 3:50 am 
Offline

Joined: Tue Aug 24, 2010 5:50 am
Posts: 3
Thanks , yes I use the wrong compliter, I use the arm-linux-gcc compler,Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: