On 09/01/2017 11:04 AM, Paul Rogers wrote:
Being able to use my (now old) i7 to build (B)LFS has made this much
faster, but seems to have tripped me up.  I was trying to build an i686
LFS, and thought it was enough to use an older i686-made OS and
toolchain.  Works on Conroe targets, but when I actually tried a
Pentium-3 the kernel panicked, and when trying to rebuild the kernel
with a chroot from a real i686 OS and toolchain, make kept segfaulting.

In spite of my package management wrappers, I always have followed the
book closely, but the book presumes one will run on the same system, not
a lower-grade member of the family.  I'm guessing I'll need to use
--host=i686-pc-linux-gnu throughout Ch6, and perhaps even a similar
--target for binutils, GMP, MPFR, MPC, & gcc?  Is that right?

Used to be able to do various uname hacks to get around it. If kernel is a real i686 kernel, something really simple like this:

mv /bin/uname /bin/uname.orig
cat > /bin/uname << "EOF"
#!/bin/bash
# Begin /bin/uname
/bin/uname.orig $@ | sed 's@x86_64@i686@g'
# End /bin/uname
EOF
chmod 755 /bin/uname

But with that said, I've no idea whether it will actually work. It used to. Also would probably want to use march and mtune flags and probably need to use config.fsf for gmp or explicitly set the target for that one.

--DJ

--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to