Building gcc: "decContext.c:38:43: error: string.h: No such file or directory"

Ian Lance Taylor iant@google.com
Mon Apr 20 19:14:00 GMT 2009


Timur Tabi <timur@freescale.com> writes:

> I'm building gcc 4.3.3 on a PowerPC Mac OS X 10.5 system, target is
> powerpc-linux.  The build fails with this error.  I don't understand
> how, after compiling hundreds of files, it suddenly can't find
> string.h and stdio.h.
>
> /Volumes/Goliath/Users/timur/dev/gcc-bin/./gcc/xgcc
> -B/Volumes/Goliath/Users/timur/dev/gcc-bin/./gcc/

The failure is occurring when the newly built gcc is being used to
compile gcc's support library.

Building a cross-compiler to a GNU/Linux system is tricky.  I recommend
looking at the scripts found via http://crosstool.org/ .

Ian



More information about the Gcc-help mailing list