lfs-ru/chapter08
Poltern f7e58b2233 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-28 10:31:52 +05:00
..
aboutdebug.xml Translated aboutdebug, acl, attr, autoconf, bash, bc 2023-07-02 02:41:28 +05:00
acl.xml Spelling 2023-08-04 01:54:52 +05:00
attr.xml Spelling 2023-08-04 01:54:52 +05:00
autoconf.xml gen-changelog: Handles holding tickets 2024-01-02 21:11:20 +05:00
automake.xml Package updates 2024-08-16 12:55:32 +05:00
bash.xml Package updates 2024-08-16 12:55:32 +05:00
bc.xml Small typo :: 2024-03-29 16:58:17 +05:00
binutils.xml binutils: Add --enable-new-dtags 2024-08-06 21:07:39 +05:00
bison.xml Spelling 2023-08-04 01:54:52 +05:00
bzip2.xml Spelling 2023-08-04 01:54:52 +05:00
chapter08.xml Package updates and a new addition: 2024-03-20 13:26:22 +05:00
check.xml Spelling 2023-08-04 01:54:52 +05:00
cleanup.xml cleanup: Remove hidden files in /tmp 2024-08-06 21:09:29 +05:00
coreutils.xml Package updates. 2024-08-18 22:40:33 +05:00
dbus.xml dbus: minor spacing adjustment 2023-11-26 21:49:38 +05:00
dejagnu.xml Small fix 2024-01-28 22:38:22 +05:00
diffutils.xml Translated coreutils, dbus, diffutils, e2fsprogs 2023-07-06 23:40:49 +05:00
e2fsprogs.xml treewide: Use <ulink> instead of <filename> for man pages 2024-02-01 16:39:54 +05:00
expat.xml Spelling 2023-08-04 01:54:52 +05:00
expect.xml tcl, expect, readline: Get rid of rpath 2024-06-21 13:14:52 +05:00
file.xml Spelling 2023-08-04 01:54:52 +05:00
findutils.xml Remove -v from "chown -R tester" commands 2024-02-06 14:47:50 +05:00
flex.xml Translated e2fsprogs.xml, expect.xml, findutils.xml, flex.xml, gawk.xml, gcc.xml 2023-09-01 14:53:20 +05:00
flit-core.xml Add --no-cache-dir into pip3 wheel commands for Python modules 2023-09-05 00:33:00 +03:00
gawk.xml Remove -v from "chown -R tester" commands 2024-02-06 14:47:50 +05:00
gcc.xml gcc: Don't decrease the stack limit 2024-08-28 10:31:52 +05:00
gdbm.xml Translated gcc, gdbm, gettext 2023-07-08 23:55:58 +05:00
gettext.xml Translated chapter 8 (from gettext until shadow) 2023-09-01 23:38:19 +05:00
glibc.xml Package updates 2024-08-16 12:55:32 +05:00
gmp.xml Fix punctuation in quotes, and quote signs 2024-02-01 22:12:23 +05:00
gperf.xml Spelling 2023-08-04 01:54:52 +05:00
grep.xml Translated glibc, gperf, grep, groff 2023-07-09 15:43:13 +05:00
groff.xml Translated chapter 8 (from gettext until shadow) 2023-09-01 23:38:19 +05:00
grub.xml Package updates 2024-05-12 23:18:03 +05:00
gzip.xml Translated pages with grub until libelf inclusively 2023-07-10 01:12:34 +05:00
iana-etc.xml Added package file: check, file, grep, iana-etc, libelf, m4, make, mpc, mpfr, patch 2022-06-06 02:15:36 +05:00
inetutils.xml Package updates 2024-05-12 23:18:03 +05:00
intltool.xml Spelling 2023-08-04 01:54:52 +05:00
introduction.xml Translated pages with grub until libelf inclusively 2023-07-10 01:12:34 +05:00
iproute2.xml Remove the reference to BLFS Berkeley DB page 2023-11-26 21:48:19 +05:00
jinja2.xml Add --no-cache-dir into pip3 wheel commands for Python modules 2023-09-05 00:33:00 +03:00
kbd.xml Small typo :: 2024-03-29 16:58:17 +05:00
kmod.xml Small fix and reword 2024-08-22 10:01:27 +05:00
less.xml Translated chapter 8 (from gettext until shadow) 2023-09-01 23:38:19 +05:00
libcap.xml Translated pages with grub until libelf inclusively 2023-07-10 01:12:34 +05:00
libelf.xml Translated pages from chapter 8 2023-09-02 02:00:11 +05:00
libffi.xml Spelling 2023-08-04 01:54:52 +05:00
libpipeline.xml Spelling 2023-08-04 01:54:52 +05:00
libtool.xml Packages update and small fix 2024-01-31 21:41:07 +05:00
libxcrypt.xml Small reword 2024-03-19 16:22:16 +05:00
lz4.xml Fix a minor issue with liblz4.pc. 2024-08-16 12:49:51 +05:00
m4.xml Spelling 2023-08-04 01:54:52 +05:00
make.xml Remove -v from "chown -R tester" commands 2024-02-06 14:47:50 +05:00
man-db.xml pkgmgt: Reinstall the same version of Glibc should be safe 2023-10-05 17:49:15 +03:00
man-pages.xml Translated chapter 8 (from gettext until shadow) 2023-09-01 23:38:19 +05:00
markupsafe.xml Add --no-cache-dir into pip3 wheel commands for Python modules 2023-09-05 00:33:00 +03:00
meson.xml Add --no-cache-dir into pip3 wheel commands for Python modules 2023-09-05 00:33:00 +03:00
mpc.xml Spelling 2023-08-04 01:54:52 +05:00
mpfr.xml mpfr: 4.2.1 has 198 tests 2023-09-09 11:18:02 +03:00
ncurses.xml Again stupid typo fix 2024-08-18 23:46:02 +05:00
ninja.xml Package updates 2024-04-15 22:37:33 +05:00
openssl.xml treewide: Use <ulink> instead of <filename> for man pages 2024-02-01 16:39:54 +05:00
patch.xml Spelling 2023-08-04 01:54:52 +05:00
perl.xml Package and format updates. 2024-07-12 13:06:06 +05:00
pkgconf.xml Packages update and small fix chapter10/kernel.xml chown command reported by @ylegan 2024-02-15 00:13:18 +05:00
pkgmgt.xml Small typo :: 2024-03-29 16:58:17 +05:00
procps.xml glibc: Make the command enumerating timed out tests remap="test" 2024-03-05 23:15:39 +05:00
psmisc.xml Translated chapter 8 (from gettext until shadow) 2023-09-01 23:38:19 +05:00
python.xml systemd: Enable test suite (again) 2024-05-03 18:31:54 +05:00
readline.xml Package updates 2024-08-16 12:55:32 +05:00
sed.xml Remove -v from "chown -R tester" commands 2024-02-06 14:47:50 +05:00
setuptools.xml Added setuptools-68.2.2. 2023-11-01 22:51:31 +05:00
shadow.xml Small typo :: 2024-03-29 16:58:17 +05:00
stripping.xml Fix punctuation in quotes, and quote signs 2024-02-02 23:20:31 +05:00
sysklogd.xml bootscripts: console: Fix fb console detection 2024-08-25 22:14:05 +05:00
systemd.xml Systemd: Update known failures 2024-08-06 21:09:01 +05:00
sysvinit.xml Make capitalization os SysVinit consistent 2024-08-16 12:51:31 +05:00
tar.xml Remove stray references to TESTSUITEFLAGS 2023-12-24 20:40:23 +05:00
tcl.xml tcl, expect, readline: Get rid of rpath 2024-06-21 13:14:52 +05:00
texinfo.xml Small typo :: 2024-03-29 16:58:17 +05:00
udev.xml Package and format updates. 2024-07-12 13:06:06 +05:00
util-linux.xml util-linux: Create a dummy /etc/fstab to satisfy two tests 2024-04-09 17:27:49 +05:00
vim.xml Small typo and fix 2024-04-12 11:38:42 +05:00
wheel.xml Add --no-cache-dir into pip3 wheel commands for Python modules 2023-09-05 00:33:00 +03:00
xml-parser.xml Translated pages: util-linux, vim, wheel, xml-parser, zstd 2023-07-15 22:33:43 +05:00
xz.xml Spelling 2023-08-04 01:54:52 +05:00
zlib.xml Spelling 2023-08-04 01:54:52 +05:00
zstd.xml Spelling 2023-08-04 01:54:52 +05:00