failure in the posix/annexc test on 6.9. Glibc-2.12.1 on LFS version?

2010-11-15 Thread littlebat
On Tue, 16 Nov 2010 04:13:23 +0300
Flan Alflani falfl...@gmail.com wrote:

 
 is this something i should worry about or it just simple expected
 (ignored) failure in the posix/annexc test on 6.9. Glibc-2.12.1?
 
 root:/sources/glibc-build# grep Error glibc-check-log
 make[2]: [/sources/glibc-build/posix/annexc.out] Error 1 (ignored)
 make[2]: *** [/sources/glibc-build/nptl/tst-rwlock6.out] Error 1
 make[2]: *** [/sources/glibc-build/nptl/tst-rwlock7.out] Error 1
 make[2]: *** [/sources/glibc-build/nptl/tst-rwlock9.out] Error 1
 make[2]: *** [/sources/glibc-build/nptl/tst-rwlock11.out] Error 1
 make[2]: *** [/sources/glibc-build/nptl/tst-rwlock12.out] Error 11
 make[2]: *** [/sources/glibc-build/nptl/tst-rwlock14.out] Error 1
 make[1]: *** [nptl/tests] Error 2
 make[2]: *** [/sources/glibc-build/rt/tst-cpuclock1.out] Error 1
 make[1]: *** [rt/tests] Error 2
 make[2]: *** [/sources/glibc-build/elf/tst-xmmymm.out] Error 1
 make[1]: *** [elf/tests] Error 2
 make: *** [check] Error 2
 -- 
 http://linuxfromscratch.org/mailman/listinfo/lfs-support
 FAQ: http://www.linuxfromscratch.org/lfs/faq.html
 Unsubscribe: See the above information page Glibc-2.12.1

Hi, suggest you start a new thread to talk about this Glibc-2.12.1
related issue :-)

--
开源文化实验室 http://www.learndiary.com/
孟大兴网站 http://www.openlong.com/
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Problem Booting up the new system ?

2010-11-11 Thread littlebat
On Wed, 10 Nov 2010 16:31:50 +
dgfhfgh dfghdfgh solo9...@hotmail.com wrote:

 
 
 
 Sincerely, 
 
 http://www.Q8h.net
 
 
 
  Date: Tue, 9 Nov 2010 23:04:33 +0800
  From: dashing.m...@gmail.com
  To: lfs-support@linuxfromscratch.org
  Subject: Re: Problem Booting up the new system ?
  
  On Tue, 9 Nov 2010 12:04:05 +
  dgfhfgh dfghdfgh solo9...@hotmail.com wrote:
  
   
   Hello all, 
   after going thought the book  and try to boot the new system, the
   Bootloader work fine but when i try to boot the root filesystem my
   screen display  alot of color (attached photo) without any
   message or anything. I try to do the book again  it seem to be
   compiling ok without anything i could find. dont know what i did
   wrong and or what to do next, therefore, if anyone could help or
   point me to the right direction. thxbook SVN-20101027host
   lfcliveCD 
  
  Maybe, you can attach your .config file to the list, so someone can
  test it on their machine.
  
  Maybe, you can copy your LFS root directory to another machine to
  test if it is only happen on that machine.
  
  --
  littlebat
  -- 
  http://linuxfromscratch.org/mailman/listinfo/lfs-support
  FAQ: http://www.linuxfromscratch.org/lfs/faq.html
  Unsubscribe: See the above information page
 
 sorry forget to add the attachment :) here is a link
 http://linuxfromscratch.pastebin.com/mxmgFkV8
 

I tested your .config on my LFS6.6 system, I didn't change anything
else except my system is vmware i386 machine, so the kernel config
program changed some things automatically, see the diff result between
the modified .config and yours:
http://linuxfromscratch.pastebin.com/DLuCd850

Boot from the new compiled kernel, no any exception happened. After
compiled the vmware disk driver(Fusion MPT device support) into
kernel, I can boot and login into system with this kernel without
error.

So, I think maybe your hardware need some special kernel configs or your
hardware has run into some new kernel bugs. I think. 

Good luck.

littlebat  
--
开源文化实验室 http://www.learndiary.com/
孟大兴网站 http://www.openlong.com/
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Problem Booting up the new system ?

2010-11-11 Thread littlebat
On Fri, 12 Nov 2010 00:34:31 +0300
Flan Alflani falfl...@gmail.com wrote:

 2010/11/11 littlebat dashing.m...@gmail.com:
  On Wed, 10 Nov 2010 16:31:50 +
  dgfhfgh dfghdfgh solo9...@hotmail.com wrote:
 
 
 
 
  Sincerely,
 
  http://www.Q8h.net
 
 
 
   Date: Tue, 9 Nov 2010 23:04:33 +0800
   From: dashing.m...@gmail.com
   To: lfs-support@linuxfromscratch.org
   Subject: Re: Problem Booting up the new system ?
  
   On Tue, 9 Nov 2010 12:04:05 +
   dgfhfgh dfghdfgh solo9...@hotmail.com wrote:
  
   
