Building m68k-coff-gcc throws 'stdlib.h: no such file'

William A. Gatliff
Mon Dec 2 08:53:00 GMT 2002


On Mon, Dec 02, 2002 at 05:42:10PM +0100, Michael Svetlik wrote:
> Hi, folks.
> It's a strange thing: xgcc can't find stdlib.h and unistd.h, when doing 
> a make.
> It tries to build the libgcc (m68k-coff-ar rc tmplibgcc2.a ${name}.o;)
> gcc 2.95.3 has been configured with
> '--target=m68k-coff --program-prefix=m68k-coff- --enable-languages=c 
> --host=i686-pc-linux-gnu', like the binutils were, before.
> Building another cross-compiler - h8300hms - from the same sources, works.
> BTW, xgcc wants to include files from /usr/local/m68k-coff/include, 
> which does not exist.
> Any hints would be welcome ...

Sounds like the h8300's libgcc doesn't need header files, but m68k's does.

You need to build a bootstrap compiler first, then build header files
for the target, then build the full cross compiler.


Bill Gatliff
I'm an embedded GNU developer first, GNU instructor second.

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

More information about the crossgcc mailing list