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: Problem making GCC cross-compiler for MCORE processor.


Title: RE: Problem making GCC cross-compiler for MCORE processor.

Sandi,

This is the first time I have heard of the source code for MTC4.6
being released.  The MCore Tech Center must have dug it out of a
closet and put it on the web.  Until recently, only the binaries
were up there.

I can't help you build MTCgnu4.6, but I can help if you want to
build mcore-elf tools from the latest releases of GCC, binutils,
newlib and gdb.

You'll have to get these source distributions from a GNU mirror
and put them in a tree as shown underneath your home directory:

~/src/gcc       <-  gcc-core-3.1.tar.bz2
~/src/binutils  <-  binutils-2.12.1.tar.bz2
~/src/newlib    <-  newlib-1.10.0.tar.gz
~/src/gdb       <-  gdb-5.2.tar.bz2

Once there, you have to extract them yourself.

$ tar xjvf gcc-core-3.1.tar.bz2
... etc
$ tar xzvf newlib-1.10.0.tar.gz

Here is the script I use to build the compiler tools.  It works on
both Cygwin and Linux (Mandrake 8.2) for me, but your mileage may
vary.  If you are also going to build gdb, that source code has to
be slightly patched first.  Let me know if you are interested.

Cheers,
Brian LaPonsey

> -----Original Message-----
> From: Sandi Posl [mailto:sandiposl@netscape.net]
> Sent: 17 July 2002 10:04
> To: crossgcc@sources.redhat.com
> Subject: Problem making GCC cross-compiler for MCORE processor.
>
>
> Hello,
>
> I am trying to compile the GNU tools for the Motorola MCORE
> processor on
> a linux pc (Redhat 7.3).
> I have downloaded the latest version of the GNU tools from their web
> site,  MTCgnu4_6_src.
> I have successfully compiled the binutils
> (binutils-2.9.1-M.CORE), but I
> can't compile the GCC tools.
> The following is the error when I make the GCC tools:
>
> gcc -c -DCROSS_COMPILE -DIN_GCC    -g -O2  -DHAVE_CONFIG_H     -I.
> -I../../gcc -I../../gcc/config ../../gcc/config/mcore/mcore.c
> ../../gcc/config/mcore/mcore.c:1999: redefinition of `struct option'
> make[1]: *** [mcore.o] Error 1
> make[1]: Leaving directory
> `/home/sandip/my_stuff/mcore/tools/GNU_tools/egcs-1.1.1-M.CORE
> /build_gcc/gcc'
> make: *** [all-gcc] Error 2
>
>
> Now, I don't have any experience building cross-compilers, or
> anything
> actually..... so I don't have a clue as to the source of this error...
>
> Does anyone have any suggestions?
>
> Thanks
>
> Sandi Posl
>
>
> ------
> Want more information?  See the CrossGCC FAQ,
http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com

 

Attachment: build-xgcc-mcore.bash
Description: Binary data

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