lfs/chapter08
Xi Ruoyao 2ca7fca799
gcc: Don't decrease the stack limit
I've had doubts on this "ulimit -s 32768" command for years.  After
reading GCC code (libiberty/stack-limit.c) I'm pretty sure this command
is not doing what we expected.

In a typical Linux distro, the default "soft" stack limit is 8 MiB and
the default "hard" stack limit is infinite.  And GCC will automatically
increase the soft limit to 64 MiB if the original soft limit is smaller
than 64 MiB, and the hard limit is at least 64 MiB.  So with a typical
default configuration, the real stack limit of GCC is 64 MiB.

But our "ulimit -s 32768" command sets both the soft limit and the hard
limit to 32 MiB.  Thus we are actually *decreasing* the real stack
limit.  Fortunately this has not caused any test failures, but it's just
wrong (contradicting with the explanation of the command).

Thus just raise the hard limit to infinite in case the host distro uses
a not so typical configuration where the hard limit is tight, and let
GCC to set up the soft limit to the expected value on its own.  It's
more future-proof than "ulimit -s 65536" in case GCC changes the
expected stack limit in the future.

It should be safe to make the change in freeze because in jhalfs it only
affects the test suite, and even in a manual build the user can skip
this command if not running the GCC test suite.
2024-08-27 16:58:46 +08:00
..
aboutdebug.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
acl.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
attr.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
autoconf.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
automake.xml automake: Remove outdated test failure notice 2024-08-01 00:17:10 +08:00
bash.xml Package updates. 2024-08-05 13:07:12 -05:00
bc.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
binutils.xml binutils: Add --enable-new-dtags 2024-07-18 11:13:20 +08:00
bison.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
bzip2.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
chapter08.xml Package updates and a new addition: 2024-03-19 17:56:41 -05:00
check.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
cleanup.xml cleanup: Remove hidden files in /tmp 2024-07-18 11:13:24 +08:00
coreutils.xml Package updates. 2024-08-14 10:36:40 -05:00
dbus.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
dejagnu.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
diffutils.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
e2fsprogs.xml treewide: Use <ulink> instead of <filename> for man pages 2024-01-26 01:59:06 +08:00
expat.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
expect.xml expect: Get rid of rpath 2024-06-09 19:51:57 +08:00
file.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
findutils.xml Remove -v from "chown -R tester" commands 2024-02-02 15:19:41 +08:00
flex.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
flit-core.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
gawk.xml Remove -v from "chown -R tester" commands 2024-02-02 15:19:41 +08:00
gcc.xml gcc: Don't decrease the stack limit 2024-08-27 16:58:46 +08:00
gdbm.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
gettext.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
glibc.xml Package updates 2024-07-31 10:37:57 -05:00
gmp.xml Fix punctuation in quotes, and quote signs 2024-01-26 18:28:53 +01:00
gperf.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
grep.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
groff.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
grub.xml Move punctuation/comma into quotes for <xref>s 2024-06-22 11:43:31 +08:00
gzip.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
iana-etc.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
inetutils.xml Package updates. 2024-05-11 15:17:56 -05:00
intltool.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
introduction.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
iproute2.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
jinja2.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
kbd.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
kmod.xml Minor grammar change. 2024-08-18 20:02:08 -05:00
less.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
libcap.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
libelf.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
libffi.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
libpipeline.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
libtool.xml libtool: Add "or newer" after "grep-3.8" 2024-01-25 05:13:47 +08:00
libxcrypt.xml glibc: Don't "overwrite" libcrypt.so.1* when updating 2024-02-24 13:26:06 +08:00
lz4.xml Fix a minor issue with liblz4.pc. 2024-08-04 16:28:24 -05:00
m4.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
make.xml Remove -v from "chown -R tester" commands 2024-02-02 15:19:41 +08:00
man-db.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
man-pages.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
markupsafe.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
meson.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
mpc.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
mpfr.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
ncurses.xml PAckage updates and a security fix. 2024-04-30 12:42:03 -05:00
ninja.xml Typo 2024-04-18 10:19:03 -05:00
openssl.xml treewide: Use <ulink> instead of <filename> for man pages 2024-01-26 01:59:06 +08:00
patch.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
perl.xml Package and format updates. 2024-06-30 10:40:41 -05:00
pkgconf.xml Package updates. 2024-02-12 11:05:36 -06:00
pkgmgt.xml Add info about how to upgrade Glibc on a running system 2024-02-02 09:03:51 +08:00
procps.xml procps: Run chown -R tester . before running the test as tester 2024-03-02 15:50:21 +08:00
psmisc.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
python.xml Revert "python: Document test failures with recent expat" 2024-05-03 11:59:53 +08:00
readline.xml Package updates. 2024-08-05 13:07:12 -05:00
sed.xml Remove -v from "chown -R tester" commands 2024-02-02 15:19:41 +08:00
setuptools.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
shadow.xml Move punctuation/comma into quotes for <xref>s 2024-06-22 11:43:31 +08:00
stripping.xml More <quote> clean up 2024-01-28 20:53:47 +08:00
sysklogd.xml Turn off network logging by default. 2024-08-24 15:45:30 -05:00
systemd.xml systemd: Update known failures 2024-07-18 11:13:24 +08:00
sysvinit.xml Make capitalization os SysVinit consistent. 2024-07-31 16:59:30 -05:00
tar.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
tcl.xml tcl: Get rid of rpath 2024-06-09 19:47:30 +08:00
texinfo.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
udev.xml Package and format updates. 2024-06-30 10:40:41 -05:00
util-linux.xml util-linux: Create a dummy /etc/fstab to satisfy two tests 2024-04-08 16:10:03 +08:00
vim.xml vim: typo fix from rhubarbpieguy 2024-03-02 15:02:00 -06:00
wheel.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
xml-parser.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
xz.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
zlib.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
zstd.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00