[lfs-dev] Restrict the scope of the ulimit -s 32768

Daniel Schepler dschepler at gmail.com
Sun Jun 7 12:37:01 PDT 2015


This patch is against the systemd branch (though hopefully there shouldn't
be any problems applying to trunk either).  I didn't run into any new
failures in subsequent builds; though for some reason, I'm getting this
test suite failure in make (putting ulimit -s 32768 on it doesn't help,
though):

misc/fopen-fail .........................................
Test timed out after 5 seconds
Error running /sources/make-4.1/tests/../make (expected 512; got 14):
/sources/make-4.1/tests/../make -f work/misc/fopen-fail.mk

Caught signal 14!
FAILED (0/1 passed)
-- 
Daniel Schepler
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-dev/attachments/20150607/e02cd702/attachment.html>
-------------- next part --------------
Index: chapter06/gcc.xml
===================================================================
--- chapter06/gcc.xml	(revision 10915)
+++ chapter06/gcc.xml	(working copy)
@@ -91,15 +91,12 @@
       critical. Do not skip it under any circumstance.</para>
     </important>
 
-   <para>One set of tests in the GCC test suite is known to exhaust the stack,
-   so increase the stack size prior to running the tests:</para>
+    <para>Test the results, but do not stop at errors. One set of tests in
+    the GCC test suite is known to exhaust the stack, so the stack size
+    needs to be increased for the duration of the test run:</para>
 
-<screen><userinput remap="test">ulimit -s 32768</userinput></screen>
+<screen><userinput remap="test">(ulimit -s 32768; make -k check)</userinput></screen>
 
-    <para>Test the results, but do not stop at errors:</para>
-
-<screen><userinput remap="test">make -k check</userinput></screen>
-
     <para>To receive a summary of the test suite results, run:</para>
 
 <screen><userinput remap="test">../gcc-&gcc-version;/contrib/test_summary</userinput></screen>


More information about the lfs-dev mailing list