On Thu, Jan 25, 2007 at 09:26:23PM +0000, Lalith Kumar Tenneti wrote: > I am still a novice on Linux > > I am working on chapter 5.6.1. > > I am working on ubuntu 6.10 host > > Let me give some background: I am trying to develop a CLFS fro a pentium-M > PrPMC board on a Pentium4 desktop. I have 2.6.18 kernel, and rest(Binutils, > gcc and glibc) are same as in the book. I could make it work till > chapter5.7.1 glibc configure. make failed with threading errors as I was > building for i386 ( I wanted pentium-M or i686 platform). > > So, I went back, cleaned up everything and started from scratch and on > chapter 5.6.1 installing GCC 4.1.1. The only stupid thing I did was to try > to install some 686 kernel headers which failed because of some > dependencies. > I'm not sure you've fully understood how the book works - the only headers you need are in the book, and missing dependencies normally mean you need to add something to the host system (e.g. 'bison' is commonly missing on minimal ubuntu installs). So, I'm puzzled by what you mean by i686 headers - within the kernel headers it's all just x86. Also, pentium-M and p4 are not that different from each other, at least from the programming point of view.
> configure command fails with the following report: > > loading cache ./config.cache > checking host system type... i686-pc-linux-gnu > checking target system type... i686-pc-linux-gnu > checking build system type... i686-pc-linux-gnu You aren't cross-compiling! Please re-read the beginning of the book, particularly section 5.3, Build Variables. > checking for a BSD compatible install... /usr/bin/install -c > checking whether ln works... yes > checking whether ln -s works... yes > checking for gcc... gcc > checking whether the C compiler (gcc ) works... no > configure: error: installation or configuration problem: C compiler cannot > create executables. > > HERE is the CONFIG.log output: > > configure:1825: checking for gcc > configure:1938: checking whether the C compiler (gcc ) works > configure:1954: gcc -o conftest conftest.c 1>&5 > /home/lalith/airtegrity/video-codec/tools/bin/ld: warning: ld-linux.so.2, > needed by /lib/libc.so.6, not found (try using -rpath or -rpath-link) > /lib/libc.so.6: undefined reference to [EMAIL PROTECTED]' The version of ld which you built in the previous step doesn't seem to know where ld-linux is. I'm not a toolchain expert, but I think you need to start chapter 5 again - make sure CLS_HOST and CLFS_TARGET are set correctly, and that the /cross-tools and /tools symlinks point to the right places. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce _______________________________________________ Clfs-support mailing list [email protected] http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-support
