During recent attempts at building lfs-development, I noticed large
numbers of test failures during the chapter 6 build of gcc. After
trying many possibilities, I've found that the problem is if the host
system is running linux kernel 2.6.12 or 2.6.12.1.
Procedure:
I booted up my host system (Debian-testing) under kernel 2.6.11.12 and
built LFS SVN-20050626 up through the chapter 6 compile of gcc. I
then ran the test sequence under various kernels.
While running kernel 2.6.11.12, there was only the usual test failure:
FAIL: gcc.c-torture/execute/va-arg-25.c execution, -Os
I then rebooted into kernel 2.6.12, chrooted back into the LFS build
area, and remounted /proc, /sys, /dev, /dev/pts, /dev/shm, and
repopulated /dev as per book section 6.8.2. Then I ran the test
sequence on the previously-built gcc, and there were massive failures:
FAIL: gcc.c-torture/execute/va-arg-25.c execution, -Os
FAIL: gcc.dg/pch/common-1.c -O0 assembly comparison
FAIL: gcc.dg/pch/common-1.c -Os assembly comparison
FAIL: gcc.dg/pch/cpp-1.c -O0 -g (test for excess errors)
FAIL: gcc.dg/pch/cpp-1.c -O2 (test for excess errors)
FAIL: gcc.dg/pch/cpp-1.c -O3 -fomit-frame-pointer assembly comparison
FAIL: gcc.dg/pch/cpp-1.c -Os (test for excess errors)
FAIL: gcc.dg/pch/cpp-2.c -O3 -fomit-frame-pointer (test for excess errors)
FAIL: gcc.dg/pch/decl-1.c -O2 (test for excess errors)
FAIL: gcc.dg/pch/decl-1.c -O3 -g (test for excess errors)
FAIL: gcc.dg/pch/decl-1.c -Os (test for excess errors)
FAIL: gcc.dg/pch/decl-3.c -Os assembly comparison
FAIL: gcc.dg/pch/decl-4.c -O0 -g (test for excess errors)
FAIL: gcc.dg/pch/decl-4.c -O1 (test for excess errors)
FAIL: gcc.dg/pch/decl-5.c -O0 -g assembly comparison
FAIL: gcc.dg/pch/decl-5.c -O1 assembly comparison
FAIL: gcc.dg/pch/empty.c -O1 (test for excess errors)
FAIL: gcc.dg/pch/empty.c -O3 -g assembly comparison
FAIL: gcc.dg/pch/except-1.c -O1 (test for excess errors)
FAIL: gcc.dg/pch/global-1.c -Os (test for excess errors)
FAIL: gcc.dg/pch/inline-1.c -O0 -g (test for excess errors)
FAIL: gcc.dg/pch/inline-1.c -O0 (test for excess errors)
FAIL: gcc.dg/pch/inline-1.c -O1 (test for excess errors)
FAIL: gcc.dg/pch/inline-1.c -O3 -g (test for excess errors)
FAIL: gcc.dg/pch/inline-1.c -Os (test for excess errors)
FAIL: gcc.dg/pch/inline-2.c -O0 -g (test for excess errors)
FAIL: gcc.dg/pch/inline-2.c -O0 (test for excess errors)
FAIL: gcc.dg/pch/inline-2.c -O3 -g assembly comparison
FAIL: gcc.dg/pch/inline-2.c -Os (test for excess errors)
FAIL: gcc.dg/pch/inline-3.c -O0 (test for excess errors)
FAIL: gcc.dg/pch/inline-3.c -O2 (test for excess errors)
FAIL: gcc.dg/pch/inline-3.c -O3 -fomit-frame-pointer (test for excess errors)
FAIL: gcc.dg/pch/inline-4.c -O1 (test for excess errors)
FAIL: gcc.dg/pch/inline-4.c -O3 -fomit-frame-pointer (test for excess errors)
FAIL: gcc.dg/pch/macro-1.c -O3 -g (test for excess errors)
FAIL: gcc.dg/pch/macro-2.c -O0 assembly comparison
FAIL: gcc.dg/pch/macro-2.c -O1 assembly comparison
FAIL: gcc.dg/pch/macro-2.c -O2 (test for excess errors)
FAIL: gcc.dg/pch/macro-3.c -O1 (test for excess errors)
FAIL: gcc.dg/pch/macro-3.c -O2 (test for excess errors)
FAIL: gcc.dg/pch/macro-3.c -O3 -fomit-frame-pointer (test for excess errors)
FAIL: gcc.dg/pch/macro-3.c -O3 -g (test for excess errors)
FAIL: gcc.dg/pch/static-1.c -O2 (test for excess errors)
FAIL: gcc.dg/pch/static-1.c -O3 -fomit-frame-pointer (test for excess errors)
FAIL: gcc.dg/pch/static-2.c -O1 (test for excess errors)
FAIL: gcc.dg/pch/static-2.c -O3 -fomit-frame-pointer assembly comparison
FAIL: gcc.dg/pch/static-2.c -O3 -g (test for excess errors)
FAIL: gcc.dg/pch/static-2.c -Os (test for excess errors)
FAIL: gcc.dg/pch/static-3.c -O2 (test for excess errors)
FAIL: gcc.dg/pch/static-3.c -O3 -fomit-frame-pointer (test for excess errors)
I repeated this a couple times to be sure. The same thing happens
with the just-released kernel 2.6.12.1.
I have no idea what to make of this other than to be suspicious of
kernel 2.6.12{.1}.
--
"Life's not fair, but the root password helps." -- BOFH
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page