Find the answer to your Linux question:
Results 1 to 3 of 3
Maybe Ubuntu Feisty is not a good base system, I don't know. The book says to do this with binutils, (which is the first package to compile) Code: mkdir -v ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User netstrider's Avatar
    Join Date
    Jul 2005
    Location
    South Africa
    Posts
    478

    A little LFS problem...


    Maybe Ubuntu Feisty is not a good base system, I don't know. The book says to do this with binutils, (which is the first package to compile)

    Code:
    mkdir -v ../binutils-build
    cd ../binutils-build
    I did all this, the binutils bzip2 is uncompressec in $LFS/sources

    Code:
    ../binutils-2.16.1/configure --prefix=/tools --disable-nls
    Works fine...
    make and make install all work fine then I come to make clean part in which the book says the following:
    Next, prepare the linker for the “Adjusting” phase later on:
    Code:
    make -C ld clean
    make -C ld LIB_PATH=/tools/lib
    cp -v ld/ld-new /tools/bin
    I do the first line of make -C ld clean and then as soon as I get to the second line it runs it and ends like this:
    Code:
    /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lc
    collect2: ld returned 1 exit status
    make[2]: *** [ld-new] Error 1
    make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/ld'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/ld'
    make: *** [all-recursive-am] Error 2
    make: Leaving directory `/mnt/lfs/sources/binutils-build/ld'
    lfs@illianoir:/mnt/lfs/sources/binutils-build$
    I ensured that my version of binutils is not higher than 2.16.1 (degraded it from 2.17.5 actually) because the book warns against versions higher than 2.16.1.
    Don't find a similar problem anywhere...someone who can perhaps help ?

  2. #2
    Linux User netstrider's Avatar
    Join Date
    Jul 2005
    Location
    South Africa
    Posts
    478
    OK I found the problem, it was missing libc.so file under $LFS/tools/lib/ so I copied that from /usr/lib/ (as the version of GCC I have on my system is the same one I am to compile for LFS). That solved the problem

  3. #3
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    Good luck with LFS, always makes good practice
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •