This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: unrecognized option '-mcpu=r4600'


Xu, Jiang wrote:
Hi, All,

Well, I made a little progress.  After I changed the option to be
"-mCPU=r4600", NOT "-mcpu=r4600" that error is gone.  However, a new error
occurs!
same compile command:

/opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.3.2/bin/mipsel-unk
nown-linux-gnu-gcc -D__KERNEL__ -I/home/build/test/linux/include  -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -g
-fomit-frame-pointer -I /home/build/test/linux/include/asm/gcc -G 0
-mno-abicalls -fno-pic -pipe -mCPU=r4600 -mips2 -Wa,--trap
-DKBUILD_BASENAME=main -c -o init/main.o init/main.c

Results in Error:
cc1: invalid option 'CPU=r4600'

Any ideas? I appreciate any help.


Huh? you don't know what you're doing, do you? if you read the gcc manual you'll find that "-mcpu=" is the correct flag, NOT "-mCPU" or "-mWHATEVER" and the error message above clearly tells you that, i.e. INVALID OPTION If you don't know the basics like this, probably you shouldn't attemp to cross compile Linux kernel without the sound knowledge.


Here is a good start http://gcc.gnu.org/onlinedocs/ have a good read, also search the net on how to cross compile Linux kernel etc, there is a lot of information out there.


------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]