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: Building m68k-coff-gcc throws 'stdlib.h: no such file'


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]