cross compiler sparc m68k

Wolfgang Fritz
Fri Feb 8 23:27:00 GMT 2002

Delarue Christophe schrieb:
> I am trying to compile gcc for an 68302 embedded environment I follow the
>, the setting for unix system (my

I found this FAQ outdated and more confusing than helpful. Try this

and look at the FAQ there.  You will also find working build scripts

I've built the m68k-coff target on linux and I'm using it for a 68LC302
core which sits on many of my companies boards.

My present toolchain is:

binutils 2.10.1

Do not use newer binutils with gcc-2.95.3. There are problems at least
for the m68000 target, which has to be used for 68302 processors.

The scripts from Bill Gatliff work out of the box for a C only compiler
but need some tweaks for a C++ compiler. I have them in the company so
you may contact me next week if you run into problems.


> host is a sparc-sun-solaris2.6)
> I've built and installed the binutils successfully
> Then it becomes harder
> I configure gcc with
> target=m68k-coff
> prefix=/home/export/usr/local/GCC
> cd build-gcc
> ../gcc-2.95.3/configure --prefix=$prefix --target=$target -v --enable-languages=c,c++ --disable-shared --disable-threads --disable-nls --with-newlib --with-headers=../newlib-1.8.2
> make
> My problems comes with the libiberty compilation, it tries to include stdio.h,
> sys/types.h errno.h and some file like that. In the cross faq, I understand
> that if we don't have the target standard includes, newlib will furnish those.
> I looked in mailing list and didn't find anything.
> I've got autogen 4.1:
> AutoGen - The Automated Program Generator - Ver. 4.5.14
> USAGE:  autogen [-<flag> [<val>]]... [--<name>[{=| }<val>]]... [ <def-file> ]
> Thousand of thank's for any help.
> --
> Christophe DELARUE        E-Generis
> Tel.: (+33) 299 842052    Fax.: (+33) 299 639331
> 13, sq. du Chene Germain / 35510 Cesson-Sevigne / France
> ------
> Want more information?  See the CrossGCC FAQ,
> Want to unsubscribe? Send a note to

Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list