yann@748: Patch pointed to by Ryan ARNOLD on the libc-help ML. yann@748: See: http://sourceware.org/ml/libc-help/2008-06/msg00063.html yann@748: yann@748: Forwarded to crosstool-NG by Ioannis E. VENETIS: yann@748: See: http://sourceware.org/ml/libc-help/2008-06/msg00063.html yann@748: yann@748: GCC 4.3 changed the location of some of the header files. I don't yann@748: understand why you'd be getting these errors while building GCC since yann@748: it provides them. yann@748: yann@748: With regard to GLIBC, Roland checked in some changes so that the GLIBC yann@748: build system could find the new locations of the GCC provided header yann@748: files. yann@748: yann@748: diff -durN glibc-2.6.orig/configure.in glibc-2.6/configure.in yann@748: --- glibc-2.6.orig/configure.in 2007-06-08 05:16:36.000000000 +0200 yann@748: +++ glibc-2.6/configure.in 2008-06-24 18:38:46.000000000 +0200 yann@748: @@ -911,8 +911,12 @@ yann@748: # header directory and add that to the list. NOTE: Only does the right yann@748: # thing on a system that doesn't need fixincludes. (Not presently a problem.) yann@748: if test -n "$sysheaders"; then yann@748: - ccheaders=`$CC -print-file-name=include` yann@748: - SYSINCLUDES="-nostdinc -isystem $ccheaders \ yann@748: + SYSINCLUDES=-nostdinc yann@748: + for d in include include-fixed; do yann@748: + i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" && yann@748: + SYSINCLUDES="$SYSINCLUDES -isystem $i" yann@748: + done yann@748: + SYSINCLUDES="$SYSINCLUDES \ yann@748: -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`" yann@748: if test -n "$CXX"; then yann@748: cxxversion=`$CXX -dumpversion 2>&AS_MESSAGE_LOG_FD` && yann@748: diff -durN glibc-2.6.orig/configure glibc-2.6/configure yann@748: --- glibc-2.6.orig/configure 2008-06-24 18:35:34.000000000 +0200 yann@748: +++ glibc-2.6/configure 2008-06-24 18:38:46.000000000 +0200 yann@748: @@ -4562,8 +4562,12 @@ yann@748: # header directory and add that to the list. NOTE: Only does the right yann@748: # thing on a system that doesn't need fixincludes. (Not presently a problem.) yann@748: if test -n "$sysheaders"; then yann@748: - ccheaders=`$CC -print-file-name=include` yann@748: - SYSINCLUDES="-nostdinc -isystem $ccheaders \ yann@748: + SYSINCLUDES=-nostdinc yann@748: + for d in include include-fixed; do yann@748: + i=`$CC -print-file-name="$d"` && test "x$i" != "x$d" && yann@748: + SYSINCLUDES="$SYSINCLUDES -isystem $i" yann@748: + done yann@748: + SYSINCLUDES="$SYSINCLUDES \ yann@748: -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`" yann@748: if test -n "$CXX"; then yann@748: cxxversion=`$CXX -dumpversion 2>&5` &&