Building m68k-coff-gcc throws 'stdlib.h: no such file'
William A. Gatliff
bgat@billgatliff.com
Mon Dec 2 08:53:00 GMT 2002
Michael:
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.
See: http://billgatliff.com/twiki/bin/view/Crossgcc/WebHome
b.g.
--
Bill Gatliff
I'm an embedded GNU developer first, GNU instructor second.
http://billgatliff.com
------
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