Hi everyone, This is an old and pretty moot point for LFS, but I thought I'd make a post about it anyway. A few months back, Greg Schafer pointed out that gcc-3.4.x PCH doesn't handle a kernel feature introduced in 2.6.12. Details can be found in this post http://linuxfromscratch.org/pipermail/lfs-dev/2005-July/052312.html. In gcc-4 this issue is resolved. Greg made another post about it here http://linuxfromscratch.org/pipermail/lfs-dev/2005-August/052546.html. This issue was justified with hemorraghing in the gcc testsuite.
Well, SVN has moved onto gcc-4, and 6.1 has kernel 2.6.11, so this isn't really relevant anymore. However, I have a sort of SVN system with gcc-3.4.4 and linux-2.6.13.4, so when I compile gcc I get a lot of test failures. This always bugged me, so I went to the gcc commit Greg pointed out and put together a patch for gcc-3.4.4. It works perfectly as far as the tests are concerned. pre-patch: Running /usr/src/build/gcc-3.4.4/gcc/testsuite/gcc.dg/pch/pch.exp ... FAIL: gcc.dg/pch/common-1.c -O3 -g (test for excess errors) FAIL: gcc.dg/pch/common-1.c -Os (test for excess errors) FAIL: gcc.dg/pch/cpp-1.c -O0 (test for excess errors) FAIL: gcc.dg/pch/cpp-1.c -O1 (test for excess errors) FAIL: gcc.dg/pch/cpp-1.c -O2 assembly comparison FAIL: gcc.dg/pch/cpp-2.c -O1 assembly comparison FAIL: gcc.dg/pch/cpp-2.c -O2 (test for excess errors) <snip many more pch errors> === gcc Summary === # of expected passes 25016 # of unexpected failures 46 # of expected failures 70 # of untested testcases 46 # of unsupported tests 208 post-patch: Running /usr/src/build/gcc-3.4.4/gcc/testsuite/gcc.dg/pch/pch.exp ... Running /usr/src/build/gcc-3.4.4/gcc/testsuite/gcc.dg/special/mips-abi.exp ... <snip> === gcc Summary === # of expected passes 25167 # of unexpected failures 1 # of expected failures 70 # of untested testcases 7 # of unsupported tests 208 (only the common va-arg-25.c -Os fails now) Oops, I forgot to re-test g++. Damn. Anyway, long story long, I'm attaching the patch if anyone's interesed. It's pretty big, so watch out. -- Dan
gcc-3.4.4-pch-1.patch.bz2
Description: BZip2 compressed data
-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page