Problem making GCC cross-compiler for MCORE processor.
LaPonsey Brian-ra4951
Brian.Laponsey@motorola.com
Wed Jul 17 06:46:00 GMT 2002
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20020717/fbdb2386/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build-xgcc-mcore.bash
Type: application/octet-stream
Size: 2899 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20020717/fbdb2386/attachment-0001.obj>
-------------- next part --------------
------
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