lothar
2018-09-24 21:34:43 UTC
hello,
i am in lfs 8.2 book 6.2.20, gcc, where i encountered the trouble that the test runner hung.
i killed the test runner.
in xb/gcc/testsuite/gcc/gcc.log, there were 127959 PASS, 0 FAIL, 366 XFAIL records.
i believe the test runner was in a loop.
i left my session and came back hours later and wanted to resume my chroot session and retry the build.
i gave the commands shown below from lfs 8.2 book 6.2.2, 6.2.3, 6.2.4 to resume the chroot session.
i made a fresh copy of gcc-7.3.0 sources, and did the config and make from lfs 8.2 book 6.2.20.
when i ran the test suite, every test failed.
in xb/gcc/testsuite/gcc/gcc.log, it looks like every FAIL case has the 3 lines
FAIL: # text with test case name
Excess errors:
spawn failed
my question is, how can i quit my chroot session and resume it later so that the builds work properly.
the commands i gave to resume the chroot session are shown here:
[***@localhost lfs82]# uname -a
Linux localhost.localdomain 4.16.3-301.fc28.x86_64 #1 SMP Mon Apr 23 21:59:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
# lfs 8.2 book 6.2.2:
[***@localhost lfs82]# mount -v --bind /dev $LFS/dev
# lfs 8.2 book 6.2.3:
[***@localhost lfs82]# mount -vt devpts devpts $LFS/dev/pts -o gid=5,mode=620
[***@localhost lfs82]# mount -vt proc proc $LFS/proc
[***@localhost lfs82]# mount -vt sysfs sysfs $LFS/sys
[***@localhost lfs82]# mount -vt tmpfs tmpfs $LFS/run
# lfs 8.2 book 6.2.4:
[***@localhost lfs82]# chroot "$LFS" /tools/bin/env -i \
HOME=/root \
TERM="$TERM" \
PS1='(lfs chroot) \u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
/tools/bin/bash --login +h
# lfs 8.2 book 6.2.6:
(lfs chroot) root:/# exec /tools/bin/bash --login +h
# lfs 8.2 book 6.2.20:
(lfs chroot) root:/# cd xh/gcc-7.3.0
(lfs chroot) root:/xh/gcc-7.3.0/# case $(uname -m) in
x86_64)
sed -e '/m64=/s/lib64/lib/' \
-i.orig gcc/config/i386/t-linux64
;;
esac
# rm -f /usr/lib/gcc # omitted, done previously
(lfs chroot) root:/xh/gcc-7.3.0/# mkdir -v xb
(lfs chroot) root:/xh/gcc-7.3.0/# cd xb
(lfs chroot) root:/xh/gcc-7.3.0/xb# SED=sed \
(lfs chroot) root:/xh/gcc-7.3.0/xb# ../configure --prefix=/usr \
--enable-languages=c,c++ \
--disable-multilib \
--disable-bootstrap \
--with-system-zlib
(lfs chroot) root:/xh/gcc-7.3.0/xb# make
(lfs chroot) root:/xh/gcc-7.3.0/xb# make -k check
# ... several thousand lines, ending with
make: *** [Makefile:2243: do-check] Error 2
make: Target 'check' not remade because of errors.
(lfs chroot) root:/xh/gcc-7.3.0# alias wl='wc -lc'
(lfs chroot) root:/xh/gcc-7.3.0# alias gr='grep -n -e'
(lfs chroot) root:/xh/gcc-7.3.0# cat xb/gcc/testsuite/gcc/gcc.log | wl
281972 26806432 xb/gcc/testsuite/gcc/gcc.log
(lfs chroot) root:/xh/gcc-7.3.0# gr "^FAIL" xb/gcc/testsuite/gcc/gcc.log | wl
56354 4358489
(lfs chroot) root:/xh/gcc-7.3.0# gr "^spawn failed" xb/gcc/testsuite/gcc/gcc.log | wl
34842 679850
(lfs chroot) root:/xh/gcc-7.3.0# grep -A 2 "^FAIL" xb/gcc/testsuite/gcc/gcc.log | head -22
FAIL: gcc.c-torture/compile/20000105-1.c -O0 (test for excess errors)
Excess errors:
spawn failed
--
FAIL: gcc.c-torture/compile/20000105-1.c -O1 (test for excess errors)
Excess errors:
spawn failed
--
FAIL: gcc.c-torture/compile/20000105-1.c -O2 (test for excess errors)
Excess errors:
spawn failed
--
FAIL: gcc.c-torture/compile/20000105-1.c -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions (test for excess errors)
Excess errors:
spawn failed
--
FAIL: gcc.c-torture/compile/20000105-1.c -O3 -g (test for excess errors)
Excess errors:
spawn failed
--
FAIL: gcc.c-torture/compile/20000105-1.c -Os (test for excess errors)
Excess errors:
i am in lfs 8.2 book 6.2.20, gcc, where i encountered the trouble that the test runner hung.
i killed the test runner.
in xb/gcc/testsuite/gcc/gcc.log, there were 127959 PASS, 0 FAIL, 366 XFAIL records.
i believe the test runner was in a loop.
i left my session and came back hours later and wanted to resume my chroot session and retry the build.
i gave the commands shown below from lfs 8.2 book 6.2.2, 6.2.3, 6.2.4 to resume the chroot session.
i made a fresh copy of gcc-7.3.0 sources, and did the config and make from lfs 8.2 book 6.2.20.
when i ran the test suite, every test failed.
in xb/gcc/testsuite/gcc/gcc.log, it looks like every FAIL case has the 3 lines
FAIL: # text with test case name
Excess errors:
spawn failed
my question is, how can i quit my chroot session and resume it later so that the builds work properly.
the commands i gave to resume the chroot session are shown here:
[***@localhost lfs82]# uname -a
Linux localhost.localdomain 4.16.3-301.fc28.x86_64 #1 SMP Mon Apr 23 21:59:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
# lfs 8.2 book 6.2.2:
[***@localhost lfs82]# mount -v --bind /dev $LFS/dev
# lfs 8.2 book 6.2.3:
[***@localhost lfs82]# mount -vt devpts devpts $LFS/dev/pts -o gid=5,mode=620
[***@localhost lfs82]# mount -vt proc proc $LFS/proc
[***@localhost lfs82]# mount -vt sysfs sysfs $LFS/sys
[***@localhost lfs82]# mount -vt tmpfs tmpfs $LFS/run
# lfs 8.2 book 6.2.4:
[***@localhost lfs82]# chroot "$LFS" /tools/bin/env -i \
HOME=/root \
TERM="$TERM" \
PS1='(lfs chroot) \u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
/tools/bin/bash --login +h
# lfs 8.2 book 6.2.6:
(lfs chroot) root:/# exec /tools/bin/bash --login +h
# lfs 8.2 book 6.2.20:
(lfs chroot) root:/# cd xh/gcc-7.3.0
(lfs chroot) root:/xh/gcc-7.3.0/# case $(uname -m) in
x86_64)
sed -e '/m64=/s/lib64/lib/' \
-i.orig gcc/config/i386/t-linux64
;;
esac
# rm -f /usr/lib/gcc # omitted, done previously
(lfs chroot) root:/xh/gcc-7.3.0/# mkdir -v xb
(lfs chroot) root:/xh/gcc-7.3.0/# cd xb
(lfs chroot) root:/xh/gcc-7.3.0/xb# SED=sed \
(lfs chroot) root:/xh/gcc-7.3.0/xb# ../configure --prefix=/usr \
--enable-languages=c,c++ \
--disable-multilib \
--disable-bootstrap \
--with-system-zlib
(lfs chroot) root:/xh/gcc-7.3.0/xb# make
(lfs chroot) root:/xh/gcc-7.3.0/xb# make -k check
# ... several thousand lines, ending with
make: *** [Makefile:2243: do-check] Error 2
make: Target 'check' not remade because of errors.
(lfs chroot) root:/xh/gcc-7.3.0# alias wl='wc -lc'
(lfs chroot) root:/xh/gcc-7.3.0# alias gr='grep -n -e'
(lfs chroot) root:/xh/gcc-7.3.0# cat xb/gcc/testsuite/gcc/gcc.log | wl
281972 26806432 xb/gcc/testsuite/gcc/gcc.log
(lfs chroot) root:/xh/gcc-7.3.0# gr "^FAIL" xb/gcc/testsuite/gcc/gcc.log | wl
56354 4358489
(lfs chroot) root:/xh/gcc-7.3.0# gr "^spawn failed" xb/gcc/testsuite/gcc/gcc.log | wl
34842 679850
(lfs chroot) root:/xh/gcc-7.3.0# grep -A 2 "^FAIL" xb/gcc/testsuite/gcc/gcc.log | head -22
FAIL: gcc.c-torture/compile/20000105-1.c -O0 (test for excess errors)
Excess errors:
spawn failed
--
FAIL: gcc.c-torture/compile/20000105-1.c -O1 (test for excess errors)
Excess errors:
spawn failed
--
FAIL: gcc.c-torture/compile/20000105-1.c -O2 (test for excess errors)
Excess errors:
spawn failed
--
FAIL: gcc.c-torture/compile/20000105-1.c -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions (test for excess errors)
Excess errors:
spawn failed
--
FAIL: gcc.c-torture/compile/20000105-1.c -O3 -g (test for excess errors)
Excess errors:
spawn failed
--
FAIL: gcc.c-torture/compile/20000105-1.c -Os (test for excess errors)
Excess errors: