On 8/30/07, Andy Bennett <[EMAIL PROTECTED]> wrote: > Hi, > > > I've been trawling the mailing list archives re compiling for an i486 > > without much success. > > I'm trying to build LFS 6.2 but I've made a few changes as outlined below. > > > > I'm using Fedora Core 6 (2.6.18-1.2798.fc6) on an Intel Xeon @ 3GHz as > > the host. > > I've got CFLAGS=CXXFLAGS=-O2 -march=i486 > > > > I've done chapt 5 and seem to have an i686-pc-linux-gnu toolchain in /tools > > > > I've got to chapter 6.9 where I'm trying to build glibc-2.3.6. If I > > follow the instructions I get something that only fails the posix/annexc > > test as warned in the book. > > > > If I add --host=i486-pc-linux-gnu to the configure command then lots of > > tests fail at the make check stage and it doesn't generate the timezone > > data in /usr/share/zoneinfo. > > > > The cross compiling hint doesn't seem to be available anymore and I'm > > not sure if I should be using CLFS. My aim is to build a basic system > > that I can put on all of my boxes; i486 and above. All of the mailing > > list archive stuff seems to relate to older, less rigorous, versions of > > the book. > > > > I've tried setting -mcpu=i486 in CFLAGS and CXXFLAGS but the glibc build > > whinges that it's deprecated and produces the same errors as before. > > > > I have gcc 4.0.3. > > Is it still the case that gcc will produce i386 code by default? Does > > this apply to the glibc build system?
I honestly have never tried it and am going to show my ignorance here, but I would try passing --with-arch=i486 to all the gcc builds. I believe that will make gcc compile 486 code by default. This is actually needed on very new glibc as it won't build on 386 anymore. -- Dan -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
