unrecognized option '-mcpu=r4600'
John Utz
Johnut01@noa.nintendo.com
Thu Jan 29 23:01:00 GMT 2004
Hello Jiang;
>>> "Xu, Jiang" <Jiang.Xu@echostar.com> 01/29/04 02:28PM >>>
>"-mCPU=r4600", NOT "-mcpu=r4600" that error is gone.
i dont think this was a help to you. -mcpu is a valid gcc option, -mCPU
is not.
>Results in Error:
>cc1: invalid option 'CPU=r4600'
the preprocessor is probably taking -m as the argument and then passing
along the remaining CPU=r4600
>Any ideas? I appreciate any help.
suggest going back to -mcpu=r4600. are you sure r4600 is a valid cpu?
try a more common cpu type first and make sure that works ok.
>Thanks
>
>John
-----Original Message-----
From: Xu, Jiang
Sent: Thursday, January 29, 2004 1:50 PM
To: 'crossgcc@sources.redhat.com'
Subject: unrecognized option '-mcpu=r4600'
Hi, All,
I am frustrated these days by a compiling error when I try to cross
compile
linux. Here are the data I used to compile the toolchain: crosstool
0.26
gcc-3.2.3 glibc-2.3.2 linux-2.4.18
I successfully compiled the toolchain, but when I try to use it to
cross
compile linux, the following error occurs:
.../.../as: unrecognized option '-mcpu=r4600'
I even tweaked the mips.config a little bit to support MIPS32=y, still
does
not work. I tried other options as well, no luck at all.
Here is the compile command that results in error:
/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
Any help is greatly appreciated.
Thanks
John
------
Want more information? See the CrossGCC FAQ,
http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to
crossgcc-unsubscribe@sources.redhat.com
------
Want more information? See the CrossGCC FAQ,
http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to
crossgcc-unsubscribe@sources.redhat.com
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list