Re: [lfs-support] Is it a must to separate Binutils and GCC into Pass 1 and Pass 2?

2012-12-19 Thread JIA Pei
Hi, Chris: Unfortunately, I spent another 4 hours to rebuild everything from scratch, with glibc patched this time. Still, the same. I still obtained the following error message: */mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld:

Re: [lfs-support] Is it a must to separate Binutils and GCC into Pass 1 and Pass 2?

2012-12-19 Thread JIA Pei
Problem solved. It seems I need to do *reconfigration *after setting CFLAGS=-L/tools/lib -lpthread, and then proceed to *make* . It's all about the ./configure. Better add one command *$ CFLAGS=-L/tools/lib -lpthread* before *./configure --prefix=/tools* in the user manual. cheers Pei On Wed,

Re: [lfs-support] Is it a must to separate Binutils and GCC into Pass 1 and Pass 2?

2012-12-19 Thread Bruce Dubbs
JIA Pei wrote: Problem solved. It seems I need to do *reconfigration *after setting CFLAGS=-L/tools/lib -lpthread, and then proceed to *make* . It's all about the ./configure. Better add one command *$ CFLAGS=-L/tools/lib -lpthread* before *./configure --prefix=/tools* in the user

Re: [lfs-support] Is it a must to separate Binutils and GCC into Pass 1 and Pass 2?

2012-12-18 Thread Simon Geard
On Mon, 2012-12-17 at 17:01 -0800, JIA Pei wrote: 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 However, on the book, it's still using binutils-2.22

Re: [lfs-support] Is it a must to separate Binutils and GCC into Pass 1 and Pass 2?

2012-12-18 Thread Eric Hearn
Restart building all of your tools, pay attention to the cp command, it requires admin privileges. On Tue, Dec 18, 2012 at 7:22 PM, Simon Geard delga...@ihug.co.nz wrote: On Mon, 2012-12-17 at 17:01 -0800, JIA Pei wrote: Unfortunately, the reason why I'm using the latest version of Binutils is

Re: [lfs-support] Is it a must to separate Binutils and GCC into Pass 1 and Pass 2?

2012-12-18 Thread JIA Pei
Hi, Simon: The reason why I'm doing that (use binutils-2.23.1 instead of binutils-2.22) is I don't want to 100% strictly follow LFS book, so that I might be able to understand how to build my own Linux deeper. And, even now, I've got no idea why we need to patch binutils ?? Because without

Re: [lfs-support] Is it a must to separate Binutils and GCC into Pass 1 and Pass 2?

2012-12-18 Thread Chris Staub
On 12/18/2012 07:51 AM, JIA Pei wrote: Hi, Simon: The reason why I'm doing that (use binutils-2.23.1 instead of binutils-2.22) is I don't want to 100% strictly follow LFS book, so that I might be able to understand how to build my own Linux deeper. And, even now, I've got no idea why we

Re: [lfs-support] Is it a must to separate Binutils and GCC into Pass 1 and Pass 2?

2012-12-18 Thread JIA Pei
Hi, Thank you Chris. Thanks for your reply. I now understand a bit more about why we need Binutils Pass 1 and Pass 2. However, I still prefer using Binutils 2.23.1, does that mean I'll have to create my own patch for Binutils-2.23.1?? Are you planning to afford the patches to all newest needed

Re: [lfs-support] Is it a must to separate Binutils and GCC into Pass 1 and Pass 2?

2012-12-18 Thread Bruce Dubbs
JIA Pei wrote: Hi, Thank you Chris. Thanks for your reply. I now understand a bit more about why we need Binutils Pass 1 and Pass 2. However, I still prefer using Binutils 2.23.1, does that mean I'll have to create my own patch for Binutils-2.23.1?? Are you planning to afford the patches to

Re: [lfs-support] Is it a must to separate Binutils and GCC into Pass 1 and Pass 2?

2012-12-18 Thread JIA Pei
Thank you so much Bruce... I proceed to expect 5.45 now But, I got two test fails as follows. Is this normal? * expect-1.8b default remove null behavior FAILED* * Contents of test case:* * * *spawn cat $filename* *expect ab* *set rc [regexp $expect_out(buffer) ab]* *

Re: [lfs-support] Is it a must to separate Binutils and GCC into Pass 1 and Pass 2?

2012-12-18 Thread Bruce Dubbs
JIA Pei wrote: Thank you so much Bruce... I proceed to expect 5.45 now But, I got two test fails as follows. Is this normal? We do not recommend running tests in Chapter 5. They often depend on the host system and we don't know what the arbitrary user has as a host. You are on your own

Re: [lfs-support] Is it a must to separate Binutils and GCC into Pass 1 and Pass 2?

2012-12-18 Thread JIA Pei
Now, fail to build check-0.9.9 ... The error message is: */mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO /tools/lib/libpthread.so.0 so try adding it to the linker command line*

Re: [lfs-support] Is it a must to separate Binutils and GCC into Pass 1 and Pass 2?

2012-12-18 Thread Chris Staub
On 12/18/2012 09:23 PM, JIA Pei wrote: Now, fail to build check-0.9.9 ... The error message is: //mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO /tools/lib/libpthread.so.0 so try adding it to the

Re: [lfs-support] Is it a must to separate Binutils and GCC into Pass 1 and Pass 2?

2012-12-18 Thread Chris Staub
On 12/18/2012 09:07 PM, JIA Pei wrote: Thank you so much Bruce... I proceed to expect 5.45 now But, I got two test fails as follows. Is this normal? If you had read the book like you're expected to, you would already know the answer to this. If you can't be bothered to read it, quit

[lfs-support] Is it a must to separate Binutils and GCC into Pass 1 and Pass 2?

2012-12-17 Thread JIA Pei
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? I'm now following Pass 2 of Binutils

Re: [lfs-support] Is it a must to separate Binutils and GCC into Pass 1 and Pass 2?

2012-12-17 Thread Chris Staub
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

Re: [lfs-support] Is it a must to separate Binutils and GCC into Pass 1 and Pass 2?

2012-12-17 Thread JIA Pei
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