Ken Moffat wrote:
> Moving this here from trac. When I put the ABI=32 note in, I
> screwed up. But it's only 2 weeks ago that anyone noticed.
>
> In the meantime, building for x86_64 is now supported by LFS, so
> the current note could also be misinterpreted.
>
> There is a second issue on the ticket - if I've understood correctly,
> this only happens when you build on one machine to run on a
> different (probably, "lesser") machine. If that is correct, I think
> it's worth noting even though we don't necessarily support this.
>
> I've taken a first stab at rewording and expanding the note,
> but I'd appreciate some review. The page is at
> http://www.linuxfromscratch.org/~ken/tmp/chapter06/gmp.html
> (only that page, plus images and stylesheets so that it renders).
The substance looks pretty good. How about some minor changes:
If you are building with a 32-bit kernel, 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
ABI=32 ./configure ...
If you are building on one machine but intending to run on another
machine (cross compiling), be aware that gmp will optimize itself for
the local machine. For example, if you build on a recent i686 machine
the binaries will contain instructions invalid for an i486. LFS does not
directly support cross-compilation, but CLFS does.
-- Bruce
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page