Commit Graph

3121 Commits

Author SHA1 Message Date
Thomas Trepl (Moody)
5f3a32820a Automatic merge of trunk into multilib 2022-11-04 08:03:33 +01:00
David Bryant
6dff9ef949 Edit English idiom. punctuation, etc., throughout chapter 6. 2022-11-03 19:29:02 -05:00
Thomas Trepl (Moody)
44e2a0487d Automatic merge of trunk into multilib 2022-10-10 00:30:11 +02:00
Xi Ruoyao
68588615e6
temp bash: fix "support/config.guess: Permission denied"
In bash-5.2 tarball config.guess is not executable, so we need to run
the script with an explicit "sh".
2022-10-09 13:35:48 +08:00
Thomas Trepl (Moody)
1835fca016 Adopt PIE/SSP changes 2022-09-13 10:07:14 +02:00
Thomas Trepl (Moody)
3c20ad9381 Automatic merge of trunk into multilib 2022-09-10 00:30:10 +02:00
Pierre Labastie
0611f706d5 Use default-pie and default-ssp flags in gcc
Committing only the commands for now, so that others can test the
build. TODO:
- add command explanations
- add changelog
- comment on failing tests in binutils and gcc
2022-09-09 16:15:06 +02:00
Thomas Trepl (Moody)
f867843417 Automatic merge of trunk into multilib 2022-09-01 10:54:54 +02:00
Xi Ruoyao
baecd49c48
gcc-pass2: remove unnecessary --enable-initfini-array option
Forgot to remove this one when I removed it in pass 1...

Reference: https://gcc.gnu.org/r12-1328
2022-09-01 14:04:34 +08:00
Thomas Trepl (Moody)
192dda3521 Automatic merge of trunk into multilib 2022-08-23 21:34:26 +02:00
Bruce Dubbs
f2af13d7a0 Intermediate update prior to lfs-11.2-rc1 2022-08-20 10:35:01 -05:00
Thomas Trepl (Moody)
c84195d1f8 Automatic merge of trunk into multilib 2022-08-20 05:45:09 +02:00
Thomas Trepl (Moody)
8bde866e85 Fix binutils instructions 2022-08-19 18:55:20 +02:00
Xi Ruoyao
6099a47149
Remove libtool archive (.la) files in Chapter 5 and 6
They are really harmful.  In Binutils pass 2, libstdc++.la caused the
building system to use host /usr/lib/libstdc++.so for gprofng.  We now
has disabled gprofng for pass 2, but the similar issue also exists in
GCC pass 2.  In a normal LFS build, the building system silently uses
/usr/lib/libstdc++.so (I guess it does not blow up simply because some
blind luck); in a real cross build (x86 -> ARM for example) the build
will fail.

Remove the .la files to fix this issue.  Instead of only modifying
clfs-ng, it makes more sense to apply the change for trunk: though
the build does not fail, using host library is still a contamination.
2022-08-19 12:41:48 +08:00
Thomas Trepl (Moody)
3ebe8768cc Merge upstream 2022-08-07 11:00:44 +02:00
Bruce Dubbs
1b11115cd2 Package updates.
Update to binutils-2.38.
Update to util-linux-2.38.1.
Update to Python3-3.10.6.
Update to glibc-2.36.
2022-08-06 17:40:17 -05:00
Thomas Trepl (Moody)
f96a6d4272 Adopt changes in ncurses to m32,mx32 instructions 2022-06-29 22:29:02 +02:00
Thomas Trepl (Moody)
0160d68e19 Automatic merge of trunk into multilib 2022-06-29 22:20:16 +02:00
Pierre Labastie
f8b27abcda Generate shared C++ bindings for ncurses
Presently we let the build system generate static C++ bindings, and
then we remove them. Note that we could also prevent generating
any C++ binding, since nothing in LFS/BLFS use them, but it seems to
me that generating the shared ones is closer to what is done for
other packages.
2022-06-29 14:08:29 +02:00
Thomas Trepl (Moody)
e8d4ea4b97 Automatic merge of trunk into multilib 2022-05-28 05:45:10 +02:00
Xi Ruoyao
f81a8a4a3c
fix command for removing libncurses++w.a
What was I doing ?!
2022-05-27 21:50:53 +08:00
Thomas Trepl (Moody)
77f8d5758f Automatic merge of trunk into multilib 2022-05-27 05:45:09 +02:00
Xi Ruoyao
2bb813a1e8
ncurses: remove libncurses++w.a from temp ncurses 2022-05-26 19:30:40 +08:00
Thomas Trepl (Moody)
3a72ffa858 Adopt upstream changes 2022-05-11 08:56:48 +02:00
Xi Ruoyao
d70e621d8e
gcc-12: remove unneeded sed for PR100017 in pass 2
Reference: https://gcc.gnu.org/r12-6406
2022-05-06 21:13:27 +08:00
Thomas Trepl (Moody)
85acfcb0c8 Adopt changes to multilib instrustions. ML CURRENTLY BROKEN 2022-03-19 08:56:37 +01:00
Thomas Trepl (Moody)
02c702c62e Automatic merge of trunk into multilib 2022-03-17 15:30:05 +01:00
Thomas Trepl (Moody)
d9bec1e96a Automatic merge of trunk into multilib 2022-03-17 15:28:37 +01:00
Bruce Dubbs
c9629e0347 Typo 2022-03-06 15:37:02 -06:00
Xi Ruoyao
3bb463d33d
gcc-pass2: document *_FOR_TARGET parameters 2022-03-02 18:02:07 +08:00
Xi Ruoyao
8e0f8a9a52
gcc pass2: use --target=$LFS_TGT instead of many {C,CXX}_FOR_TARGET
There is also a "GCC_FOR_TARGET" which was not set correctly.  The
--target=$LFS_TGT parameter can set up all of these variables as we
expected.
2022-03-02 18:00:10 +08:00
Xi Ruoyao
459d4936ae
fix GCC PR100017 and enable libstdc++ for pass 2
This is the issue preventing us from cross-compiling libstdc++ in
Chapter 6.  By fixing this issue we can remove a seperate pass 2 for
libstdc++ and simplify the instruction.

