a issue in chapter 6.32. Perl-5.10.1

2009-10-15 Thread kevin631012
in chapter 6.32. Perl-5.10.1
without using patch
patch -Np1 -i ../perl-5.10.1-libc-1.patch
will cause compile issue 

kevinskliu

___ 
 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! 
 http://messenger.yahoo.com.tw/
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page


I got error at chapter 8.4. GRUB-0.97

2009-10-19 Thread kevin631012
Hi all,
I almost done all steps in LFS but I got a error when install grub

here is paragraph in chapter 8.4 
Caution
This package will only build for x86 and x86_64 architectures containing 32-bit 
libs. If you chose to build on x86_64 without 32-bit libraries (no multilib), 
then you must use LILO instead. Information on “boot loading” for other 
architectures should be available in the usual resource-specific locations for 
those architectures.

Q1: my computer is X86_64 , but I wonder how to know what 32-bit libraries is 
or not ?

Q2: following is error message I got in config.log when I do "configure 
--prefix=/usr" , and I am confused about it .

= message begin ==
configure:2388: $? = 0
configure:2390: gcc -v &5
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.4.1/configure --prefix=/usr --libexecdir=/usr/lib 
--enable-shared --enable-threads=posix --enable-__cxa_atexit 
--enable-clocale=gnu --enable-languages=c,c++ --disable-multilib 
--disable-bootstrap
Thread model: posix
gcc version 4.4.1 (GCC)
configure:2393: $? = 0
configure:2395: gcc -V &5
gcc: '-V' option must have argument
configure:2398: $? = 1
configure:2421: checking for C compiler default output file name
configure:2424: gcc -m32conftest.c  >&5
/usr/bin/ld: skipping incompatible 
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/libgcc.a when searching for -lgcc
/usr/bin/ld: skipping incompatible 
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
configure:2427: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "GRUB"
| #define PACKAGE_TARNAME "grub"
| #define PACKAGE_VERSION "0.97"
| #define PACKAGE_STRING "GRUB 0.97"
| #define PACKAGE_BUGREPORT "bug-g...@gnu.org"
| #define PACKAGE "grub"
| #define VERSION "0.97"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2466: error: C compiler cannot create executables
See `config.log' for more details.
=== message end ===


it looks like something wrong in libgcc , so I do sanity checking as following

== message begin ===
root:/sources# 
root:/sources# echo 'main(){}' > dummy.c
root:/sources# cc dummy.c -v -Wl,--verbose &> dummy.log
root:/sources# readelf -l a.out | grep ': /lib'
  [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
root:/sources# grep -o '/usr/lib.*/crt[1in].*succeeded' dummy.log
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/../../../../lib64/crt1.o succeeded
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/../../../../lib64/crti.o succeeded
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/../../../../lib64/crtn.o succeeded
root:/sources# grep -B4 '^ /usr/include' dummy.log
#include <...> �j�M�q�o�̶}�l�G
 /usr/local/include
 /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/include
 /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/include-fixed
 /usr/include
root:/sources# grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g'
SEARCH_DIR("/usr/x86_64-unknown-linux-gnu/lib64")
SEARCH_DIR("/usr/local/lib64")
SEARCH_DIR("/lib64")
SEARCH_DIR("/usr/lib64")
SEARCH_DIR("/usr/x86_64-unknown-linux-gnu/lib")
SEARCH_DIR("/usr/local/lib")
SEARCH_DIR("/lib")
SEARCH_DIR("/usr/lib");
root:/sources# grep "/lib.*/libc.so.6 " dummy.log
attempt to open /lib64/libc.so.6 succeeded
root:/sources# 
 message end =



___ 
 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! 
 http://messenger.yahoo.com.tw/
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page


Re: I got error at chapter 8.4. GRUB-0.97

2009-10-21 Thread kevin631012
Hi Nathan,
thanks for your time . follow the steps in hint is able to install . but I got 
another problems when I did at Step 2 . following is my error message .

==message begin
root:/boot/grub# fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000764ec

   Device Boot  Start End  Blocks   Id  System
/dev/sda1   *   1   38195   306801306   83  Linux
/dev/sda2   38196   38913 57673355  Extended
/dev/sda5   38196   38913 5767303+  82  Linux swap / Solaris

Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x

   Device Boot  Start End  Blocks   Id  System
/dev/sdb1   1 100  803218+  83  Linux
/dev/sdb2 101   38913   311765422+  83  Linux

root:/boot/grub# grub-install --grub-setup=/bin/true /dev/sdb1
grub-probe: error: Cannot find a GRUB drive for /dev/sdb2.  Check your 
device.map.

Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.



root:/boot/grub# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/lfskernel-2.6.30.5
grub-probe: error: Cannot find a GRUB drive for /dev/sdb2.  Check your 
device.map.

grub-probe: error: Cannot find a GRUB drive for /dev/sdb2.  Check your 
device.map.

done
==message end 

/dev/sdb1 is partition (8xxM bytes) I except for grub as hint mention . I can 
see a lot of mod under /boot/grub after grub-install . but I fail at 
grub-mkconfig . the name of my kernel is lfskernel-2.6.30.5 and map is 
lfskernel-2.6.30.5








--- 09/10/19 (一),Nathan Coulson  :

> On Mon, Oct 19, 2009 at 12:52 AM,
> kevin631012 
> wrote:
> > Hi all,
> > I almost done all steps in LFS but I got a error when
> install grub
> >
> > here is paragraph in chapter 8.4
> > Caution
> > This package will only build for x86 and x86_64
> architectures containing 32-bit libs. If you chose to build
> on x86_64 without 32-bit libraries (no multilib), then you
> must use LILO instead. Information on “boot loading” for
> other architectures should be available in the usual
> resource-specific locations for those architectures.
> >
> > Q1: my computer is X86_64 , but I wonder how to know
> what 32-bit libraries is or not ?
> >
> > Q2: following is error message I got in config.log
> when I do "configure --prefix=/usr" , and I am confused
> about it .
> 
> Q1: If you compile LFS from a i386 distribution (32bit),
> LFS will be
> 32bit.  If you compile it from a X86_64 distribution,
> LFS will be
> 64bit.
> 
> Q2: Grub has to be compiled with a 32bit compiler. 
> The way the book
> is currently written, it only builds either 32bit, or
> 64bit.  [The
> reason why you would want 32bit over 64bit is mostly due
> to
> compatibility for programs that do not support 64bit. 
> At this time,
> Wine, and Grub1 are the only two programs I know of that
> only run w/
> 32bit compilers.  If I had to guess, binary only
> codec's may want
> 32bit as well].
> 
> The simplest approach would be to download & install
> another
> bootloader such as LILO or Grub2 (At this time, Grub1 is in
> the book)
> 
> I believe grub2 can be compiled 64bit, (You can download it
> at
> http://www.gnu.org/software/grub/grub-2-download.en.html). 
> Bruce has
> recently written a hint on how to compile & install
> this, viewable at
> http://www.linuxfromscratch.org/hints/downloads/files/grub2.txt
> 
> P.S. Sorry if I am misrepresenting the 32bit vs 64bit
> battle.
> 
> -- 
> Nathan Coulson (conathan)
> --
> Location: Brittish Columbia, Canada
> Timezone: PST (-8)
> Webpage: http://www.nathancoulson.com
> -- 
> http://linuxfromscratch.org/mailman/listinfo/lfs-dev
> FAQ: http://www.linuxfromscratch.org/faq/
> Unsubscribe: See the above information page
> 

___ 
 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! 
 http://messenger.yahoo.com.tw/
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page


Re: I got error at chapter 8.4. GRUB-0.97

2009-10-22 Thread kevin631012
Hi Nathan , Bruce
thanks you all , grub seems to be working now . It is able to grub-install and 
grub-mkconfig what I do is

1) having a file under /boot/grub/device.map as Bruce mentioned .
(hd0) /dev/sda
(hd1) /dev/sdb 
sdb which has two partitions and I develop my LFS on it .

2) grub-install --grub-setup=/bin/true /dev/sdb
3) grub-mkconfig -o /boot/grub/grub.cfg


I check grub.cfg file as following

== grub.cfg begin 
root:/boot/grub# cat grub.cfg 
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "GNU/Linux, Linux 2.6.30.5" {
    insmod ext2
    set root=(hd1,2)
    search --no-floppy --fs-uuid --set e4adbac2-a338-4305-bafe-73f2adb307da
    linux    /boot/lfskernel-2.6.30.5 root=/dev/sdb2 ro  
}
menuentry "GNU/Linux, Linux 2.6.30.5 (recovery mode)" {
    insmod ext2
    set root=(hd1,2)
    search --no-floppy --fs-uuid --set e4adbac2-a338-4305-bafe-73f2adb307da
    linux    /boot/lfskernel-2.6.30.5 root=/dev/sdb2 ro single 
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
=== grub.cfg end ===

refer "root=" in grub.cfg , I change my /etc/fstab as following 

=== /etc/fstab begin ===
root:/boot/grub# cat /etc/fstab 
# Begin /etc/fstab
# file system  mount-point type   options        dump fsck
#                                                     order
/dev/sdb2       /           ext3  defaults       1    1
#/dev/     swap        swap   pri=1          0    0
proc           /proc       proc   defaults       0    0
sysfs          /sys        sysfs  defaults       0    0
devpts         /dev/pts    devpts gid=4,mode=620 0    0
tmpfs          /dev/shm    tmpfs  defaults       0    0
# End /etc/fstab
=== /etc/fstab end ==



but when I reboot , I got " kernel panic , not syncing:VFS:unable to mount root 
fs on unknown-block(2,0)" , actually I try many different combinations just 
wouldn't boot and got kernel panic every time .
@_@

BTW , I didn't change any things when I compile kernel .


--- 09/10/21 (三),Bruce Dubbs  :

> 
> > /boot/device.map should contains a listing of all
> drives, and the
> > partition they map to.
> > 
> > ex:/ if you have 2 drives, and one floppy disk, it
> could contain.
> > (hd0) /dev/sda
> > (hd1) /dev/sdb
> > (fd0) /dev/floppy
> > 
> > 
> > I apologize, but I never did test to see if device.map
> is
> > automatically generated, or if I created it when I
> setup my grub2
> > system.  Either way, echo "(hd0) /dev/sda" >
> /boot/device.map should
> > fix it
> 
> I think that should be /boot/grub/device.map.  At
> least that is how it is on my 
> system.
> 
>    -- Bruce
> 
> -- 
> http://linuxfromscratch.org/mailman/listinfo/lfs-dev
> FAQ: http://www.linuxfromscratch.org/faq/
> Unsubscribe: See the above information page
>


___ 
 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! 
 http://messenger.yahoo.com.tw/
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page


Re: I got error at chapter 8.4. GRUB-0.97

2009-10-26 Thread kevin631012
Hi All,
good news is I add SATA drivers in my kernel . it's able to Mount /dev/root now 
. Thanks for all of your information and clues .
PS: bad new is I have another problems now ! 
^o^


--- 09/10/23 (五),ALIP BUDIANTO  寫道:

> 寄件者: ALIP BUDIANTO 
> 主旨: Re: I got error at chapter 8.4. GRUB-0.97
> 收件者: "LFS Developers Mailinglist" 
> 日期: 2009年10月23日,五,上午7:58
> What driver I do need bacause I have
> the same problem and some of my
> boot drive info is its a USB flash stick, LFS on /dev/sdb1,
> and
> usbutils installed
> 
> On Thu, Oct 22, 2009 at 6:46 AM, Bruce Dubbs 
> wrote:
> > David Jensen wrote:
> >> On Thu, 22 Oct 2009 16:05:19 +0800 (CST)
> >> kevin631012 
> wrote:
> >>
> >>> ### BEGIN /etc/grub.d/10_linux ###
> >>> menuentry "GNU/Linux, Linux 2.6.30.5" {
> >>>     insmod ext2
> >>>     set root=(hd1,2)
> >>>     search --no-floppy --fs-uuid --set
> >>> e4adbac2-a338-4305-bafe-73f2adb307da
> >>> linux    /boot/lfskernel-2.6.30.5
> root=/dev/sdb2 ro }
> >>
> >> should be set root=(hd1,1)  partitions start at
> 0, same as drives.
> >>
> >> maybe
> >
> > No, grub2 is based from 1, just like the partition
> labels sda1, sdb2, etc.
> > This is different form grub1.
> >
> > The problem is in the kernel, not grub.  Grub is
> doing it's job and starting the
> > kernel, but the panic is in the kernel.  The right
> drivers are not built into
> > the kernel as Nathan said.
> >
> >   -- Bruce
> >
> > --
> > http://linuxfromscratch.org/mailman/listinfo/lfs-dev
> > FAQ: http://www.linuxfromscratch.org/faq/
> > Unsubscribe: See the above information page
> >
> -- 
> http://linuxfromscratch.org/mailman/listinfo/lfs-dev
> FAQ: http://www.linuxfromscratch.org/faq/
> Unsubscribe: See the above information page
> 

___ 
 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! 
 http://messenger.yahoo.com.tw/
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page


fsck.ext3:devices or resource busy while try to open /dev/sdb

2009-10-26 Thread kevin631012


___ 
 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! 
 http://messenger.yahoo.com.tw/
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page


RE: fsck.ext3:devices or resource busy while tr y to open /dev/sdb

2009-10-26 Thread kevin631012
Hi All,
I got a problem as title . what I am thinking is what kind of driver will cause 
system halt like this ? because I turn on a lot of options in Kernel for sake 
of debugging boot issue . 


___ 
 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! 
 http://messenger.yahoo.com.tw/
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page


Re: RE: fsck.ext3:devices or resource busy while try to open /dev/sdb

2009-10-26 Thread kevin631012
Hi Mike,
Thanks , but this issue occurs while system booting . so , I wonder the way you 
mentioned how can I use ? it even not normally boot up yet . sorry I didn't 
tell in detail . @_@ 


> The message is usually seen when
> attempting to dismount a drive that has 
> a file that is still open by a process.  You can
> usually use lsof and ps 
> to figure out which process has a file open on the device.
> 
> kevin631012 wrote:
> > Hi All,
> > I got a problem as title . what I am thinking is what
> kind of driver will cause system halt like this ? because I
> turn on a lot of options in Kernel for sake of debugging
> boot issue . 
> >


___ 
 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! 
 http://messenger.yahoo.com.tw/
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page