f7e58b2233
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. |
||
---|---|---|
appendices | ||
bootscripts | ||
chapter01 | ||
chapter02 | ||
chapter03 | ||
chapter04 | ||
chapter05 | ||
chapter06 | ||
chapter07 | ||
chapter08 | ||
chapter09 | ||
chapter10 | ||
chapter11 | ||
images | ||
part3intro | ||
prologue | ||
stylesheets | ||
udev-lfs | ||
.gitignore | ||
ABOUT.md | ||
aux-file-data.sh | ||
gen-changelog.py | ||
general.ent | ||
git-version.sh | ||
index.xml | ||
INSTALL.md | ||
lfs-latest-git.php | ||
lfs-latest.php | ||
LICENSE | ||
make-aux-files.sh | ||
Makefile | ||
obfuscate.sh | ||
packages.ent | ||
patches.ent | ||
pdf-fixups.sh | ||
process-scripts.sh | ||
README.md | ||
tidy.conf |
LFS Book README
В этом документе содержится информация о том, как выполнить преобразование книги из XML формата в другой формат (например, HTML, PDF, PS и TXT). Для начала, если вы ещё этого не сделали, пожалуйста, откройте и прочитайте информацию, представленную в файле INSTALL, чтобы установить необходимое программное обеспечение. Если вы уже выполнили все шаги в файле INSTALL, ознакомьтесь с примерами того, как выполнить преобразование файлов в другие форматы.
Во всех примерах необходимо указание аргумента REV=systemd, если требуется сборка редакции systemd.
XML в XHTML:
make BASEDIR=/path/to/output/location
XML в одностраничный XHTML (nochunks):
make BASEDIR=/path/to/output/location nochunks
XML в TXT:
Следуйте инструкциям для nochunks и затем запустите: lynx -dump /path/to/nochunks > /path/to/output
XML в PDF:
make BASEDIR=/path/to/output/location pdf
Сделать сборку всех версий (TXT по умолчанию не создается):
make BASEDIR=/path/to/output/location all