[lfs-dev] Multilib patch: Chapter 6 GMP instructions

Kevin Buckley kevin.m.buckley at gmail.com
Fri Jan 11 16:29:48 PST 2019


Quick one on this part of the patch.

The usual GMP instructions have two notes

======================
If you are building for 32-bit x86, but you have a CPU which is
capable of running 64-bit code and you have specified CFLAGS in the
environment, the configure script will attempt to configure for
64-bits and fail. Avoid this by invoking the configure command below
with

ABI=32 ./configure ...
======================

and

======================
The default settings of GMP produce libraries optimized for the host
processor. If libraries suitable for processors less capable than the
host's CPU are desired, generic libraries can be created by running
the following:

cp -v configfsf.guess config.guess
cp -v configfsf.sub   config.sub
========================

however, in the 32-bit and x32-bit sections, we see that the configure command
has the ABI= addition, as one might expect, but also that the copying of the
config,guess and config.sub  are "in-line",

========================
Generic libraries can be created by running the following:

cp -v configfsf.guess config.guess
cp -v configfsf.sub   config.sub
========================

suggesting that they are needed for both 32-bit builds.

Is that they case ?

Or should those two stanzas just be a "Note", if one is not building 32-bit
for use on the "build" processor ?

Kevin


More information about the lfs-dev mailing list