[lfs] 02/02: pkgmgt: Note that rebuilding GMP and libffi is not enough to convert a complete LFS system to be used for a less capable CPU

"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.book
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository lfs.

commit 6d5f106c11ac7e31f6cfe6800dd0ad94ddeebfcf
Author: Xi Ruoyao <[email protected]>
AuthorDate: Sat Sep 27 00:52:50 2025 +0800

    pkgmgt: Note that rebuilding GMP and libffi is not enough to convert a complete LFS system to be used for a less capable CPU
---
 chapter08/pkgmgt.xml | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/chapter08/pkgmgt.xml b/chapter08/pkgmgt.xml
index 3640b519d..daa1040b5 100644
--- a/chapter08/pkgmgt.xml
+++ b/chapter08/pkgmgt.xml
@@ -391,7 +391,16 @@ make DESTDIR=/usr/pkg/libfoo/1.1 install</userinput></screen>
     overriding the architecture-specific optimization to produce libraries
     suitable for both the host system and the system(s) where you'll deploy
     the LFS system.  Otherwise you'll get <computeroutput>Illegal
-    Instruction</computeroutput> errors running LFS.</para></important>
+    Instruction</computeroutput> errors running LFS.</para>
+
+    <para>The GMP build system stores the architecture-specific optimization
+    option used to build GMP into <filename>gmp.h</filename>, and the build
+    system of some package using GMP can read it from the header and use it
+    when building the package itself.  At least the MPFR build system is
+    known to do so.  Thus simply rebuilding GMP on a complete LFS system
+    is not enough: you'll need to recompile MPFR and maybe other packages
+    using GMP if you want to <quote>convert</quote> a complete LFS system
+    to be used for a different CPU.</para></important>
 
     <para>Finally, the new system has to be made bootable via <xref
     linkend="ch-bootable-grub"/>.</para>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.