On 9 May 2010 18:00, Bruce Dubbs <bruce.du...@gmail.com> wrote:

>
> 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

 First "*and*" - it's emphasised.  Are you are using recent kde ?
Gtk-webkit doesn't do emphasis (looking at epiphany-2.28), gecko does
(italics in forefox-3.6.3plugin), lynx does (different colour).  So, I'm
reluctant to add '*' for emphasis in the text.

 I'm also reluctant to give a false impression that setting ABI is need on
*any* architecture, it's only an i?86 thing.  Yes, I know that we only
support x86, but I still feel that unqualified statements can spread
confusion.  I'm willing to concede the point on this, if that is the
consensus.

 Insetting the ABI=32 ./configure  looks a lot nicer.  I've put a revised
version there for this - boxing ('userinput') seems to work, and insets
the line, but the box is an extra line deep on my browsers.  /me misses
Manuel's advice.

 For the second note ( and still assuming I've understood the problem
correctly! ), this isn't strictly cross-compiling.  The reference in the
ticket shows there were no i486- tools.  It's "detuning" the i?86 build.
On glibc the book uses "-march=i486 -mtune=native" to build for i486.
We've had people building on one i?86 machine and trying to run the
binaries on lesser machines for as long as I've been using LFS.

 I'm happy to drop the second note if everyone wants to enforce
"build on the machine you will run on" throughout the book.

 Thanks for these comments,

-- 
After tragedy, and farce, "OMG poneys!"
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to