Hello all,
after going thought the book  and try to boot the new system,
the Bootloader work fine but when i try to boot the root
filesystem my screen display  alot of color (attached photo)
without any message or anything. I try to do the book again
it seem to be compiling ok without anything i could find. dont
know what i did wrong and or what to do next, therefore, if
anyone could help or point me to the right direction. thxbook
SVN-20101027host lfcliveCD
  
   Maybe, you can attach your .config file to the list, so someone
   can test it on their machine.
  
   Maybe, you can copy your LFS root directory to another machine to
   test if it is only happen on that machine.
  
   --
   littlebat
   --
   http://linuxfromscratch.org/mailman/listinfo/lfs-support
   FAQ: http://www.linuxfromscratch.org/lfs/faq.html
   Unsubscribe: See the above information page
 
  sorry forget to add the attachment :) here is a link
  http://linuxfromscratch.pastebin.com/mxmgFkV8
 
 
  I tested your .config on my LFS6.6 system, I didn't change anything
  else except my system is vmware i386 machine, so the kernel config
  program changed some things automatically, see the diff result
  between the modified .config and yours:
  http://linuxfromscratch.pastebin.com/DLuCd850
 
  Boot from the new compiled kernel, no any exception happened. After
  compiled the vmware disk driver(Fusion MPT device support) into
  kernel, I can boot and login into system with this kernel without
  error.
 
  So, I think maybe your hardware need some special kernel configs or
  your hardware has run into some new kernel bugs. I think.
 
  Good luck.
 
  littlebat
  --
  开源文化实验室 http://www.learndiary.com/
  孟大兴网站 http://www.openlong.com/
  --
  http://linuxfromscratch.org/mailman/listinfo/lfs-support
  FAQ: http://www.linuxfromscratch.org/lfs/faq.html
  Unsubscribe: See the above information page
 
 
 
 littlebat,
 
 thx for looking into my problem, However i have  a question on chapter
 6.16. GCC-4.5.1  about the test suite results ?
 
 Is this ok :
 
 
 ../gcc-4.5.1/contrib/test_summary
 cat 'EOF' |
 LAST_UPDATED: Obtained from SVN: tags/gcc_4_5_1_release revision
 162774
 
 Native configuration is x86_64-unknown-linux-gnu
 
   === gcc tests ===
 
 
 Running target unix
 FAIL: gcc.c-torture/compile/limits-exprparen.c  -O0  (test for excess
 errors) FAIL: gcc.c-torture/compile/limits-exprparen.c  -O1  (test
 for excess errors) FAIL: gcc.c-torture/compile/limits-exprparen.c
 -O2  (test for excess errors) FAIL:
 gcc.c-torture/compile/limits-exprparen.c  -O3 -fomit-frame-pointer
 (test for excess errors) FAIL:
 gcc.c-torture/compile/limits-exprparen.c  -O3 -g  (test for excess
 errors) FAIL: gcc.c-torture/compile/limits-exprparen.c  -Os  (test
 for excess errors)
 
   === gcc Summary ===
 
 # of expected passes  61316
 # of unexpected failures  6
 # of expected failures165
 # of unsupported tests833
 /sources/gcc-build/gcc/xgcc  version 4.5.1 (GCC)
 
   === libgomp tests ===
 
 
 Running target unix
 
   === libgomp Summary ===
 
 # of expected passes  1029
   === libmudflap tests ===
 
 
 Running target unix
 FAIL: libmudflap.c/pass46-frag.c (-O2) (test for excess errors)
 FAIL: libmudflap.c/pass46-frag.c (-O2) (test for excess errors)
 FAIL: libmudflap.c/fail31-frag.c (-O3) output pattern test
 FAIL: libmudflap.c/pass45-frag.c (-O3) execution test
 FAIL: libmudflap.c/pass45-frag.c (-O3) output pattern test
 FAIL: libmudflap.c/pass45-frag.c (-O3) execution test
 FAIL: libmudflap.c/pass45-frag.c (-O3) output pattern test
 FAIL: libmudflap.c/pass46-frag.c (-O3) (test for excess errors)
 FAIL: libmudflap.c/pass46-frag.c (-O3) (test for excess errors)
 FAIL: libmudflap.c++/pass41-frag.cxx execution test
 FAIL: libmudflap.c++/pass41-frag.cxx ( -O) execution test
 FAIL: libmudflap.c++/pass41-frag.cxx (-O2) execution test
 FAIL: libmudflap.c++/pass41-frag.cxx (-O3) execution test
 
   === libmudflap Summary ===
 
 # of expected passes  1414
 # of unexpected failures  13
   === libstdc++ tests ===
 
 
 Running target unix
 
   === libstdc++ Summary ===
 
 # of expected passes  7071
 # of expected failures95
 # of unsupported tests339
 
 Compiler version: 4.5.1 (GCC)
 Platform: x86_64-unknown-linux-gnu
 configure flags

Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-22 Thread littlebat
On Fri, 22 Oct 2010 00:35:18 -0700
Nolan 4030...@gmail.com wrote:

 
 I have tried everything I could think of to get this command to
 work...

It seems $LFS_TGT is missing in environment.

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


Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-22 Thread littlebat
On Fri, 22 Oct 2010 00:35:18 -0700
Nolan 4030...@gmail.com wrote:

 
 I have tried everything I could think of to get this command to
 work...
 
 Code:
 SPECS=`dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/specs
 $LFS_TGT-gcc -dumpspecs | sed \
 
-e 's@/lib\(64\)\?/ld@/tools@g' \
-e /^\*cpp:$/{n;s,$, -isystem /tools/include,}  $SPECS
 echo New specs file is: $SPECS
 unset SPECS
 /Code
 
 One thing was taking a section at a time, by copy and paste.
 
 i.e. SPECS=`dirname $($LFS_TGT-gcc 
 -print-libgcc-file-name)`/specs$LFS_TGT-gcc -dumpspecs
   
   ^
 Tried as is and with a space and also with a /  No Joy.
 
 Below is the results after I clicked paste.
 It would execute immediately after the paste.
 The results are a copy and paste form the terminal.
 **
 no...@retired:~$ SPECS=`dirname $($LFS_TGT-gcc 
 -print-libgcc-file-name)`/specs
 No command '-gcc' found, did you mean:

It's here. If $LFS_TGT is null, then this will appear. So I suppose the
$LFS_TGT isn't working in this instruction.


   Command 'cgcc' from package 'sparse' (multiverse)
   Command 'gcc' from package 'gcc' (main)
   Command 'gcc' from package 'pentium-builder' (universe)
 -gcc: command not found
 dirname: missing operand
 Try `dirname --help' for more information.
 no...@retired:~$ $LFS_TGT-gcc -dumpspecs | sed \
 -e 's@/lib\(64\)\?/ld@/tools@g' \
 -e /^\*cpp:$/{n;s,$, -isystem /tools/include,}  $SPECS
 bash: /specs: Permission denied
 No command '-gcc' found, did you mean:
   Command 'cgcc' from package 'sparse' (multiverse)
   Command 'gcc' from package 'gcc' (main)
   Command 'gcc' from package 'pentium-builder' (universe)
 -gcc: command not found
 no...@retired:~$ echo New specs file is: $SPECS
 New specs file is: /specs
 no...@retired:~$ unset SPECS
 **
 What the key to getting this to work? If I need to do more reading, 
 please point me in the direction.
 And I shall read. :)
 Thanks in Advance
 Nolan
 
 


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


Maybe a bug still in 7.10. Creating Custom Symlinks to Devices in LFS6.7

2010-10-22 Thread littlebat

In LFS6.6, 7.10. Creating Custom Symlinks 

sed -i -e 's/write_cd_rules/ mode/' \
/lib/udev/rules.d/75-cd-aliases-generator.rules
Because there is write_cd_rules by_id in file
/lib/udev/rules.d/75-cd-aliases-generator.rules already, so this
command will produce text such as write_cd_rules by_path by_id.

