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:
check_thread_stress-check_thread_stress.o: undefined reference to symbol
'pthread_create@@GLIBC_2.1'*
*/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*
*/tools/lib/libpthread.so.0: could not read symbols: Invalid operation*
*collect2: error: ld returned 1 exit status*
*make[2]: *** [check_thread_stress] Error 1*
*make[2]: Leaving directory `/mnt/lfs/sources/check-0.9.9/tests'*
*make[1]: *** [all-recursive] Error 1*
*make[1]: Leaving directory `/mnt/lfs/sources/check-0.9.9'*
*make: *** [all] Error 2*


Can you please just give me some hint? I just want to save some time...
Thank you..
Just let me know which page I need to read again?
BTW, I promise, I read  every details of
http://www.linuxfromscratch.org/lfs/view/development/index.html


Thanks again...


Best Regards
Pei




On Tue, Dec 18, 2012 at 7:14 PM, Chris Staub ch...@beaker67.com wrote:

 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 wasting
 time here and figure it all out yourself.
 --
 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


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, Dec 19, 2012 at 1:55 AM, JIA Pei jp4w...@gmail.com wrote:


 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:
 check_thread_stress-check_thread_stress.o: undefined reference to symbol
 'pthread_create@@GLIBC_2.1'*
 */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*
 */tools/lib/libpthread.so.0: could not read symbols: Invalid operation*
 *collect2: error: ld returned 1 exit status*
 *make[2]: *** [check_thread_stress] Error 1*
 *make[2]: Leaving directory `/mnt/lfs/sources/check-0.9.9/tests'*
 *make[1]: *** [all-recursive] Error 1*
 *make[1]: Leaving directory `/mnt/lfs/sources/check-0.9.9'*
 *make: *** [all] Error 2*


 Can you please just give me some hint? I just want to save some time...
 Thank you..
 Just let me know which page I need to read again?
 BTW, I promise, I read  every details of
 http://www.linuxfromscratch.org/lfs/view/development/index.html


 Thanks again...


 Best Regards
 Pei




 On Tue, Dec 18, 2012 at 7:14 PM, Chris Staub ch...@beaker67.com wrote:

 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 wasting
 time here and figure it all out yourself.
 --
 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




-- 

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


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 manual.

Reread Section 4.6.  The tests in Chapter 5 depend on the host.  You are 
on your own when running tests in Chapter 5.

That said, the existing checks, using the book's procedures all pass on 
an LFS system.

   -- Bruce

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


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
 http://www.linuxfromscratch.org/lfs/view/stable/chapter05/binutils-pass1.html

You're mixing the stable version of the book, with the download list
from the development version. Why are you doing that?

Simon.



signature.asc
Description: This is a digitally signed message part
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


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 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
 http://www.linuxfromscratch.org/lfs/view/stable/chapter05/binutils-pass1.html

 You're mixing the stable version of the book, with the download list
 from the development version. Why are you doing that?

 Simon.


 --
 http://linuxfromscratch.org/mailman/listinfo/lfs-support
 FAQ: http://www.linuxfromscratch.org/lfs/faq.html
 Unsubscribe: See the above information page

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


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 patching binutils, I'm still able to pass BinUtils Pass
1


Any further suggestions please?

Cheers
Pei






On Tue, Dec 18, 2012 at 2:22 AM, 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 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
 
 http://www.linuxfromscratch.org/lfs/view/stable/chapter05/binutils-pass1.html

 You're mixing the stable version of the book, with the download list
 from the development version. Why are you doing that?

 Simon.


 --
 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


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 need to patch binutils ??
 Because without patching binutils, I'm still able to pass BinUtils Pass
 1

The book itself quite clearly explains what the patch does. If you 
*really* want to learn then start by, for example, reading the patch 
itself to see how exactly it works.

However, since you still felt to need to ask, for example, if 
Binutils/GCC Pass 2 was necessary, despite the fact that the build 
process is thoroughly explained, it appears you aren't really making 
much of an effort to read the information that's already there. If you 
really do want to learn start off by - as I've said to you at least 
twice before - actually reading all the text in the book.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


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 packages?


