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'


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.

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


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