LFS Version SVN-20060501 - GCC-4.0.3 - compilation fails

Dan Nicholson dbn.lists at gmail.com
Tue May 16 13:57:24 PDT 2006

On 5/16/06, Mag. Leonhard Landrock <1977-Hamlet at gmx.at> wrote:
> echo | /sources/gcc-build/gcc/cc1 -v
> ignoring nonexistent directory "/usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include"
> ignoring nonexistent directory "/usr/lib/../i686-pc-linux-gnu/include"
> #include "..." search starts here:
> #include <...> search starts here:
>  /usr/local/include
> End of search list.

This seems to be the problem.  I'm not the gcc expert, but
/usr/include should be there after /usr/local/include.  I'm looking at
the source at cppdefault.c, and it looks like the only way
/usr/include wouldn't be included is if the build thought you were
creating a cross compiler.  But then I don't think you would have
/usr/local/include in the path either.

This might be a dead end I'm leading you down, but could you find the
part in the build log where cppdefault.o is compiled?  It should be
pretty long and pass a bunch of -D preprocessor directives.  You can
search for '-o cppdefault.o' and look above it.  Mine looks like this
from a successful build (wrapping might screw this up really bad):

gcc   -g -O2  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros
-Wold-style-definition -fomit-frame-pointer -DHAVE_CONFIG_H -I. -I.
-I../../gcc-4.0.3/gcc -I../../gcc-4.0.3/gcc/.
-I../../gcc-4.0.3/gcc/../libcpp/include     \
/usr | sed -e 's|^/usr||' -e 's|/[^/]*|/..|g'`/include/c++/4.0.3\"
/usr | sed -e 's|^/usr||' -e
/usr | sed -e 's|^/usr||' -e
  -c ../../gcc-4.0.3/gcc/cppdefault.c -o cppdefault.o


More information about the lfs-support mailing list