The upstream fix will be released in 11.3 and 12.0, so we can remove the
first sed upgrading gcc next time.
2022-02-27 23:36:55 +08:00
Thomas Trepl (Moody)
bf8012e6d5 Automatic merge of trunk into multilib 2022-02-11 05:45:10 +01:00
Xi Ruoyao
426913ea08
binutils-pass2: workaround "binaries link to host libraries" issue
A very old libtool copy (2009-11-29) is shipped in binutils tarball.  It
does not support sysroot, so the cross-built binutils binaries may link
to libraries from the host distro, if certain libraries are available.

The ideal solution should be updating libtool, as libtool-2.4.6 (in LFS)
has sysroot support.  However, updating libtool for binutils is not
trivial: it would require to rerun autoconf and binutils building system
sticks to autoconf-2.69.  Another issue is the sysroot support for
libtool has introduced a configure option "--with-sysroot", which
conflicts with an already existing option with the same name in
GCC and binutils building system (we are using the GCC/binutils version
of --with-sysroot in chapter 5).

GCC building system has --with-build-sysroot (we are using this for GCC
pass 2) for this issue.  Binutils copied GCC building system, but it
does not respect --with-build-sysroot.

So for now we just edit libtool code to prevent "-L/usr/lib" in
$LFS_TGT_gcc command line.  It should fix the issue about host libiberty
(reported in #lfs-support) as well, but it still need to be confirmed by
someone having such a host.

Tested with a jhalfs run on LFS.
2022-02-10 21:05:33 +08:00
Thomas Trepl (Moody)
64cae89ff8 Automatic merge of trunk into multilib 2022-02-10 05:45:10 +01:00
Bruce Dubbs
9c4ff70edf Package updates.
Update to bc-5.2.2.
Update to linux-5.16.8.
Update to binutils-2.38. Requires adding zlib to Chapter 6.
2022-02-09 20:54:15 -06:00
Thomas Trepl (Moody)
3e09569e0d Automatic merge of trunk into multilib 2022-02-05 05:45:10 +01: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
Thomas Trepl (Moody)
c4595c3bd1 Fix usage of ISL in gcc 2022-01-20 23:31:05 +01:00
Thomas Trepl (Moody)
af974a9c05 Do not force to create pc files in ch6 for mx32/m32 2022-01-08 18:18:24 +01:00
Thomas Trepl (Moody)
dbcb9f4049 Automatic merge of trunk into multilib 2021-12-18 05:45:09 +01:00
Xi Ruoyao
e0f124e741
chapter 6 ncurses: disable stripping (invoking host strip) 2021-12-18 01:32:45 +08:00
Thomas Trepl (Moody)
4a74a6fd42 Automatic merge of trunk into multilib 2021-11-03 05:45:09 +01:00
Pierre Labastie
747287d8ad gawk, chap 6: now config.guess is in build-aux 2021-11-02 14:22:30 +01:00
Thomas Trepl (Moody)
716db1f765 Merge upstream 2021-09-20 09:37:34 +02:00
Pierre Labastie
2967da3223 Remove spaces at end o lines - chapter06 2021-09-07 22:41:43 +02:00
Bruce Dubbs
6851fc8b2f Spacing 2021-09-04 10:48:46 -05:00
Thomas Trepl (Moody)
00e8b5325a Merge upstream changes 2021-07-28 15:43:47 +02:00
Xi Ruoyao
8416b1f926
Revert coreutils library location change
libstdbuf.so is a LD_PRELOAD hook, instead of a library which would be
used at link time.  So let's keep the upstream default.
2021-07-28 18:48:09 +08:00
Thomas Trepl (Moody)
64a306d76a Automatic merge of trunk into multilib 2021-07-27 21:29:34 +02:00