I don't know the content of
/lib/udev/rules.d/75-cd-aliases-generator.rules in LFS6.7, so,
someone can do a check and correct it.

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


Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-22 Thread littlebat
On Fri, 22 Oct 2010 10:51:48 +0100
Andrew Benton b3n...@gmail.com wrote:

 On Fri, 22 Oct 2010 01:22:34 -0700
 Nolan 4030...@gmail.com wrote:
  This is now the error after I changed to user  'lfs'.
  
  AS: lfs
  
  l...@retired:~$ whoami
  lfs
  l...@retired:~$ cd /mnt/lfs/sources
  l...@retired:/mnt/lfs/sources$ SPECS=`dirname $($LFS_TGT-gcc 
  -print-libgcc-file-name)`/specs
  l...@retired:/mnt/lfs/sources$ $LFS_TGT-gcc -dumpspecs | sed \
  -e 's@/lib\(64\)\?/ld@/tools@g' \
  -e /^\*cpp:$/{n;s,$, -isystem /tools/include,}  $SPECS
  bash:[SUDO] /tools/lib/gcc/i686-lfs-linux-gnu/4.5.1/specs:
  Permission denied =
 ^
  l...@retired:/mnt/lfs/sources$ echo New specs file is: $SPECS
  New specs file is: /tools/lib/gcc/i686-lfs-linux-gnu/4.5.1/specs
  l...@retired:/mnt/lfs/sources$ unset SPECS
  
  Do I need to include a sudo in the command?
  
 No, never. If you followed the book /tools would be owned (and hence
 writable) by the user lfs. I would suggest that you start again.
 
 Andy

