On Tue, Apr 24, 2007 at 12:42:30PM -0500, Clyde Forrester wrote: > I apologize in advance for some newbishness. > I am attempting LFS 6.2 > I am at 5.4 GCC-4.0.3 - Pass 1 > My computer is a homebrew with an AMD 64 x2 > I am doing this in an Ubuntu 6.06 64-bit environment > > In the make bootstrap step, it does a whole slew of stuff, > eventually ending in 4 varieties of > skipping incompatible /usr/lib/[foo] when searching for -lc > and then declaring that it cannot find -lc > > Is this a known problem? > Should I be using some 86-64 GCC tarball from the get-go? > Is this more properly a cross-compiling problem? > I wouldn't think so because the target machine is > the machine I'm compiling on. > > Clyde Forrester > Hi Clyde - I think you are slightly confused about *what* you are trying to build. The LFS book only supports building x86 (32-bit) systems from similar hosts.
If you want to build a 32-bit LFS from a 64-bit system, it _is_ cross-compiling. You can follow the CLFS book to do that. Equally, you can follow CLFS to build multilib or pure64. Alternatively, if your ubuntu is a *full* multilib environment you may be able to build 32-bit LFS using 'linux32 /bin/bash' to open a 32-bit environment. You would need _all_ the basic libraries, but it seems you are at a minimum missing a 32-bit libc. For a first LFS, it will probably be easier to use a different host. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
