Discussion:
[lfs-support] lfs 8.2 - how to resume session
lothar
2018-09-24 21:34:43 UTC
Permalink
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:
Pierre Labastie
2018-09-25 06:41:14 UTC
Permalink
Post by lothar
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
spawn failed
my question is, how can i quit my chroot session and resume it later so that
the builds work properly.
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
Just a silly question, was the LFS variable set?

Also, the following is missing:
if [ -h $LFS/dev/shm ]; then
mkdir -pv $LFS/$(readlink $LFS/dev/shm)
fi
Post by lothar
    HOME=/root                  \
    TERM="$TERM"                \
    PS1='(lfs chroot) \u:\w\$ ' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
    /tools/bin/bash --login +h
(lfs chroot) root:/# exec /tools/bin/bash --login +h
That one is not needed now that the /etc/passwd files has been created.
Post by lothar
(lfs chroot) root:/# cd xh/gcc-7.3.0
You had deleted the previous build directories, haven't you?
Post by lothar
(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
Apart from what has been said above, there is nothing obvious I can see.

Pierre
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://
Hazel Russman
2018-09-25 09:57:49 UTC
Permalink
On Mon, 24 Sep 2018 21:34:43 +0000
Post by lothar
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
spawn failed
Did you do this in your new session?
ulimit -s 32768
--
If any members of GCHQ are reading this, shame on you! I fought for
your right to belong to a trade union and now you are taking away my
right to privacy?

Hazel Russman
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thin
Loading...