diff --git a/chapter08/gcc.xml b/chapter08/gcc.xml
index 971394527..ad60089b8 100644
--- a/chapter08/gcc.xml
+++ b/chapter08/gcc.xml
@@ -139,10 +139,16 @@ cd build
command below, where x is the number of CPU cores on your system.
- One set of tests in the GCC test suite is known to exhaust the default
- stack, so increase the stack size prior to running the tests:
+ GCC may need more stack space compiling some extremely complex
+ code patterns. As a precaution for the host distros with a tight stack
+ limit, explicitly set the stack size hard limit to infinite.
+ On most host distros (and the final LFS system) the hard limit is
+ infinite by default, but there's no harm to set it explicitly anyway.
+ It's not needed to change the stack size soft limit because GCC will
+ automatically set it to an appropriate value, as long as the value does
+ not exceed the hard limit:
-ulimit -s 32768
+ulimit -s -H unlimited
Now remove/fix several known test failures: