Commit Graph

1204 Commits

Author SHA1 Message Date
Xi Ruoyao
d6006ef769
relax host system requirements
A requirement on Glibc is not needed at all.  It's enough once
$LFS_TGT-* is runnable.  A test on Alpine (using musl as libc) has
practically proved this.

We'd raised binutils and GCC requirements mostly for Glibc.  But now
Glibc is cross compiled by our cross toolchain with latest GCC and
binutils release, the host tools really does not matter.  In the Glibc
building process only two .c files are build with BUILD_CC (the C
compiler from the host), and they are highly conservative (mostly
unchanged for years).

Binutils does not have too much requirement on host GCC & Binutils:
there is even a Binutils commit in this week fixing a build failure with
GCC-4.2!

So the most strict limitation comes from GCC.  GCC requires host GCC to
support ISO C++ 11 so GCC >= 4.8 is needed.  And both GCC-4.8 and latest
GCC-11.2 claims a requirement for Binutils-2.12 (for x86_64) or 2.13.1
(for 32-bit x86), so we make minimal Binutils version 2.13.1.

And, host bzip2 is never used now: the only .tar.bz2 files are elfutils
and python docs.  They are not decompressed before entering chroot.
2022-02-19 10:29:47 +08:00
Bruce Dubbs
9904ecb1de Spelling/Typos 2022-02-18 14:49:40 -06:00
Xi Ruoyao
2cf3c176cf
break very long line 2022-02-15 15:45:00 +08:00
Xi Ruoyao
174d1bf948
libstdc++ pass 1: rephrase the explanation for --with-gxx-include-dir
I just received a private mail from some guy obviously puzzled by this
switch.  Expand the explanation a little to make it more clear.
2022-02-15 15:29:35 +08:00
Xi Ruoyao
bca4876ac5
Revert "binutils: use -j1 for make install"
This reverts commit 03a41fd0cd.

It's no longer needed after binutils-gdb commit "install dependencies for
ld -> bfd and libctf -> bfd" (755ba58e).
2022-02-04 17:55:05 +08:00
Xi Ruoyao
0fc98a07ff
gcc-pass1: set --with-glibc-version to target glibc version
"info gccinstall" says:

'--with-glibc-version=MAJOR.MINOR'
     Tell GCC that when the GNU C Library (glibc) is used on the target
     it will be version MAJOR.MINOR or later.  Normally this can be
     detected from the C library's header files, but this option may be
     needed when bootstrapping a cross toolchain without the header
     files available for building the initial bootstrap compiler.

So it can, and should be set to the version of glibc which will be built
for the chroot environment.

On x86_64, currently it does not make any difference with values >=
2.13.  But it may make a difference if a new feature is added to glibc,
or on other platforms.
2021-12-03 03:06:18 +08:00
Xi Ruoyao
0fc1b27b09
move the ln note back to chap 5 glibc
It was moved to chapter 4 during merged-/usr update.  However the ln
commands in chapater 4 are "trivial", so move it back to chapter 5 glibc
where we start to use a "different syntactic version" of it.
2021-11-12 00:41:02 +08:00
Bruce Dubbs
43b6ecdc1f Remove extra spaces 2021-09-15 11:24:27 -05:00
Pierre Labastie
a26f29f645 Remove spaces at end o lines - chapter05 2021-09-07 22:43:31 +02:00
Pierre Labastie
763a00a98d Fix spacing of backslashes in binutils-pass1 2021-08-24 13:02:18 +02:00
Bruce Dubbs
9c7598cc15 Package updates.
Update to glibc-2.34.
Update to diffutils-3.8.
Update to libcap-2.52.
2021-08-02 20:52:40 -05:00
DJ Lucas
4eee9ccd08 Ensure that glibc installs ldconfig and sln to /usr/sbin. 2021-07-21 20:02:02 -05:00
Xi Ruoyao
80838616e5
glibc: remove description of libc_cv_rtlddir for now 2021-05-16 02:28:22 +08:00
Xi Ruoyao
7f25c8447d
glibc: remove libc_cv_rtlddir override for now
Back to use the sed.  Need to investigate later.
2021-05-14 22:44:01 +08:00
Thomas Trepl (Moody)
1b1acbed65 Use /usr/lib for libc_cv_rtlddir 2021-05-14 12:54:44 +02:00
Thomas Trepl (Moody)
f5c3bf6e7e Use a configuration option to set the loader pathes in ldd 2021-05-13 18:30:55 +02:00
Xi Ruoyao
7bf2e85ea6
glibc: fix ldd script 2021-05-13 23:28:16 +08:00
Douglas R. Reno
d7a942197e Merge Xi's changes into trunk
Update to meson-0.58.0
Update to systemd-248
Update to gcc-11.1.0
Update to linux-5.12.1
Update to iproute2-5.12.0
Update to Python-3.9.5
Make /bin, /sbin, and /lib symlinks to their counterparts in /usr.
Thanks again for a significant portion of this work goes to Xi, I only
really merged it and made a couple of modifications for my updates. To
LFS 11.x we go!
2021-05-11 23:24:11 -05:00
Pierre Labastie
430a8de69f Clarify some explanations about the minimal directory layout in chap 4
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12169 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-03-24 15:02:32 +00:00
Xi Ruoyao
a6307b6c60 restore a note about ln command from LFS 9.x
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12168 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-03-24 14:18:25 +00:00
Xi Ruoyao
03a41fd0cd binutils: use -j1 for make install
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12166 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-03-17 16:30:50 +00:00
Xi Ruoyao
0ceb295279 document x86 ISA level related breakage and workaround
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12133 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2021-02-13 02:26:13 +00:00
Xi Ruoyao
34fe7e07cd decorate usernames with <systemitem>
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12071 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-12-26 15:51:54 +00:00
Xi Ruoyao
17eb152e1a binutils-pass1: adjust timing sample to match the build command
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12032 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-08-20 08:27:42 +00:00
Xi Ruoyao
d9cdc3e9db temp glibc: /tools -> $LFS/tools
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11964 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-19 17:53:34 +00:00
Pierre Labastie
12fff1eb8d Slightly change the layout in part III, so that the preliminary material
appear separated. Minor rewrites for accounting for the new layout

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11949 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-17 20:50:25 +00:00
Pierre Labastie
d125a6bd0b Add forgotten "case" in glibc chapter 5
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11942 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-15 05:23:47 +00:00
Pierre Labastie
77d2cd8d43 - fix some gcc->GCC
- remove commented text in glibc (chap 5), and fix a directory location

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11934 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-13 08:55:55 +00:00
Pierre Labastie
26fec2772d Update sbu-du for cross2 branch
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11925 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-12 08:40:02 +00:00
Bruce Dubbs
6a156bab1b Mostly text updates in Chapter 8.
There are a couple of minor command changes.



