Hi, Thanks Chris: Thank you for your prompt reply.
Unfortunately, the reason why I'm using the latest version of Binutils is deu to the current wget-list: http://www.linuxfromscratch.org/lfs/view/development/wget-list On this list, binutils-2.23.1 is used http://ftp.gnu.org/gnu/binutils/binutils-2.23.1.tar.bz2 instead of binutils-2.22 . However, on the book, it's still using binutils-2.22 http://www.linuxfromscratch.org/lfs/view/stable/chapter05/binutils-pass1.html I did notice for binutils-2.22 pass 1, there is a patch before everything starts compiling. patch -Np1 -i ../binutils-2.22-build_fix-1.patch However, I've got no idea whether this patch for binutils-2.22 is also working for binutils-2.23.1 ? Anyway, now, my question is: *is the patch a must?* Why didn't I meet any error message even without patching binutils during binutils Pass 1? Thanks again. I do need your detailed explanation. Thank you very much again. Cheers Pei On Mon, Dec 17, 2012 at 3:15 AM, Chris Staub <ch...@beaker67.com> wrote: > On 12/17/2012 06:00 AM, JIA Pei wrote: > > > > Hi, all; > > > > Sorry to bug all of you again. > > I've successfully built > > Binutils 2.23.1 > > GCC 4.7,2 > > Linux-kernel 3.6.10 > > Glib 2.16.0 > > > > However, is it a must for me to proceed to the pass 2 of binutils and > gcc? > > Whatever is in the book is there for a reason. > > > > I'm now following "Pass 2 of Binutils " > > > http://www.linuxfromscratch.org/lfs/view/stable/chapter05/binutils-pass2.html > > > > the following step > > /CC=$LFS_TGT-gcc \/ > > /AR=$LFS_TGT-ar \/ > > /RANLIB=$LFS_TGT-ranlib \/ > > /../binutils-2.22/configure \/ > > / --prefix=/tools \/ > > / --disable-nls \/ > > / --with-lib-path=/tools/lib/ > > > > brings me error messages: > > > > /lfs@peijia-GA-870A-UD3:/mnt/lfs/sources/binutils-build$ CC=$LFS_TGT-gcc > > \/ > > /> AR=$LFS_TGT-ar \/ > > /> RANLIB=$LFS_TGT-ranlib \/ > > /> ../binutils-2.23.1/configure \/ > > /> --prefix=/tools \/ > > /> --disable-nls \/ > > /> --with-lib-path=/tools/lib/ > > /checking build system type... i686-pc-linux-gnu/ > > /checking host system type... i686-pc-linux-gnu/ > > /checking target system type... i686-pc-linux-gnu/ > > /checking for a BSD-compatible install... /usr/bin/install -c/ > > /checking whether ln works... yes/ > > /checking whether ln -s works... yes/ > > /checking for a sed that does not truncate output... /bin/sed/ > > /checking for gawk... gawk/ > > /checking for gcc... i686-lfs-linux-gnu-gcc/ > > /checking for C compiler default output file name... a.out/ > > /*checking whether the C compiler works... configure: error: in > > `/mnt/lfs/sources/binutils-build':*/ > > /*configure: error: cannot run C compiled programs.*/ > > /If you meant to cross compile, use `--host'./ > > /See `config.log' for more details./ > > > > > > So, my question now is: is Pass 2 of binutils a must?? > > You are clearly having great difficulty. For one thing, you claim you > are following the stable book but you are using versions from the latest > development, and obviously that is not working well, and of course that > doesn't take into account whatever other deviations from the book that > you might be doing that you haven't mentioned. Solution: rm -rf > $LFS/tools, go back to page 1, actually *read* every word in each page > of the book, not just the commands (as most of your questions so far > have in fact been answered right in the book itself), and do exactly as > instructed, including the correct package versions. > -- > http://linuxfromscratch.org/mailman/listinfo/lfs-support > FAQ: http://www.linuxfromscratch.org/lfs/faq.html > Unsubscribe: See the above information page > -- Pei JIA Email: jp4w...@gmail.com cell: +1 604-362-5816 Welcome to Vision Open http://www.visionopen.com
-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page