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: Help with Crosstool v2.4 MIPS


Paul Medlon wrote:
I am trying to use Crosstool v2.4

You mean crosstool 0.24


> to build cross
compiler for mips-linux, with the following combination:
- GCC 3.2.3
- GLIB 2.2.5
- Linux 2.4.21

The tools were built successfully, in folder /<crosstools>/result/mips-linux/.....
When trying to compile with option "-mcpu=r4300", it
shows me an error:


...../result/mips-linux/gcc-3.2.3-glibc-2.2.5/lib/gcc-lib/mips-linux/3.2.3/../../../../mips-linux/bin/as:
unrecognized option '-mcpu=r4300'

When files and makefile when compiled with downloaded
MIPS toolchain has no problem.

Look at the changelog for gas:


2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
        * doc/c-mips.texi: Remove -mcpu.  Document -mabi.

http://sources.redhat.com/ml/binutils/2002-07/msg00257.html
also says:
- -mcpu was deprecated in the last GCC and GAS releases.  This
  patch removes it.

http://sources.redhat.com/ml/binutils/2001-07/msg00010.html
is where -mcpu was deprecated as a commandline option to as.

So I guess you have two choices: either fix your sources to
use -mabi instead of -mcpu (I think; I'm no MIPS expert,
you might ask a MIPS linux mailing list),
or step back to a binutils from before July 2002.  Maybe
binutils-2.12.1.  What version is in your downloaded toolchain
(and where did you download it from)?
- Dan

--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045


------ 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]