Thanks again.


Merry Christmas ^_^
Pei



On Tue, Dec 18, 2012 at 5:04 AM, Chris Staub ch...@beaker67.com wrote:

 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 need to patch binutils ??
  Because without patching binutils, I'm still able to pass BinUtils Pass
  1

 The book itself quite clearly explains what the patch does. If you
 *really* want to learn then start by, for example, reading the patch
 itself to see how exactly it works.

 However, since you still felt to need to ask, for example, if
 Binutils/GCC Pass 2 was necessary, despite the fact that the build
 process is thoroughly explained, it appears you aren't really making
 much of an effort to read the information that's already there. If you
 really do want to learn start off by - as I've said to you at least
 twice before - actually reading all the text in the book.
 --
 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


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 all newest needed packages?

Just use the development book if you want to use the latest packages.

http://www.linuxfromscratch.org/lfs/view/development/

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


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]*
*wait*
*set rc*
*
*
* Result was:*
*0*
* Result should have been (exact matching):*
*1*
* expect-1.8b FAILED*
*
*
*
*
*
*
* expect-1.9 match null inline FAILED*
* Contents of test case:*
*
*
*spawn cat $filename*
*remove_nulls 0*
*expect a\ub*
*set rc [regexp $expect_out(buffer) a\ub]*
*close*
*wait*
*set rc*
*
*
* Result was:*
*0*
* Result should have been (exact matching):*
*1*
* expect-1.9 FAILED*
*
*
*logfile.test*
*via sendvia send_uservia send_stdoutvia send_ttypid.test*
*send.test*
*spawn.test*
*stty.test*
*all.tcl:Total   29  Passed  27  Skipped 0   Failed  2*
*Sourced 0 Test Files.*
*Files with failing tests: expect.test*




Cheers
Pei





On Tue, Dec 18, 2012 at 1:14 PM, Bruce Dubbs bruce.du...@gmail.com wrote:

 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 all newest needed packages?

 Just use the development book if you want to use the latest packages.

 http://www.linuxfromscratch.org/lfs/view/development/

-- Bruce
 --
 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


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 for tests in Chapter 5.

   -- Bruce

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


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*
*/tools/lib/libpthread.so.0: could not read symbols: Invalid operation*
*collect2: error: ld returned 1 exit status*
*make[2]: *** [check_thread_stress] Error 1*
*make[2]: Leaving directory `/mnt/lfs/sources/check-0.9.9/tests'*
*make[1]: *** [all-recursive] Error 1*
*make[1]: Leaving directory `/mnt/lfs/sources/check-0.9.9'*
*make: *** [all] Error 2*


I tried to re-configure it as mentioned in
http://comments.gmane.org/gmane.linux.lfs.support/35698
namely:
*$ CFLAGS=-L/tools/lib -lpthread*
*$ ./configure --prefix=/tools*


Problem continues, namely, the above error message is still there...

How to solve this problem though?



cheers
Pei

On Tue, Dec 18, 2012 at 6:18 PM, Bruce Dubbs bruce.du...@gmail.com wrote:

 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 for tests in Chapter 5.

-- Bruce

 --
 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


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 linker command line/
 //tools/lib/libpthread.so.0: could not read symbols: Invalid operation/
 /collect2: error: ld returned 1 exit status/
 /make[2]: *** [check_thread_stress] Error 1/
 /make[2]: Leaving directory `/mnt/lfs/sources/check-0.9.9/tests'/
 /make[1]: *** [all-recursive] Error 1/
 /make[1]: Leaving directory `/mnt/lfs/sources/check-0.9.9'/
 /make: *** [all] Error 2/


 I tried to re-configure it as mentioned in
 http://comments.gmane.org/gmane.linux.lfs.support/35698
 namely:
 *$ CFLAGS=-L/tools/lib -lpthread*
 *$ ./configure --prefix=/tools*


 Problem continues, namely, the above error message is still there...

 How to solve this problem though?

You want to learn, you figure out yourself how to fix it.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


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 wasting 
time here and figure it all out yourself.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


[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 
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??



Cheers
Pei


-- 

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


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 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


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
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