From dbfcbbe0b2fcb6d6c67343bae8ac0a3ef91e2464 Mon Sep 17 00:00:00 2001 From: alirezamasoomi Date: Tue, 17 Nov 2026 18:17:31 +0330 Subject: [PATCH 1/5] docs: add LFS troubleshooting index --- troubleshooting/README.md | 42 ++++++++++++++++++++++++--------------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/troubleshooting/README.md b/troubleshooting/README.md index cf3f0fb..9e7a389 100644 --- a/troubleshooting/README.md +++ b/troubleshooting/README.md @@ -1,23 +1,33 @@ # Troubleshooting -This directory is the place for reproducible reports of build failures and unexpected system behavior. The repository currently provides the reporting standard; do not treat the absence of a report as evidence that no failures occurred. +This directory records issues and test outcomes observed during this Linux From Scratch 13.1-systemd build. The reports distinguish between a confirmed build problem, a test failure explicitly documented by the LFS book, and an outcome whose cause has not been established. -## Issue report template +## Reports -1. **Title** — package or component and a short description. -2. **Environment** — host, target architecture, package version and LFS book section. -3. **Symptoms** — exact error message or failing test name. -4. **Investigation** — commands, logs and evidence used during diagnosis. -5. **Root cause** — confirmed cause, or clearly marked hypothesis if not confirmed. -6. **Resolution** — exact change and verification performed. -7. **References** — upstream documentation and related project evidence. +| Report | Observed item | Assessment | +|---|---|---| +| [Glibc 2.44](glibc-2.44-tst-lchmod.md) | `io/tst-lchmod` | Known failure explicitly documented for the LFS chroot environment | +| [Binutils 2.47](binutils-2.47-gprofng.md) | `tmpdir/gp-gmon` | Matches the gprofng test failure documented by LFS | +| [GCC 16.2.0](gcc-16.2.0-test-results.md) | C and C++ DejaGNU summaries | Compared with the book and official LFS reference log; includes known failures and separately reported XPASS results | +| [Other documented package test failures](other-known-test-failures.md) | ACL, Findutils and Groff | Recorded failures match package-specific notes in the LFS book | -## Guidelines +## Evidence and interpretation -- Do not call a workaround a root-cause fix unless the cause is understood. -- Preserve failed test names and meaningful error output. -- State whether the failing test or build was rerun after the change. -- Link the original log and relevant evidence. -- Never claim all tests passed when the recorded summary contains failures or skips. +The primary evidence for these reports is the archived test-evidence bundle: -The goal is to preserve reproducible troubleshooting knowledge, not just commands that happened to work. +- [Testing evidence archive and inspection notes](../screenshots/07-testing-and-validation/README.md) +- [Full test archive audit](../docs/test-archive-audit.md) +- [Testing and validation methodology](../docs/testing-and-validation.md) + +The archive contains inventories and extracted result summaries, not every original full package log. The audit compares captured test names with the LFS 13.1-systemd book and, where available, the official LFS 13.1 reference build logs. + +## Reporting rules + +- A failing test is not automatically evidence of a defective build. +- A failure documented by the LFS book must be identified as such. +- Keep `FAIL`, `XFAIL` and `XPASS` distinct; they are not interchangeable. +- Do not infer a root cause from a test name alone. +- Do not claim a test was rerun or fixed unless the repository contains evidence of that rerun. +- Where the original full log or host-specific information is unavailable, state the limitation. + +No separate incident report has been added for a generic chroot or mount failure: the available project evidence supports the Glibc test's documented chroot limitation, but does not preserve enough detail to claim a distinct mount incident with a verified root cause and resolution. From f6b7ebe0aad530af0d5614335910e648edfba391 Mon Sep 17 00:00:00 2001 From: alirezamasoomi Date: Tue, 17 Nov 2026 18:17:33 +0330 Subject: [PATCH 2/5] docs: document Glibc known test failure --- troubleshooting/glibc-2.44-tst-lchmod.md | 36 ++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 troubleshooting/glibc-2.44-tst-lchmod.md diff --git a/troubleshooting/glibc-2.44-tst-lchmod.md b/troubleshooting/glibc-2.44-tst-lchmod.md new file mode 100644 index 0000000..12e9b11 --- /dev/null +++ b/troubleshooting/glibc-2.44-tst-lchmod.md @@ -0,0 +1,36 @@ +# Glibc 2.44 — `io/tst-lchmod` + +## Environment + +- Project: Linux From Scratch 13.1-systemd +- Package: glibc 2.44 +- Build target: `x86_64-lfs-linux-gnu` +- LFS book section: 8.5 — Glibc + +## Observed result + +The captured Glibc test summary includes: + +```text +FAIL: io/tst-lchmod +``` + +The project troubleshooting history records that the Glibc test run initially had multiple environment-related failures while the chroot's virtual filesystems were being corrected. After the environment was corrected and the tests were rerun, `io/tst-lchmod` remained as the recorded failure. + +## Assessment + +The LFS 13.1-systemd book explicitly identifies `io/tst-lchmod` as a known failure in the LFS chroot environment. + +This means the remaining test result must not be presented as proof that the Glibc build is defective. The book's note is the basis for this classification; this report does not claim an independently established root cause beyond that documented limitation. + +## Resolution and verification + +The chroot environment was corrected and the test suite was rerun. The remaining `io/tst-lchmod` failure was retained in the result record rather than being hidden or reported as a pass. + +The available archive is a summary/inventory bundle and does not include every original full test log. This report therefore preserves the known outcome and its book comparison without claiming a new reproduction. + +## References + +- [LFS 13.1-systemd — Glibc 2.44, Section 8.5](https://www.linuxfromscratch.org/lfs/view/13.1-systemd/chapter08/glibc.html) +- [Project test archive audit](../docs/test-archive-audit.md) +- [Archived testing evidence](../screenshots/07-testing-and-validation/README.md) From 6521c6c3827bcc0d81486f965fc4295f623dfe04 Mon Sep 17 00:00:00 2001 From: alirezamasoomi Date: Tue, 17 Nov 2026 18:17:35 +0330 Subject: [PATCH 3/5] docs: document Binutils gprofng test result --- troubleshooting/binutils-2.47-gprofng.md | 33 ++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 troubleshooting/binutils-2.47-gprofng.md diff --git a/troubleshooting/binutils-2.47-gprofng.md b/troubleshooting/binutils-2.47-gprofng.md new file mode 100644 index 0000000..8fd22fe --- /dev/null +++ b/troubleshooting/binutils-2.47-gprofng.md @@ -0,0 +1,33 @@ +# Binutils 2.47 — gprofng test result + +## Environment + +- Project: Linux From Scratch 13.1-systemd +- Package: Binutils 2.47 +- LFS book section: 8.22 — Binutils + +## Observed result + +The captured test result contains: + +```text +FAIL: tmpdir/gp-gmon +``` + +This is the gprofng-related test failure identified during review of the archived test evidence. + +## Assessment + +The LFS 13.1-systemd book notes that one test related to gprofng is known to fail. The official LFS 13.1 reference build log records the same `tmpdir/gp-gmon` failure. + +The captured result therefore matches the documented reference outcome. It should not be described as a confirmed Binutils build defect. + +## Resolution and verification + +No independent corrective change is recorded for this test. The failure is retained and classified by comparison with the LFS book and official reference log. The project archive does not contain the complete original Binutils test log needed for a deeper root-cause investigation. + +## References + +- [LFS 13.1-systemd — Binutils 2.47, Section 8.22](https://www.linuxfromscratch.org/lfs/view/13.1-systemd/chapter08/binutils.html) +- [Official LFS 13.1 Binutils test log](https://www.linuxfromscratch.org/lfs/build-logs/13.1/i7-14700K/test-logs/820-binutils-2.47) +- [Project test archive audit](../docs/test-archive-audit.md) From 234195f7396f064f409e9caf338433d4957aa9dd Mon Sep 17 00:00:00 2001 From: alirezamasoomi Date: Tue, 17 Nov 2026 18:17:38 +0330 Subject: [PATCH 4/5] docs: document GCC test-suite outcomes --- troubleshooting/gcc-16.2.0-test-results.md | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 troubleshooting/gcc-16.2.0-test-results.md diff --git a/troubleshooting/gcc-16.2.0-test-results.md b/troubleshooting/gcc-16.2.0-test-results.md new file mode 100644 index 0000000..e757e08 --- /dev/null +++ b/troubleshooting/gcc-16.2.0-test-results.md @@ -0,0 +1,70 @@ +# GCC 16.2.0 — test-suite outcomes + +## Environment + +- Project: Linux From Scratch 13.1-systemd +- Package: GCC / G++ 16.2.0 +- LFS book section: 8.32 — GCC +- Test framework: DejaGNU + +## Observed result + +The archived summaries record: + +| Test suite | FAIL entries | XPASS entries | +|---|---:|---:| +| C | 40 | 2 | +| C++ | 33 | 0 | + +These are DejaGNU result entries, not counts of distinct failing source files or proof of an equivalent number of independent compiler defects. + +### C test groups + +The captured C failures include test groups named in the LFS book: + +- `gcc.dg/ipa/pr122458.c` +- `gcc.dg/lto/toplevel-extended-asm-1` and `toplevel-simple-asm-1` +- Nested plugin crash tests +- i386 auto-initialization, memmove, memcpy, memset and other target-specific tests, including `memset-pr120683-*.c` + +The archive also records these additional groups: + +- `gcc.target/i386/memset-pr70308-1a.c` and `memset-pr70308-1b.c` +- `gcc.target/i386/pr125355-2.c` and `pr125355.c` +- `gcc.target/i386/xchg-4.c` + +The additional groups are not individually listed in the book's known-failure note, but the project audit found the same failures in the official LFS 13.1 reference build log. + +The book conditionally identifies `gcc.target/i386/shift-gf2p8affine-2.c` as a known failure when the processor does not support AVX512. The captured project evidence does not establish whether the build CPU supports AVX512, so that condition remains unverified. + +### C++ test groups + +The recorded C++ failures match groups listed in the book: + +- `g++.target/i386/memset-pr108585-1a.C` and `memset-pr108585-1b.C` +- `g++.target/i386/mv-symbols*.C` +- `g++.target/i386/mvc-symbols*.C` +- `g++.target/i386/pr112824-2.C` +- `g++.target/i386/pr116896-1.C` + +### XPASS interpretation + +The two C XPASS entries are associated with nested plugin crash tests. XPASS means a test expected to fail instead passed. It is not an ordinary PASS and must remain separate from the FAIL count. + +## Assessment + +The official LFS 13.1 reference log reports the same aggregate GCC outcomes: 40 C FAIL entries, 33 C++ FAIL entries and two C XPASS entries. It also corroborates the named failure groups, including the additional C groups not individually enumerated in the book. + +This comparison is strong evidence that the recorded pattern is also present in the published reference build. It does not prove that every machine has identical hardware-specific behavior or establish the cause of each individual test result. + +The LFS book notes that its explicitly listed known failures are non-critical and discusses test assumptions involving build options such as `--enable-default-ssp` and `--enable-default-pie`. Do not automatically apply that explanation to test groups not individually discussed by the book. + +## Resolution and verification + +No independent GCC source patch or test-specific workaround is recorded for these outcomes. They are documented as test-suite results and compared against the book and official reference build log. The project archive contains summary excerpts rather than all original full GCC logs. + +## References + +- [LFS 13.1-systemd — GCC 16.2.0, Section 8.32](https://www.linuxfromscratch.org/lfs/view/13.1-systemd/chapter08/gcc.html) +- [Official LFS 13.1 GCC test log](https://www.linuxfromscratch.org/lfs/build-logs/13.1/i7-14700K/test-logs/830-gcc-16.2.0) +- [Project test archive audit](../docs/test-archive-audit.md) From 11f9dfeccd171d9f051bbbae421484296dbbbe36 Mon Sep 17 00:00:00 2001 From: alirezamasoomi Date: Tue, 17 Nov 2026 18:17:40 +0330 Subject: [PATCH 5/5] docs: document other LFS known test failures --- troubleshooting/other-known-test-failures.md | 51 ++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 troubleshooting/other-known-test-failures.md diff --git a/troubleshooting/other-known-test-failures.md b/troubleshooting/other-known-test-failures.md new file mode 100644 index 0000000..8cbe46b --- /dev/null +++ b/troubleshooting/other-known-test-failures.md @@ -0,0 +1,51 @@ +# Other package test failures documented by LFS + +This report groups three additional failures found in the archived test evidence. Each recorded test name matches a package-specific known-failure note in the LFS 13.1-systemd book. + +## ACL 2.4.0 + +**Observed test:** + +```text +FAIL: test/cp.run +``` + +LFS Section 8.27 explains that this test is expected to fail at this point because Coreutils has not been built with ACL support yet. The official LFS 13.1 reference log records the same failure. + +**Assessment:** Confirmed match to a book-documented, stage-dependent test failure. It is not evidence by itself of a defective ACL build. + +Reference: [LFS 13.1-systemd — ACL 2.4.0, Section 8.27](https://www.linuxfromscratch.org/lfs/view/13.1-systemd/chapter08/acl.html). + +## Findutils 4.11.0 + +**Observed test:** + +```text +FAIL: test-regex-el +``` + +LFS Section 8.63 explicitly identifies this test as a known failure. The official LFS 13.1 reference log records the same result. + +**Assessment:** Confirmed match to a documented known failure. + +Reference: [LFS 13.1-systemd — Findutils 4.11.0, Section 8.63](https://www.linuxfromscratch.org/lfs/view/13.1-systemd/chapter08/findutils.html). + +## Groff 1.24.1 + +**Observed test:** + +```text +FAIL: src/preproc/eqn/tests/neqn-smoke-test.sh +``` + +LFS Section 8.64 explicitly identifies `neqn-smoke-test.sh` as a known failure. The official LFS 13.1 reference log records the same result. + +**Assessment:** Confirmed match to a documented known failure. + +Reference: [LFS 13.1-systemd — Groff 1.24.1, Section 8.64](https://www.linuxfromscratch.org/lfs/view/13.1-systemd/chapter08/groff.html). + +## Scope and limitations + +These reports classify the observed test outcomes; they do not claim that the tests were independently reproduced or fixed. The archived project bundle contains summary excerpts and an inventory, not every original full package test log. + +For the complete comparison, including archive limitations and official reference-log details, see the [project test archive audit](../docs/test-archive-audit.md).