building LFS gcc compilation problem

Dan Nicholson dbn.lists at
Wed Jun 6 14:58:50 PDT 2007


On 6/6/07, mhenriquezs at <mhenriquezs at> wrote:
> #Gcc Make error (page 97 of the PDF LFS 6.2 book)
> In file included from ../../gcc-4.0.3/gcc/crtstuff.c:64:
> ../../gcc-4.0.3/gcc/tsystem.h:90:19: error: stdio.h: No such file or directory
> ../../gcc-4.0.3/gcc/tsystem.h:93:23: error: sys/types.h: No such file or
> directory

I know this has come up before, but I can't recall what the issue is
exactly. So, at that point, it should be finding those headers from
the Ch. 5 glibc in /tools/include. But it's not for some reason.

So, do those headers exist? You should definitely have
/tools/include/stdio.h. If so, let's find out where gcc is trying to
look. Here's a quick one-liner to make gcc be verbose about what it's

# echo | gcc -v -x c -

That should spit out some info including where the system header
search path is. Mine (using the final gcc) says:

#include <...> search starts here:
End of search list.

Yours should include /tools/include and /tools/lib/gcc-... What does
it say for you?


More information about the lfs-support mailing list