Yes, because you have made a very essential mistake, you are working in
a wrong environment without $LFS_TGT working, I think there are lots of
problems in your work from the beginning. So, I think the simplest way
is to start again, follow the instructions exactly. Or, maybe you will
vast much time and still end up with have to start it from beginning :-(

I am using Ubuntu 10.04 in vmware machine as a host, there isn't any
problem until the end of Chapter 7 (LFS6.6) except the one relating the
bash start file setup, see: the issue of environment value $PS1 set
under Ubuntu 10.04
http://linuxfromscratch.org/pipermail/lfs-support/2010-June/038825.html
But, this issue should can't make you building a wrong LFS even without
to resolve it.

 BTW, have you found the reason why your $LFS_TGT
environment variable is missing? I think this is the key of your
problem.

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


Re: LFS Dev SVN-20100702 - 5.9. Binutils-2.20.1 - Pass 2 (AR and RANLIB)

2010-07-16 Thread littlebat
On Fri, 16 Jul 2010 22:32:04 +0300
Rebel Yell rebely...@xbox-zone.ro wrote:

 My $LFS_TGT is i686-pc-linux-gnu

You are wrong, it says LFS_TGT=$(uname -m)-lfs-linux-gnu
 in Section: 4.4. Setting Up the Environment .


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


Re: Issues with second build of GCC

2010-07-12 Thread littlebat
On Sun, 11 Jul 2010 21:58:16 -0400
Neal Murphy neal.p.mur...@alum.wpi.edu wrote:

 On Sunday 11 July 2010 21:33:23 Robert Whitcomb wrote:
  Thanks very much for your help, the CC value was set wrong. But now
  I am running into another issue:
 
  /tools/i686-pc-linux-gnu/bin/ld: crti.o: No such file: No such file
  or directory
  collect2: ld returned 1 exit status
  make[2]: *** [libgcc_s.so] Error 1
  make[2]: Leaving directory
  `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libgcc'
  make[1]: *** [all-target-libgcc] Error 2
  make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
 
 
  The crti.o file is is my /tools/lib folder, and I made sure the CC
  value was set correctly.  What am I doing wrong?  Thanks!
 
 What did you set LFS_TGT to? If you exactly followed the book, the
 above value (i686-pc-linux-gnu) is incorrect.

I checked my gcc pass 2 building log at
http://linuxfromscratch.pastebin.com/ni7edwLd , 
line 60: checking for ld... /tools/i686-pc-linux-gnu/bin/ld 
line 1910: 
checking what linker to use... /tools/i686-pc-linux-gnu/bin/ld

So I guess his /tools/i686-pc-linux-gnu/bin/ld is right.

But, when I restarted build gcc pass 2, I removed that crti.o first,
then did the configure as book says, of course, error reported, I
checked config.log, it said: 
quote
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.3/../../../../i686-lfs-linux-gnu/bin/ld:
crti.o: No such file: No such file or directory collect2: ld returned 1
exit status
/quote

It seems /tools/i686-lfs-linux-gnu/bin/ld was working for it, so I am
not sure his /tools/i686-pc-linux-gnu/bin/ld is right or error now. 

I am a LFS newbie and is shooting in the dark :-)

PS: I am using parellel make introduced in 4.5. About SBUs, so the
make * log lines is interleaved in my build log posted above. 

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


Re: Issues with second build of GCC

2010-07-11 Thread littlebat
On Sun, 11 Jul 2010 08:48:28 -0400
Robert Whitcomb rwhitc...@acm.org wrote:

 checking for
 i686-pc-linux-gnu-gcc... /mnt/lfs/sources/gcc-build/./gcc/xgcc

in Section 5.10. GCC-4.4.3 - Pass 2 of LFS BOOK 6.6, it
says: CC=$LFS_TGT-gcc -B/tools/lib/ 

So I remember the configure output should be something like below:
checking for
i686-lfs-linux-gnu-gcc... 

Maybe, check your environment value: $LFS_TGT

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


Re: Issues with second build of GCC

2010-07-11 Thread littlebat
On Sun, 11 Jul 2010 21:33:23 -0400
Robert Whitcomb rwhitc...@acm.org wrote:

 Thanks very much for your help, the CC value was set wrong. But now I
 am running into another issue:
 
 /tools/i686-pc-linux-gnu/bin/ld: crti.o: No such file: No such file or
 directory
 collect2: ld returned 1 exit status
 make[2]: *** [libgcc_s.so] Error 1
 make[2]: Leaving directory
 `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libgcc'
 make[1]: *** [all-target-libgcc] Error 2
 make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
 
 
 The crti.o file is is my /tools/lib folder, and I made sure the CC
 value was set correctly.  What am I doing wrong?  Thanks!

CC=$LFS_TGT-gcc -B/tools/lib/

Have you missed -B/tools/lib/ in CC value?

If still many errors appear, suggest delete the entire tools directory
and restart from Chapter 4 again. 

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


Re: Issues with second build of GCC

2010-07-11 Thread littlebat
On Sun, 11 Jul 2010 21:58:16 -0400
Neal Murphy neal.p.mur...@alum.wpi.edu wrote:

 On Sunday 11 July 2010 21:33:23 Robert Whitcomb wrote:
  Thanks very much for your help, the CC value was set wrong. But now
  I am running into another issue:
 
  /tools/i686-pc-linux-gnu/bin/ld: crti.o: No such file: No such file
  or directory
  collect2: ld returned 1 exit status
  make[2]: *** [libgcc_s.so] Error 1
  make[2]: Leaving directory
  `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libgcc'
  make[1]: *** [all-target-libgcc] Error 2
  make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
 
 
  The crti.o file is is my /tools/lib folder, and I made sure the CC
  value was set correctly.  What am I doing wrong?  Thanks!
 
 What did you set LFS_TGT to? If you exactly followed the book, the
 above value (i686-pc-linux-gnu) is incorrect.

I check my gcc pass 2 building log,  /tools/i686-pc-linux-gnu/bin/ld 
is right. But the C compiler should be  i686-lfs-linux-gnu-gcc .

I have posted my log for reference at:
http://linuxfromscratch.pastebin.com/ni7edwLd

Note, I am using parellel make introduced in 4.5. About SBUs, so the
make * log lines is interleaved.   


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


need an accurate answer: can we build LFS with parallel compiling?

2010-07-07 Thread littlebat
Hi,

I am learning LFS BOOK 6.6.

I have built all the packages successfully with parallel compiling (I
set an environment export MAKEFLAGS='j -2' for user lfs ) according
to the instruction in 4.5. About SBUs as book says:

quote
For many modern systems with multiple processors (or cores) the
compilation time for a package can be reduced by performing a parallel
make by either setting an environment variable or telling the make
program how many processors are available.
/quote

From my understanding, LFS BOOK 6.6 is implicit to say we can always
use MAKEFLAGS='-j 2' or make -j2 to reduce compiling time when using a
double cores CPU. If we run into a problem with a build step, revert
back to a single processor build to properly analyze the error
messages.  

But, when I read 6.1. Introduction, the book says: 
quote
For the same reason, do not compile packages in parallel. Compiling in
parallel may save time (especially on dual-CPU machines), but it could
result in a program containing a hard-wired path to /tools, which will
cause the program to stop working when that directory is removed. 
/quote

So, I need some accurate answers:
1, Can we build LFS with parallel compiling through the book?
2, Can we build Chapter 5 with parallel compiling but do not use
parallel compiling in the rest Chapters (includes Chapter 6 and Chapter
8)?
3, I have finished building Chapter 5 with parallel compiling, if I
need rebuild all Chapter 5 without parallel compiling again as section
6.1. Introduction says?

I have also had a glance at a hint that was written at 2004: How to
build LFS using multiple compiler instances.
http://www.linuxfromscratch.org/hints/downloads/files/parallelcompiling.txt

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


Re: need an accurate answer: can we build LFS with parallel compiling?

2010-07-07 Thread littlebat
On Wed, 7 Jul 2010 12:15:54 +
emte...@gmail.com wrote:

 I think you're misreading the documentation. There are two ways to
 parallel compile:
 
 1) Make -j2 will try to compile several .c files from one package at
 a time, if it can find 2 files with no dependencies. 
 
 2) Users could in theory try to compile two packages in parallel. Eg:
 make glibc  make gcc
 
 The documentation encourages you to do the first, but not the second. 

I think I misunderstood the book in section 6.1.
Introduction, compile packages in parallel should means compile
several packages at the same time and is different from parallel
make in section 4.5. About SBUs. 

Thanks. 

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


Re: need an accurate answer: can we build LFS with parallel compiling?

2010-07-07 Thread littlebat
On Wed, 07 Jul 2010 13:31:32 +0100
Andrew Benton b3n...@gmail.com wrote:

 On 07/07/10 12:10, littlebat wrote:
  So, I need some accurate answers:
  1, Can we build LFS with parallel compiling through the book?
 Yes. A few packages won't build in parallel (openssl) and some
 packages sometimes fail to compile with a parallel build (xmlto) but
 pretty much everything else is fine with make -j$NUMBER
  2, Can we build Chapter 5 with parallel compiling but do not use
  parallel compiling in the rest Chapters (includes Chapter 6 and
  Chapter 8)?
 I use make -j4 all the time. Doesn't give me any problems. I've had
 some problems in the past with make -j4 install not installing all
 of glibc's files so I now avoid installing in parallel. make
 install is mostly limited by disc input/output so I see no benefit
 in make -j4 install. Consequently I don't set MAKEFLAGS as it risks
 breaking make install for little benefit.

Maybe I am lucky:-), I set MAKEFLAGS='-j 2' on my E7400 double cores
CPU, no any exception appeared until I finished all the packages in
Chapter 5. But, I think this should depends on the quality of the
package itself. Maybe, after the next release of a package, it will
refuse to do a parallel make or parallel make install just like you have
experienced.

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


Re: configure: error: could not find a working compiler

2010-07-04 Thread littlebat
On Sun, 4 Jul 2010 11:10:12 +0300
Face falaz...@gmail.com wrote:

 hostname = lfslivecd
 uname -m = x86_64
 uname -r = 2.6.22.5-64bit
 uname -s = Linux
 uname -v = #1 SMP Sun Dec 30 10:37:45 GMT 2007

 configure:3203: checking build system type
 configure:3217: result: pentium2-unknown-linux-gnu
 configure:3237: checking host system type
 configure:3250: result: pentium2-unknown-linux-gnu

I am just a little confused. Is it a pentiumII CPU? Why can run a 64 bit
Linux? How about a 32 bit host OS?

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


Re: configure: error: could not find a working compiler

2010-07-04 Thread littlebat
On Sun, 4 Jul 2010 13:24:55 +0300
Face falaz...@gmail.com wrote:

 i am trying to install it on KVM .
 
 On Sun, Jul 4, 2010 at 12:17 PM, littlebat dashing.m...@gmail.com
 wrote:
  On Sun, 4 Jul 2010 11:10:12 +0300
  Face falaz...@gmail.com wrote:
 
  hostname = lfslivecd
  uname -m = x86_64
  uname -r = 2.6.22.5-64bit
  uname -s = Linux
  uname -v = #1 SMP Sun Dec 30 10:37:45 GMT 2007
 
  configure:3203: checking build system type
  configure:3217: result: pentium2-unknown-linux-gnu
  configure:3237: checking host system type
  configure:3250: result: pentium2-unknown-linux-gnu

I haven't see a pentium2-unknown-linux-gnu before, a pentium2 CPU
machine should be a i686-unknown-linux-gnu in my memory.

I guess maybe the old lfslivecd hasn't recognized your KVM cpu? Try
another lastest livecd (such as Ubuntu) or simply install a Linux into
your KVM disk, and see if it is still a pentium2-unknown-linux-gnu,
if it isn't, maybe the problem is that old lfslivecd.

I am a newbie to LFS and haven't ever used kvm to build a LFS(I am using
Vmware Server 2).

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


Re: LFS 6.6 Chapter 2, Preparing a New Partition

2010-07-03 Thread littlebat
On Sat, 3 Jul 2010 14:27:17 +0530
shashank kumar er.shashank.ku...@gmail.com wrote:

  Or I can directly mount it in /mnt/lfs?, as its already mounted
  in /media.
 
 
 two things...
 1. if a partition is already mounted you cant mount it again unless it
 is first unmounted.

According to my experience, we can duplicate to mount a partition on
different mount point again and again, but it isn't needed and maybe
cause potential problem. Not recommended. 

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


Re: If SBU measure include test time?

2010-07-01 Thread littlebat
On Wed, 30 Jun 2010 21:07:06 -0500
Bruce Dubbs bruce.du...@gmail.com wrote:


 It's just not important enough to fix.  If someone creates a patch,
 I'll apply it.

Here is a patch, you can apply it if it is helpful. Change the
package into every package base on the last email.

code
#!/bin/bash
# usage: fixa.sh source_top_directory_full_path
# e.g., ./fixa.sh ~/LFS-DEV/BOOK
# For fixing a trivial wording issue about
# clarifying the approximate build SBU number
# and required disk space of the package.

cd $1

# Delete  testsuite included from ./packages.ent
cp -u packages.ent{,.orig}
sed 's/ testsuite included//g' \
packages.ent.orig  packages.ent
touch packages.ent.orig

# Add note into ./chapter05/binutils-pass1.xml
cp -u chapter05/binutils-pass1.xml{,.orig}
a=paraNow prepare Binutils for compilation:/para
b=noteparaThe approximate build SBU\ \
number and required disk space\n\ \ \ \ \
of every package in Chapter 5 does\ \
not include testsuite./para/note\n\n\ \ \ \ 
sed s...@$(echo $a)@$(echo $b)@ \
chapter05/binutils-pass1.xml.orig \
 chapter05/binutils-pass1.xml
touch chapter05/binutils-pass1.xml.orig

# Add note into ./chapter06/linux-headers.xml
cp -u chapter06/linux-headers.xml{,.orig}
a=titleInstallation of Linux API Headers/title
b=\n\n\ \ \ \ noteparaThe approximate build\ \
SBU number and required disk space\n\ \ \ \ \
of every package which has testsuite in\ \
Chapter 6 includes testsuite./para/note
sed s...@$(echo $a)@$(echo $b)@ \
chapter06/linux-headers.xml.orig \
 chapter06/linux-headers.xml
touch chapter06/linux-headers.xml.orig

exit 0
/code

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


Re: If SBU measure include test time?

2010-07-01 Thread littlebat
On Thu, 01 Jul 2010 10:41:38 -0500
Bruce Dubbs bruce.du...@gmail.com wrote:
 
 That's a script, not a patch.
 
 For an example of a patch, see 
 http://wiki.linuxfromscratch.org/lfs/attachment/ticket/2371/program-list-update.patch

Here is a patch, you can apply it if it is helpful.

Ticket #2702 (new enhancement) clarifying the approximate build SBU
number and required disk space of the package
http://wiki.linuxfromscratch.org/lfs/ticket/2702

patch file:  
http://wiki.linuxfromscratch.org/lfs/attachment/ticket/2702/clarify-sbu-disk_space.patch

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


If SBU measure include test time?

2010-06-30 Thread littlebat
Hi,

I try to measure SBU when installing every package with command 
time {} and consider post my measure into
 http://www.linuxfromscratch.org/~sbu . 


1, If only those packages marked SBU testsuite included should include
the time spent on test into SBU measure? 

2, Or, don't include the test time in SBU measure of any package? 

3, Or, include every steps from the configuration, up to and including
the first install just like the description in page
http://www.linuxfromscratch.org/lfs/view/stable/chapter05/binutils-pass1.html;?

If I measure the SBU of 
http://www.linuxfromscratch.org/lfs/view/stable/chapter05/tcl.html ,
using: 

The first method: 
time { ./configure --prefix=/tools  make  make install; }

The second:
time { ./configure --prefix=/tools  make  make install; }

The third:
time { ./configure --prefix=/tools  make  TZ=UTC make test  make \
install; }

Which method should I use?

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


Re: If SBU measure include test time?

2010-06-30 Thread littlebat
On Wed, 30 Jun 2010 10:44:56 -0500
Bruce Dubbs bruce.du...@gmail.com wrote:

 littlebat wrote:
  Hi,
  
  I try to measure SBU when installing every package with command 
  time {} and consider post my measure into
   http://www.linuxfromscratch.org/~sbu . 
  
  
  1, If only those packages marked SBU testsuite included should
  include the time spent on test into SBU measure? 
  
  2, Or, don't include the test time in SBU measure of any package? 
  
  3, Or, include every steps from the configuration, up to and
  including the first install just like the description in page
  http://www.linuxfromscratch.org/lfs/view/stable/chapter05/binutils-pass1.html;?
  
  If I measure the SBU of 
  http://www.linuxfromscratch.org/lfs/view/stable/chapter05/tcl.html
  , using: 
  
  The first method: 
  time { ./configure --prefix=/tools  make  make install; }
  
  The second:
  time { ./configure --prefix=/tools  make  make install; }
  
  The third:
  time { ./configure --prefix=/tools  make  TZ=UTC make test 
  make \ install; }
  
  Which method should I use?
 
 I don't see a difference between 1 and 2.  In any case, I recommend 
 using times without tests in Chapert 5 and with tests in Chapter 6. 

I am learning LFS BOOK 6.6.

Do you mean every SBU measure include test time described in the head
of the page of the package in Chapter 6 which has a testsuite and don't
include test time in Chapter 5?

Have a glance at the sections in Chapter 6, I found there are some
packages which have a testsuite but without marked testsuite included
in the head of package section, such as: 6.25. Bison-2.4.1, 
6.33. Perl-5.10.1, 6.41. Gettext-0.17, etc... If the SBU number in
these packages don't include test time?

I sugguest adding a note in SBU section such as: the test time should
be included into SBU measure in Chapter 6 if the package has a testsuite
and shouldn't be included into SBU measure in Chapter 5 anyway.
Although it will not affect us to make a working LFS without the
changing on wording.

Until today, I haven't reached the jhalfs. But thanks your information
anyway.

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


Re: LFS (Version SVN-20100529) - 6.7 Linux API Headers

2010-06-30 Thread littlebat
On Thu, 1 Jul 2010 05:42:03 +0300
Face falaz...@gmail.com wrote:

re-download.

 cannot extract linux-2.6.34.tar.bz2
 
 
 root:/sources# tar xjvf linux-2.6.34.tar.bz2
 tar (child): linux-2.6.34.tar.bz2: Cannot open: No such file or
 directory tar (child): Error is not recoverable: exiting now
 tar: Child returned status 2
 tar: Error is not recoverable: exiting now
 
 -- 
 Sincerely,
 -- 
 http://linuxfromscratch.org/mailman/listinfo/lfs-support
 FAQ: http://www.linuxfromscratch.org/lfs/faq.html
 Unsubscribe: See the above information page


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


Re: Help with Glib-c 2.11.1 Pass 1 (ch 5.7) in LFS 6.6

2010-06-29 Thread littlebat
 l...@ubuntu10-clean:/mnt/lfs/tools/glibc-build$ make

I am also new to LFS, the book says we should always work in
directory /mnt/lfs/sources and install temporary tools in
directory /mnt/lfs/tools. So, the right build place of glibc-build
pass1 should be /mnt/lfs/sources/glibc-build.

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


A sed syntax

2010-06-23 Thread littlebat
Hi,
I am learning LFS BOOK:
http://www.linuxfromscratch.org/lfs/view/6.6/chapter05/adjusting.html

Below is a sed syntax I can't understand and haven't found a place to
learn it. 
code
sed -e /^\*cpp:$/{n;s,$, -isystem /tools/include,}
/code

I read man sed and info sed and googled but can't find this kind of
sed usage, can you give me a reference link on the internet or tell
me which section in info sed?

I knew ^ indicates the begin of a line and $ indicates end of a
line, so ^\*cpp:$ indicates a line includes and only includes a
string *cpp:. And, I also knew the effect of this command is append
string  -isystem /tools/include to the end of the next line of line
 *cpp: by a test. But what's meaning of the every part in {n;s, $,
-isystem /tools/include,} and how this command to achieve this
effect? 

Thanks,

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


Re: A sed syntax

2010-06-23 Thread littlebat
On Wed, 23 Jun 2010 02:57:44 -0400
Neal Murphy neal.p.mur...@alum.wpi.edu wrote:

 On Wednesday 23 June 2010 02:24:51 littlebat wrote:
  Hi,
  I am learning LFS BOOK:
  http://www.linuxfromscratch.org/lfs/view/6.6/chapter05/adjusting.html
 
  Below is a sed syntax I can't understand and haven't found a place
  to learn it.
  code
  sed -e /^\*cpp:$/{n;s,$, -isystem /tools/include,}
  /code
 
 Basically, '/^\*cpp:$/' is the address that matches lines that
 contain exactly '*cpp:'. The braces indicate a 'compound command'.
 'n;s' means execute those two commands (n: print the pattern space;
 s: substitute the EOL with the 'option'). The effect is, as you know,
 to append the option to the end of all lines with just '*cpp:' on
 them.
 
 The commas are an unusual selection, but perfectly valid, since the s
 command allows pretty much any character to delimit the match and
 replace phrases.
 
 This could be rewritten as
   sed -e 's=^\(*cpp:\)=\1 -s system /tools/include/='
 which would be a little more grokable.
 
 The only thing you need to find in the manual is the definition and
 use of the braces.
 
 Good enough?
 -- 
 http://linuxfromscratch.org/mailman/listinfo/lfs-support
 FAQ: http://www.linuxfromscratch.org/lfs/faq.html
 Unsubscribe: See the above information page

Thanks. Good answer. Save me much time, with your help.

Always hate read the whole man page (info page) of those big program :-)

Got at least three from this:
1, Sed syntax: sed -e /address/command
2, command can be a 'compound command', it is {}
3, just forgot delimiter can be any character 

   sed -e 's=^\(*cpp:\)=\1 -s system /tools/include/='

I modified it as below but can't achieve the effect:

sed -e s=^\(*cpp:\)$=\1 -isystem /tools/include=

It only append  -isystem /tools/include to the end of the line which
only include string *cpp:. The book needs append the string to the
next line of the line only include string *cpp:.

But, at least I have known more on sed. Thanks.

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


Re: A sed syntax

2010-06-23 Thread littlebat
On Wed, 23 Jun 2010 05:22:35 -0500
Mike McCarty mike.mcca...@sbcglobal.net wrote:

So much detailed answer, I can post it into my blog as a detailed
manual. too many thanks.

 littlebat wrote:
  Hi,
  I am learning LFS BOOK:
  http://www.linuxfromscratch.org/lfs/view/6.6/chapter05/adjusting.html
  
  Below is a sed syntax I can't understand and haven't found a place
  to learn it. 
  code
  sed -e /^\*cpp:$/{n;s,$, -isystem /tools/include,}
  /code
 
 You already got a good answer, perhaps a little more detail helps...
 I'm no sed expert, but this is the way I read that command.
 
 sed   the command
 
 -emeans execute this little program which follows
 
  the quotes are necessary to keep the shell from
   trying to do stuff with what's here, and to make
   what follows all one argument to the program
 
 / sed looks at the first character, and takes that
   to be the delimeter. So, everything from here to
   the next / is the address sed will use to select
   lines from the file; the program gets executed on lines
   which match this pattern, all other lines pass through
   unchanged
 
 ^ this indicates that the pattern must start at
   the beginning of the line
 
 \*we have to escape the *, or the shell will try to
   put file names in there, hence the \ to make this
   a literal *
 
 cpp:  more string to look for
 
 $ this says that when we've matched what went before,
   we must next find end of line, so, the entire line
   must be *cpp:, so the command gets executed only
   on lines which contain *cpp: and nothing else
 
 / here's the other delimeter / which ends the address
 
 { this tells sed that what is contained is the script to
   execute, when we find a matching line; we do so up to
   the closing }
 
 n Read/append the next line of input into the pattern space
   IOW, print what has been matched so far (*cpp:) and
   then work on the next line
 
 ; end of n command, so all we print is just *cpp:
   we use ; to put multiple commands together, so this
   separates the n command from the s command
 
 s now we start a substitute command
 
 , this is taken by sed to be the delimter of the string
   to substitute for; this could be any character, like
   the / above; the s command wants
 
   sdelimstring to finddelimstring to subdelim
 
   where delim may be any character you like, but all three
   must be the same. In this case, ,
 
 $ the pattern we are going to substitute for is end of line...
 
 , ... and nothing else, the second , matches the one above
   and ends the search string
 
   -isystem /tools/include
   this is the string to substitute at end of line
 
 , here's the third delimeter
 
 } this marks end-of-command
 
  this is the matching quote for the shell to see
 
 HTH
 
 Mike
 -- 
 p=p=%c%s%c;main(){printf(p,34,p,34);};main(){printf(p,34,p,34);}
 Oppose globalization and One World Governments like the UN.
 This message made from 100% recycled bits.
 You have found the bank of Larn.
 I speak only for myself, and I am unanimous in that!
 -- 
 http://linuxfromscratch.org/mailman/listinfo/lfs-support
 FAQ: http://www.linuxfromscratch.org/lfs/faq.html
 Unsubscribe: See the above information page


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


Re: A sed syntax

2010-06-23 Thread littlebat
On Wed, 23 Jun 2010 09:23:49 -0500
Mike McCarty mike.mcca...@sbcglobal.net wrote:

 littlebat wrote:
  On Wed, 23 Jun 2010 05:22:35 -0500
  Mike McCarty mike.mcca...@sbcglobal.net wrote:
  
  So much detailed answer, I can post it into my blog as a detailed
  manual. too many thanks.
 
 It's considered polite to ask the copyright holder before
 reproducing his work :-)
 
 Mike

Of course, I will comment the original author is  Mike McCarty
Mike.McCarty at sbcglobal.net  and original link is 
http://linuxfromscratch.org/pipermail/lfs-support/2010-June/039030.html
 :-)

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


Re: LFS (Version SVN-20100529) - 5.19. File-5.04

2010-06-14 Thread littlebat
On Mon, 14 Jun 2010 13:10:18 +0300
Face falaz...@gmail.com wrote:

 hello all,
when reach chapter 5.19.1. Installation of File I got this:
 
 root:/mnt/lfs/sources/File-5.04# make

It seems you have missed something, I remember we should always use
non-root user (lfs) to compile LFS in chapter 5 at least.

See:
http://www.linuxfromscratch.org/lfs/view/6.6/chapter04/addinguser.html 

-- 
littlebat dashing.m...@gmail.com
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: LFS (Version SVN-20100529) - 5.19. File-5.04

2010-06-14 Thread littlebat

 when i add lfs user i  get permissions problems

You have deviated the book. 

http://www.linuxfromscratch.org/lfs/view/development/chapter04/addinguser.html

As root, issue the following commands to add the new user:

groupadd lfs
useradd -s /bin/bash -g lfs -m -k /dev/null lfs

-- 
littlebat dashing.m...@gmail.com
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: live and learn

2010-06-08 Thread littlebat
On Tue, 8 Jun 2010 16:08:18 -0400

 In  Host system Requirements, the instructions explicitly wants
 '/bin/sh' to be pointing to bash. Mine was pointing to dash. 

under Ubuntu, try sudo dpkg-reconfigure dash.

 Any recommendations on a rescue disk?

CDlinux. ( http://cdlinux.info/ )

PS: try virtual machine as your LFS building host. It will keep you real 
physical machine safe.

-- 
littlebat dashing.m...@gmail.com
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: the issue of environment value $PS1 set under Ubuntu 10.04

2010-06-07 Thread littlebat
  Ubuntu bash has a bug, even if I specified --rcfile, it still read
  /etc/bash.bashrc.
 
 That's because /etc/profile does it explicitly:

I have replaced bash in Ubuntu with the bash comes with LFS6.6. I found there 
isn't a system-wide .bashrc file(just like /etc/bash.bashrc in Ubuntu 10.04) in 
LFS6.6 bash. So, when I specified --rcfile append to LFS6.6 bash, it works as 
its man page describes. But, under Ubuntu 10.04 bash, specified --rcfile 
~/mybashrc append to bash, it will read and perform /etc/bash.bashrc and 
~/mybashrc but without ~/.bashrc, it acts don't like its man page describes, so 
it is a bug ( https://bugs.launchpad.net/ubuntu/+source/bash/+bug/589496 ). 

If there isn't this bug in Ubuntu 10.04, specified --rcfile ~lfs/.bashrc will 
really solved this issue in spite of /etc/profile does it explicitly. Because 
~lfs/.bash_profile will be read and be performed after /etc/profile (of course 
after /etc/bash.bashrc), the env command will set a empty environment, it 
clear all the environment values include the values set in /etc/bash.bashrc 
first.

  There are almost always ways to work around little problems.
  I think, it isn't everyone know how to solve these lttle
  problems(just like me), so the best way is give the right guide in
  the LFS BOOK.
 
 No, we really can't instruct for every possible combination of lack of 
 knowledge.  Having enough background in Linux to solve simple usage 
 problems like this is really a prerequisite for LFS.

No, I don't agree your point. As a book, it should be right at first. But, 
under my Ubuntu 10.04, It doesn't act right when I did exactly as LFS BOOK 6.6 
says without a note such as In some distributions, this instructions should be 
modified to archive the goal of getting a clear LFS building environment.

So, I suggest to add a note like above into LFS BOOK 6.6 or give an all right 
way to get a clear building environment. 

I am a LFS newbie but not a Linux newbie, so I think I can solved this issue at 
last. But, as a LFS BOOK, it really need to make it more wonderful.

Thanks for LFS, a Linux distribution that the first goal is education( 
http://www.linuxfromscratch.org/lfs/view/6.6/prologue/audience.html In the end, 
education is by far the most powerful of reasons. ).

Thank you.

-- 
littlebat dashing.m...@gmail.com
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: the issue of environment value $PS1 set under Ubuntu 10.04

2010-06-06 Thread littlebat

 Try adding --noprofile --rc ~lfs/.bashrc to the bash command. Or just 

Ubuntu bash has a bug, even if I specified --rcfile, it still read 
/etc/bash.bashrc. 

 add --noprofile --norc and set everything in the env command.

Base on my knowledge, I found the env command can't set like set +h or umask 
022 those are set in the file .bashrc.

There are almost always ways to work around little problems.
I think, it isn't everyone know how to solve these lttle problems(just like 
me), so the best way is give the right guide in the LFS BOOK.
  
-- 
littlebat dashing.m...@gmail.com
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


the issue of environment value $PS1 set under Ubuntu 10.04

2010-06-04 Thread littlebat
This issue was posted onto lfs-support mailing list yesterday (see: 
http://linuxfromscratch.org/pipermail/lfs-support/2010-June/038814.html ), 
unluckly I disabled the mail delivery of LFS mailing list some days ago, so I 
can't continue discuss it on the lfs-support mailing list. And, I consider it 
is a bug of LFS6.6 book, so I start a new thread on the lfs-dev list to discuss 
it.

I am using Ubuntu 10.04 as the LFS building host. When I set environment with 
the instructions at: 4.4. Setting Up the Environment: 
http://www.linuxfromscratch.org/lfs/view/6.6/chapter04/settingenvironment.html 
, I found the commands provided by LFS book can't set $PS1 value under Ubuntu 
10.04 host properly. The commands is below:

code
cat  ~/.bash_profile  EOF
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
EOF
/code

The issue is Ubuntu has a system-wide .bashrc file for interactive bash(1) 
shells, it is /etc/bash.bashrc. $PS1 has been set to 
PS1='${debian_chroot:+($debian_chroot)}...@\h:\w\$ ' in this file. When the 
command above invoke /bin/bash to start a new interactive bash shells, 
/etc/bash.bashrc will invoked first, this $PS1 value will be seted. So, $PS1 
keep as the format like l...@u1004b2-desktop:~$ , not the format excepted by 
LFS6.6 book like lfs:~$ .

And, /etc/bash.bashrc in Ubuntu 10.04 also sets some other bash behavior, such 
as: update value of $LINES and $COLUMNS, give sudo hint, give the hint when 
can't find a command, etc... I hope these will not affect a clear LFS building 
environment :-(

And, /etc/profile will invoke /etc/bash.bashrc in Ubuntu 10.04.

I think, $PS1 is a display style for the user interact with bash, set it in the 
~/.bashrc maybe a good idea? Under Ubuntu 10.04, I found the ~/.bashrc also 
overwrite the $PS1 value in its /etc/bash.bashrc.

Below is the content of /etc/bash.bashrc in Ubuntu 10.04:
code
# System-wide .bashrc file for interactive bash(1) shells.

# To enable the settings / commands in this file for login shells as well,
# this file has to be sourced in /etc/profile.

# If not running interactively, don't do anything
[ -z $PS1 ]  return

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z $debian_chroot ]  [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, overwrite the one in /etc/profile)
PS1='${debian_chroot:+($debian_chroot)}...@\h:\w\$ '

# Commented out, don't overwrite xterm -T title -n icontitle by default.
# If this is an xterm set the title to user at host:dir
#case $TERM in
#xterm*|rxvt*)
#PROMPT_COMMAND='echo -ne \033]0;${us...@${hostname}: ${PWD}\007'
#;;
#*)
#;;
#esac

# enable bash completion in interactive shells
#if [ -f /etc/bash_completion ]  ! shopt -oq posix; then
#. /etc/bash_completion
#fi

# sudo hint
if [ ! -e $HOME/.sudo_as_admin_successful ]; then
case  $(groups)  in *\ admin\ *)
if [ -x /usr/bin/sudo ]; then
cat -EOF
To run a command as administrator (user root), use sudo command.
See man sudo_root for details.

EOF
fi
esac
fi

# if the command-not-found package is installed, use it
if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found ]; then
function command_not_found_handle {
# check because c-n-f could've been removed in the meantime
if [ -x /usr/lib/command-not-found ]; then
   /usr/bin/python /usr/lib/command-not-found -- $1
   return $?
elif [ -x /usr/share/command-not-found ]; then
   /usr/bin/python /usr/share/command-not-found -- $1
   return $?
else
   return 127
fi
}
fi
/code

-- 
littlebat dashing.m...@gmail.com
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Can't set $PS1 properly under Ubuntu 10.04 host

2010-06-03 Thread littlebat
Hi,

I am learning: 4.4. Setting Up the Environment: 
http://www.linuxfromscratch.org/lfs/view/6.6/chapter04/settingenvironment.html 
. My host system is Ubuntu 10.04.

I found it can't properly to set $PS1 for user lfs with the command below 
provided by LFS6.6 book under Ubuntu 10.04 host system. 

code
cat  ~/.bash_profile  EOF
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
EOF
/code

The reason is Ubuntu will setup PS1 in /etc/bash.bashrc, so I think maybe we 
should set this value in ~/.bashrc ?

And, my linux skill is poor, I don't know if the setup in /etc/bash.bashrc in 
Ubuntu will break something other of LFS building environment.

Below is the content of /etc/bash.bashrc in Ubuntu 10.04:
code
# System-wide .bashrc file for interactive bash(1) shells.

# To enable the settings / commands in this file for login shells as well,
# this file has to be sourced in /etc/profile.

# If not running interactively, don't do anything
[ -z $PS1 ]  return

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z $debian_chroot ]  [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, overwrite the one in /etc/profile)
PS1='${debian_chroot:+($debian_chroot)}...@\h:\w\$ '

# Commented out, don't overwrite xterm -T title -n icontitle by default.
# If this is an xterm set the title to u...@host:dir
#case $TERM in
#xterm*|rxvt*)
#PROMPT_COMMAND='echo -ne \033]0;${us...@${hostname}: ${PWD}\007'
#;;
#*)
#;;
#esac

# enable bash completion in interactive shells
#if [ -f /etc/bash_completion ]  ! shopt -oq posix; then
#. /etc/bash_completion
#fi

# sudo hint
if [ ! -e $HOME/.sudo_as_admin_successful ]; then
case  $(groups)  in *\ admin\ *)
if [ -x /usr/bin/sudo ]; then
cat -EOF
To run a command as administrator (user root), use sudo command.
See man sudo_root for details.

EOF
fi
esac
fi

# if the command-not-found package is installed, use it
if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found ]; then
function command_not_found_handle {
# check because c-n-f could've been removed in the meantime
if [ -x /usr/lib/command-not-found ]; then
   /usr/bin/python /usr/lib/command-not-found -- $1
   return $?
elif [ -x /usr/share/command-not-found ]; then
   /usr/bin/python /usr/share/command-not-found -- $1
   return $?
else
   return 127
fi
}
fi
/code


-- 
littlebat dashing.m...@gmail.com
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: LFS on USB?

2010-03-07 Thread littlebat
On Sun, 07 Mar 2010 21:08:18 +0100
Hans Kaper spaky...@xs4all.nl wrote:

 
 
  My grub entry for my LFS6.4 stick is:
 
  title Linux From Scratch 6.4 Kernel 2.6.30.2
  root (hd0,0)
  kernel /boot/lfskernel-2.6.30.2 root=/dev/uba1
 
 Omit the root=/dev/uba1-option. root (hd0,0) points already to the device  
 you want to boot from.

It should can't be omited, root (hd0,0) is the prefix location of your kernel 
or image file, and root=/dev/* indicates your device that / directory on it. 
For example, when your kernel file is  (hd0,0)/boot/kernelfile, your root 
directory / can be root=/dev/hdc2 .

-- 
littlebat dashing.m...@gmail.com
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page