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 ...
- 06-28-2007 #1
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)
I did all this, the binutils bzip2 is uncompressec in $LFS/sourcesCode:mkdir -v ../binutils-build cd ../binutils-build
Works fine...Code:../binutils-2.16.1/configure --prefix=/tools --disable-nls
make and make install all work fine then I come to make clean part in which the book says the following:
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: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 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.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$
Don't find a similar problem anywhere...someone who can perhaps help
?
- 06-28-2007 #2
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
- 06-28-2007 #3
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


Reply With Quote