git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11924 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-12 04:40:07 +00:00
Thomas Trepl
fb386e05f1 Rename package entities to be independent of chapter numbering
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11921 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-11 12:55:28 +00:00
Bruce Dubbs
79524a0c69 Text updates for cross2 Chapter 5
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11914 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-09 23:10:16 +00:00
Pierre Labastie
192c66815a Add a warning before installation of glibc-chapter5
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11907 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-08 20:42:12 +00:00
Pierre Labastie
81e0bc49dc Rewrite chapter 5 title and introduction
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11906 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-08 20:24:56 +00:00
Pierre Labastie
069c0ecc1a Remove unneeded files in chapter 5
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11900 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-08 07:49:58 +00:00
Pierre Labastie
784dc13f86 Fix a reference in toolchain notes
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11899 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-08 07:18:58 +00:00
Bruce Dubbs
fcc027677d Initial commit of alternative cross LFS
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11897 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-07 20:16:00 +00:00
Pierre Labastie
caca15ff94 Fixes due to the new layout
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11885 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-06-01 09:45:53 +00:00
Pierre Labastie
264dfd9e05 Update to upstream r11882
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11883 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-05-31 20:01:42 +00:00
Pierre Labastie
ae7f075dd6 Update to trunk r11877
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11878 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-05-30 18:22:47 +00:00
Pierre Labastie
f7ca699b41 merge trunk and add patch to gcc pass2
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11842 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-05-09 10:49:56 +00:00
Pierre Labastie
c911069f9a Move bison and flex to chroot, they do not need themselves for being built
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11838 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-05-06 13:04:34 +00:00
Pierre Labastie
69a8b2b7e4 Build tic on build host and use it to generate /usr/share/terminfo
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11836 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-05-06 12:59:54 +00:00
Pierre Labastie
0b63a37abe Prevent "make" from using guile from the build host
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11835 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-05-06 11:46:06 +00:00
Pierre Labastie
efcb393343 Make the new book
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11831 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-05-03 21:02:51 +00:00
Pierre Labastie
effe07a910 Fix circular deps between util-linux and eudev/systemd:
- build util-linux in chapter 5 for both books
- move eudev before util-linux in chapter 6
- make utils-linux libs and headers accessible to /usr in
  "Creating essential ..."
- not related, but forgotten at previous commit: make also libfl flex
  library accessible to /usr

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11817 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-04-19 14:45:08 +00:00
Pierre Labastie
924667ee54 Reinstate flex in chapter 5, for the sake on ar and ranlib.
This allows to reinstate bison's tests.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11816 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-04-19 14:06:50 +00:00
Pierre Labastie
c2863e6d25 Add remarks about .la files telling that they are potentially harmful
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11815 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-04-19 08:14:10 +00:00
Bruce Dubbs
df43be1530 Textual updates thanks to Kevin Buckley.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11800 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-03-29 20:04:31 +00:00
Bruce Dubbs
97af73804e Typo
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11799 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2020-03-28 16:48:44 +00:00