This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

Re: help needed: gcc 3.0 mips cross compilor problem


Hi Jason,

>I downloaded binutils-2.11.2.tar.zip and gcc-3.0.tar.zip and am
>trying to build a cross compilor for my mips embedded target.
>The building of binutils-2.11.2 was successful.  However, when I
>build gcc 3.0 cross compilor, it failed.  The configure command is:
>
>../build-gcc/configure --target=mips --host=i686-pc-cygwin
>--enable-languages=c,c++ -v

In my experience, it is not necessary to specify the host= parameter for 
binutils or gcc under cygwin. Try again, and this time configure both 
binutils and gcc as:

--target=mips --prefix=/tools/mipstools

(and in gcc, --enable-languages="C C++")

Also remember that after building binutils BEFORE building gcc, you must 
add it to your PATH:

PATH=/tools/mipstools/bin:$PATH ; export PATH

Finally, if you are using anything earlier than the VERY LATEST version of 
cygwin, you should upgrade before trying to compile gcc 3.0.


-- Lewin A.R.W. Edwards
Embedded Engineer, Digi-Frame Inc.
Work: http://www.digi-frame.com/
Tel (914) 937-4090 9am-6:30pm M-F ET
Personal: http://www.larwe.com/ http://www.zws.com/

"Far better it is to dare mighty things, to win glorious triumphs, even 
though checkered by failure, than to rank with those poor spirits who 
neither enjoy much nor suffer much, because they live in the gray twilight 
that knows not victory nor defeat."
(Theodore Roosevelt)



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