From 2cc15c335fc651e3ee69464ab0ef89af408dab8f Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Tue, 3 Aug 2021 20:53:14 +0800 Subject: [PATCH 1/5] gcc: document new test failures with glibc-2.34 The links to gcc bugzilla is in XML comments. --- chapter08/gcc.xml | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/chapter08/gcc.xml b/chapter08/gcc.xml index 840bddb03..82de879fa 100644 --- a/chapter08/gcc.xml +++ b/chapter08/gcc.xml @@ -121,28 +121,26 @@ su tester -c "PATH=$PATH make -k check" url="&test-results;"/> and . - - + + Eight tests related to analyzer are known to fail. + + + Seven tests related to pr59063-2.c are known + to fail. + + + One test named asan_test.C is known to + fail. + + + In libstdc++, one test named 49745.cc is + known to fail because the header dependencies in glibc have have + changed. In libstdc++, one numpunct test and six tests related to get_time are known to fail. These are all because the locale definitions in glibc have changed but libstdc++ does not currently support those changes. - - - A few unexpected failures cannot always be avoided. The GCC developers are usually aware of these issues, but have not resolved them yet. Unless the test results are vastly different from those at the above URL, From 6094daeb7aa83eefa865872182eed1adfa410c73 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Tue, 3 Aug 2021 23:58:46 +0800 Subject: [PATCH 2/5] strip: restore versions in online_usrlib and save_usrlib Without them, for example: cp /usr/lib/libbfd.so /tmp/libbfd.so # now /tmp/libbfd.so is a hardcopy of /usr/lib/libbfd-2.37.so strip --strip-unneeded /tmp/libbfd.so install -vm755 /tmp/libbfd.so /usr/lib/libbfd.so # now /usr/lib/libbfd.so is *not* a symlink, but a real file We don't want this to happen. libdl and libpthread removed: they are now dummy libs and is not used by anything built in LFS/BLFS. --- chapter08/strippingagain.xml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/chapter08/strippingagain.xml b/chapter08/strippingagain.xml index 825cd20e2..7692f6ce9 100644 --- a/chapter08/strippingagain.xml +++ b/chapter08/strippingagain.xml @@ -43,12 +43,11 @@ - save_usrlib="ld-linux-x86-64.so.2 +save_usrlib="ld-linux-x86-64.so.2 libc.so.6 - libpthread.so.6 - libthread_db.so + libthread_db.so.1 libquadmath.so.&libquadmath-version; - libstdc++.so.6 + libstdc++.so.&libstdcpp-version; libitm.so.&libitm-version; libatomic.so.&libatomic-version;" @@ -64,13 +63,12 @@ for LIB in $save_usrlib; do done online_usrbin="bash find strip" -online_usrlib="libbfd.so - libdl.so.2 - libhistory.so - libncursesw.so - libm.so.6 - libreadline.so - libz.so +online_usrlib="libbfd-&binutils-version;.so + libhistory.so.&readline-version; + libncursesw.so.&ncurses-version; + libm.so.6 + libreadline.so.&readline-version; + libz.so.&zlib-version; $(cd /usr/lib; find libnss*.so* -type f)" for BIN in $online_usrbin; do From 2a2225677242e22274c5446fc60bf2e4d2724cc8 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 4 Aug 2021 00:09:52 +0800 Subject: [PATCH 3/5] bash: minor command style fix --- chapter08/bash.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chapter08/bash.xml b/chapter08/bash.xml index e2d32bba4..699a24e43 100644 --- a/chapter08/bash.xml +++ b/chapter08/bash.xml @@ -42,9 +42,9 @@ Prepare Bash for compilation: -./configure --prefix=/usr \ +./configure --prefix=/usr \ --docdir=/usr/share/doc/bash-&bash-version; \ - --without-bash-malloc \ + --without-bash-malloc \ --with-installed-readline From 887b02bd8c9140431b76c4bf8712e1d2d9c827c8 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 4 Aug 2021 00:12:51 +0800 Subject: [PATCH 4/5] fix temp hosts file I think it may be related to Python 3 tests hang (?) --- chapter07/createfiles.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter07/createfiles.xml b/chapter07/createfiles.xml index c55d40836..79fdaaf97 100644 --- a/chapter07/createfiles.xml +++ b/chapter07/createfiles.xml @@ -48,7 +48,7 @@ as well: cat > /etc/hosts << EOF -"127.0.0.1 localhost $(hostname)" +127.0.0.1 localhost $(hostname) ::1 localhost EOF From 99b29384ca1889da5776b261009940c239ae2958 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 4 Aug 2021 00:26:51 +0800 Subject: [PATCH 5/5] minor typo --- chapter08/glibc.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml index 2935c84af..675adf633 100644 --- a/chapter08/glibc.xml +++ b/chapter08/glibc.xml @@ -939,7 +939,7 @@ mkdir -pv /etc/ld.so.conf.d libutil - >Dummy library containing no functions. Previously contained + Dummy library containing no functions. Previously contained code for standard functions used in many different Unix utilities. These functions are now in libc