Re: Grub-1.97 problems

2009-11-12 Thread linux fan
On 11/12/09, Bruce Dubbs bruce.du...@gmail.com wrote:
 Bruce Dubbs wrote:

 I just had an aha!

 Try rebuilding grub without the --disable-largefile switch.  Your
 partition is 11G and that probably is causing it to fail.  I don't know
 what the threshold is.  I'll investigate.

 man 2 open

O_LARGEFILE
  (LFS) Allow files whose sizes cannot be represented in an off_t
  (but  can  be  represented  in an off64_t) to be opened.
  ...


AHA!

r...@lfs:/# grub-install --grub-setup=/bin/true  /dev/sda
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0)   /dev/fd0
(hd0)   /dev/sda
(hd1)   /dev/sdb

 In this case LFS stands for Large File Support.  Doing some Googling, it
 looks like the limit is 2G without Large File Support.


 I've always used a standalone /boot partition of 100M or so and haven't
 run into this before.

I used to use the standalone /boot, but I would get confused and have
/boot/boot/grub.
I started making a symlink at the root of the /boot partition like this:
ln -s boot/grub grub

Then I could always say /boot/grub ... mounted or not

I kept building kernels, and /boot partition kept filling up, and
eventually I switched to just using a /boot directory on the root /.

Now I still make that symlink on the root /
ln -s boot/grub grub
so I can be really lazy and type /grub/menu.lst ... er, uh /grub/grub.cfg ...

I'm going to reboot and try it now.

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


Re: Grub-1.97 problems

2009-11-12 Thread linux fan
On 11/12/09, Bruce Dubbs bruce.du...@gmail.com wrote:
 Bruce Dubbs wrote:

 I just had an aha!

 Try rebuilding grub without the --disable-largefile switch.

That worked!

Now some more things.
.. I needed to suppress probing the ancient mobo ide drive that is not
connected to avoid a 2 minute wait for it not to find a drive
connected ...
cat /etc/default/grub
GRUB_CMDLINE_LINUX=ide_core.noprobe=0.0 ide_core.noprobe=0.1

... Grub2 ..hardcoded.. what your kernel basname must be like vmlinu[zx]...
ln -s lfskernel-2.6.31.4-noremap vmlinux-2.6.31.4-noremap
ls -l vmlinux-2.6.31.4-noremap
lrwxrwxrwx 1 root root 26 2009-11-12 09:34 vmlinux-2.6.31.4-noremap -
lfskernel-2.6.31.4-noremap

... Make a cfg
grub-mkconfig -o /boot/grub/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/vmlinux-2.6.31.4-noremap
done

cat /boot/grub/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, with Linux 2.6.31.4-noremap {
insmod ext2
set root=(hd0,11)
search --no-floppy --fs-uuid --set 6e97d350-d12d-49d9-954c-169e328ba062
linux   /boot/vmlinux-2.6.31.4-noremap root=/dev/sda11 ro
ide_core.noprobe=0.0 ide_core.noprobe=0.1
}
menuentry GNU/Linux, with Linux 2.6.31.4-noremap (recovery mode) {
insmod ext2
set root=(hd0,11)
search --no-floppy --fs-uuid --set 6e97d350-d12d-49d9-954c-169e328ba062
linux   /boot/vmlinux-2.6.31.4-noremap root=/dev/sda11 ro
single ide_core.noprobe=0.0 ide_core.noprobe=0.1
}

Now 2 questions:

1 - In the GNU GRUB version 1.97 screen, when you type 'help', how to
keep it from scrolling so that you cannot read it?

2 - When editing an entry in GNU GRUB version 1.97 screen (in emacs
like ..), can it use a different editing mode that has a cursor and
works like it did in grub-legacy?
I have had many occasions when I needed to edit an entry on-the-fly to
get things going.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Grub-1.97 problems

2009-11-12 Thread linux fan
On 11/11/09, Bruce Dubbs bruce.du...@gmail.com wrote:

 # grub-install --grub-setup=/bin/true  /dev/sda11

 This should be /dev/sda, but I see you tried that too.

Now I really _want_ to install grub on individual partitions so that I
can chainloader to different installations like grub-legacy has let me
do for years.

grub-install /dev/sdb8
grub-setup: warn: Attempting to install GRUB to a partition instead of
the MBR.  This is a BAD idea.
grub-setup: warn: Embedding is not possible.  GRUB can only be
installed in this setup by using blocklists.  However, blocklists are
UNRELIABLE and its use is discouraged.
grub-setup: error: If you really want blocklists, use --force.

USE THE FORCE, LUKE ...

grub-setup --force /dev/sdb8
grub-setup: warn: Attempting to install GRUB to a partition instead of
the MBR.  This is a BAD idea.
grub-setup: warn: Embedding is not possible.  GRUB can only be
installed in this setup by using blocklists.  However, blocklists are
UNRELIABLE and its use is discouraged.

It didn't ...
It it didn't put grub on /dev/sdb8 ... the grub-legacy is still there
GNU Grub 0.97

Plus, grub-legacy used to let you setup grub from the grub command
line is you had booted from a floppy, or a cd, or some other way.

I think that is a major function loss.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Grub-1.97 problems

2009-11-12 Thread linux fan
On 11/12/09, Bruce Dubbs bruce.du...@gmail.com wrote:

 The problem with GRUB Legacy is that it didn't support 64-bit systems --
 at least it have to be built from a 32-bit system.  This is a major
 drawback in that virtually every new Intel/AMD system is 64-bit capable.

Ok, maybe I just keep this in my back pocket:
URL=ftp://alpha.gnu.org/gnu/grub/grub-0.97.tar.gz;
patch -Np1 -i ../grub-0.97-disk_geometry-1.patch
patch -Np1 -i ../grub-0.97-256byte_inode-1.patch
./configure --prefix=/opt/grub1 
make 
make install

and be so.. careful.. to be the 'grub-install' I want at the time.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: 8.4. GRUB-0.97

2009-11-19 Thread linux fan
On 11/19/09, Daniel Jäderberg ingolf2...@hotmail.com wrote:
 so then i tried to install grub2 as suggested. and i followed the hint.
 3) grub-mkconfig -o /boot/grub/grub.cfg

 and i still get nothing when i do the grub-mkconfig -o /boot/grub/grub.cfg

grub2 wants the kernel name to begin with vmlinux or vmlinuz instead
of lfskernel
ex: vmlinux-2.6.31.6
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Segmentation fault after stripping

2009-11-23 Thread linux fan
Segmentation fault occurs right after stripping in chapter05.

I am building lfs trunk using jhalfs trunk.

The stripping step succeeds, but the next step which is to
restore-luser-env errors. The restore-luser-env step only has to copy
the saved $(LUSER_HOME)/.bashrc.XXX back to .bashrc, but that fails:

 Building target 058-stripping
 [++| ] 0 min. 10 sec
 Target 058-stripping OK

/bin/bash: line 1: 27848 Segmentation fault  make BREAKPOINT=074-gcc LUSER
make: *** [mk_LUSER] Error 139

As you can see, the stripping succeeded, but it immediately fails on
the next bash command.

Here is from sys.log:
Nov 23 15:25:32 lfs sudo:  wnh : TTY=pts/0 ; PWD=/mnt/lfs/jhalfs ;
USER=root ; COMMAND=/bin/su - jhalfs -c source .bashrc  cd
/mnt/lfs/jhalfs  make BREAKPOINT=074-gcc LUSER
Nov 23 15:25:42 lfs kernel: make[27848]: segfault at 7b0 ip 40008fdd
sp bfccaaa0 error 4 in ld-2.11.so (deleted)[4000+1d000]

I have the build backed up right after textinfo-ch5.
I have restored the build dir and restarted and it Segfaults every
time at the same place.

I tried a 20 second sleep at the end of the stripping, but it still Segfaults.

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


Re: Segmentation fault after stripping

2009-11-23 Thread linux fan
On 11/23/09, Aleksandar Kuktin wrote:
 As I have not tried jhalfs, a question, just to be clear: you are
 running the make command via automated means, after stripping, in a
 single slurp (from the same script)?

jhalfs automates from start to finish.
I have used it to build LFS 6.2.0, 6.3, and 6.4 and it never had a
problem on the stripping.

 If so, try running it manually after stripping. As in - your toolchain
 gets stripped, jou get your shell prompt back, and then you run the
 make command.

Last night, I tried restarting make after it came back to the shell
prompt and all kinds of system problems occurred :
  It barfed badly when trying to umount the build dir
  System choked on attempt to shutdown
  It just got the situation to be unstable
  The sys.log showed that the attempted umount triggered kernel bug/oops
  I managed to init 1 to single user mode to get as quiet as possible
before poweroff

So, I don't want to pretend that everything would be ok.
There seems to be something incompatible about doing stripping in the
development lfs book.

Right now, I set it to bypass the stripping altogether and it is in
the middle of building glibc-ch6 -- ok so far.

I could roll back to textinfo-ch5 if anybody has an idea to test how
to keep stripping from causing the segfaults.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Segmentation fault after stripping

2009-11-23 Thread linux fan
On 11/23/09, Bruce Dubbs bruce.du...@gmail.com wrote:
 Is there any possibility
 that there could be a memory or disk problem?  Are you sure you have
 enough disk space?

Good thinking, but doesn't seem to be space issue:

top - 19:43:27 up 11:00,  1 user,  load average: 1.06, 1.03, 1.04
Tasks:  77 total,   2 running,  75 sleeping,   0 stopped,   0 zombie
Cpu(s): 60.0%us,  7.5%sy,  0.0%ni, 30.8%id,  1.5%wa,  0.1%hi,  0.1%si,  0.0%st
Mem:   1554504k total,  1231544k used,   322960k free,81272k buffers
Swap:   522072k total,0k used,   522072k free,   943912k cached

df -h
FilesystemSize  Used Avail Use% Mounted on
/dev/sda11 11G  7.6G  2.7G  74% /
tmpfs 760M 0  760M   0% /dev/shm
/dev/sdd105.1G  2.4G  2.5G  50% /mnt/lfs
shm   760M 0  760M   0% /mnt/lfs/dev/shm

/mnt/lfs is the build dir

This suspicious, scary message right after strip doesn't seem to
indicate hardware:
Nov 23 15:10:36 lfs kernel: make[27639]: segfault at 7b0 ip 40008fdd
sp bf93c390 error 4 in ld-2.11.so (deleted)[4000+1d000]
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Segmentation fault after stripping

2009-11-23 Thread linux fan
I must clarify my confusion.
I am supposing that you would like for me to roll back to the point
where it is to be stripped.
Then strip.
Then run /tools/command on /tools/file
Correct?
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Segmentation fault after stripping

2009-11-23 Thread linux fan
On 11/23/09, Bruce Dubbs wrote:
 To check things out a little more, you can try

Note: I had built up thru gmp-ch6 which is in the chroot

Intending to umount and roll back, I get:

df -ha
FilesystemSize  Used Avail Use% Mounted on
/dev/sda11 11G  7.6G  2.7G  74% /
/proc0 0 0   -  /proc
sysfs0 0 0   -  /sys
devpts   0 0 0   -  /dev/pts
tmpfs 760M 0  760M   0% /dev/shm
/dev/sdd105.1G  2.0G  2.9G  40% /mnt/lfs
/dev  760M  240K  759M   1% /mnt/lfs/dev
devpts   0 0 0   -  /mnt/lfs/dev/pts
shm   760M 0  760M   0% /mnt/lfs/dev/shm
proc 0 0 0   -  /mnt/lfs/proc
sysfs0 0 0   -  /mnt/lfs/sys
r...@lfs:~# umount /mnt/lfs/sys
r...@lfs:~# umount /mnt/lfs/proc
r...@lfs:~# umount /mnt/lfs/dev/shm
r...@lfs:~# umount /mnt/lfs/dev/pts
r...@lfs:~# umount /mnt/lfs/dev
r...@lfs:~# umount /mnt/lfs

umount /mnt/lfs
Segmentation fault

And triggers some kernel bug(?) in sys.log:
Nov 23 22:20:57 lfs kernel: sb orphan head is 131076
Nov 23 22:20:57 lfs kernel: sb_info orphan list:
Nov 23 22:20:57 lfs kernel:   inode sdd10:131076 at d5762128: mode
100600, nlink 0, next 131075
Nov 23 22:20:57 lfs kernel:   inode sdd10:131075 at eec1a64c: mode
100600, nlink 0, next 0
Nov 23 22:20:57 lfs kernel: [ cut here ]
Nov 23 22:20:57 lfs kernel: kernel BUG at fs/ext3/super.c:435!
Nov 23 22:20:57 lfs kernel: invalid opcode:  [#1]
Nov 23 22:20:57 lfs kernel: last sysfs file:
/sys/devices/pci:00/:00:01.0/:01:00.0/resource
Nov 23 22:20:57 lfs kernel: Modules linked in: usblp snd_ens1371
Nov 23 22:20:57 lfs kernel:
Nov 23 22:20:57 lfs kernel: Pid: 22478, comm: umount Not tainted
(2.6.31.4-noremap #2) System Name
Nov 23 22:20:57 lfs kernel: EIP: 0060:[c10c2926] EFLAGS: 00010216 CPU: 0
Nov 23 22:20:57 lfs kernel: EIP is at ext3_put_super+0x1f6/0x200
Nov 23 22:20:57 lfs kernel: EAX: d5762108 EBX: f687a320 ECX: 
EDX: f687a320
Nov 23 22:20:57 lfs kernel: ESI: f687a260 EDI: f689c800 EBP: c3a4df10
ESP: c3a4dee4
Nov 23 22:20:57 lfs kernel:  DS: 007b ES: 007b FS:  GS: 0033 SS: 0068
Nov 23 22:20:57 lfs kernel: Process umount (pid: 22478, ti=c3a4c000
task=f64124f0 task.ti=c3a4c000)
Nov 23 22:20:57 lfs kernel: Stack:
Nov 23 22:20:57 lfs kernel:  c13e0d58 f689c950 00020003 eec1a64c
8180   f687a320
Nov 23 22:20:57 lfs kernel: 0 f689c800 c13365c0 f700eea0 c3a4df28
c107208d   f6d7f400
Nov 23 22:20:57 lfs kernel: 0 0003 c3a4df38 c1072135 f689c800
c145bf40 c3a4df48 c10725a7 f700eea0
Nov 23 22:20:57 lfs kernel: Call Trace:
Nov 23 22:20:57 lfs kernel:  [c107208d] ? generic_shutdown_super+0x4d/0xd0
Nov 23 22:20:57 lfs kernel:  [c1072135] ? kill_block_super+0x25/0x40
Nov 23 22:20:57 lfs kernel:  [c10725a7] ? deactivate_super+0x37/0x50
Nov 23 22:20:57 lfs kernel:  [c1084eb0] ? mntput_no_expire+0x50/0x60
Nov 23 22:20:57 lfs kernel:  [c108512f] ? sys_umount+0x4f/0x2d0
Nov 23 22:20:57 lfs kernel:  [c10853c7] ? sys_oldumount+0x17/0x20
Nov 23 22:20:57 lfs kernel:  [c1002d48] ? sysenter_do_call+0x12/0x26
Nov 23 22:20:57 lfs kernel: Code: 00 00 89 44 24 04 e8 eb f5 25 00 8b
45 f0 8b 00 89 45 f0 89 c2 8b 00 0f 18 00 90 39 d3 75 9b 3b 9e c0 00
00 00 0f 84 96 fe ff ff 0f 0b eb fe 8d b6 00 00 00 00 55 89 e5 56 53
89 c3 83 ec 08 8b
Nov 23 22:20:57 lfs kernel: EIP: [c10c2926]
ext3_put_super+0x1f6/0x200 SS:ESP 0068:c3a4dee4
Nov 23 22:20:57 lfs kernel: ---[ end trace a11c2efe1c36f7b4 ]---
Nov 23 22:20:57 lfs kernel: [ cut here ]
Nov 23 22:20:57 lfs kernel: WARNING: at kernel/exit.c:895 do_exit+0x4df/0x5e0()
Nov 23 22:20:57 lfs kernel: Hardware name: System Name
Nov 23 22:20:57 lfs kernel: Modules linked in: usblp snd_ens1371
Nov 23 22:20:57 lfs kernel: Pid: 22478, comm: umount Tainted: G  D
   2.6.31.4-noremap #2
Nov 23 22:20:57 lfs kernel: Call Trace:
Nov 23 22:20:57 lfs kernel:  [c1321f09] ? printk+0x18/0x1a
Nov 23 22:20:57 lfs kernel:  [c102531f] ? do_exit+0x4df/0x5e0
Nov 23 22:20:57 lfs kernel:  [c10222bc] warn_slowpath_common+0x6c/0xc0
Nov 23 22:20:57 lfs kernel:  [c102531f] ? do_exit+0x4df/0x5e0
Nov 23 22:20:57 lfs kernel:  [c1022325] warn_slowpath_null+0x15/0x20
Nov 23 22:20:57 lfs kernel:  [c102531f] do_exit+0x4df/0x5e0
Nov 23 22:20:57 lfs kernel:  [c1003389] ? common_interrupt+0x29/0x30
Nov 23 22:20:57 lfs kernel:  [c1321f09] ? printk+0x18/0x1a
Nov 23 22:20:57 lfs kernel:  [c10221ef] ? oops_exit+0x2f/0x40
Nov 23 22:20:57 lfs kernel:  [c1005e15] oops_end+0x85/0x90
Nov 23 22:20:57 lfs kernel:  [c1005f90] die+0x50/0x70
Nov 23 22:20:57 lfs kernel:  [c1003871] do_trap+0x91/0xd0
Nov 23 22:20:57 lfs kernel:  [c1003c70] ? do_invalid_op+0x0/0xa0
Nov 23 22:20:57 lfs kernel:  [c1003cf7] do_invalid_op+0x87/0xa0
Nov 23 22:20:57 lfs kernel:  [c10c2926] ? ext3_put_super+0x1f6/0x200
Nov 23 22:20:57 lfs kernel:  [c10224eb] ? 

Re: Segmentation fault after stripping

2009-11-23 Thread linux fan
On 11/24/09, Bruce Dubbs wrote:

 Have you tried booting int memtest86+
 and checking your memory?


I don't know whereis or howto memtest86+.
I guess this will be a multi-day adventure.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: UDEV - Not Leaving Well Enough Alone

2009-11-24 Thread linux fan
On 11/24/09, Simon Geard delga...@ihug.co.nz wrote:
 On Mon, 2009-11-23 at 18:29 -0600, al...@verizon.net wrote:
 The last thing is to start a flame here;  I still see a
 need for floppies on Linux

Agree there is a need for floppies.
I just used a floppy to boot memtest86+ which found a bad memory bank
was bugging my system. I keep at least a few boot floppies around for
the rare occasion when I totally mess everything up. And there is
sometimes an occasion to  reboot to windows to sneaker a file over
there.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Segmentation fault after stripping

2009-11-24 Thread linux fan
On 11/24/09, Bruce Dubbs wrote:

 I'd start over.  Having a suspect base is not a good idea.  Try jhalfs
 to automate the build.

Yes jhalfs has been working for me.

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


Re: UDEV - Not Leaving Well Enough Alone

2009-11-24 Thread linux fan
On 11/24/09, Bruce Dubbs wrote:
 That works for you, but for most people, it's far easier to use a usb
 thumb drive with capacities in GB to do the same thing.


I know that it is impossible to believe, but I have yet to purchase my
first usb thumb drive.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: menu.lst and fstab

2009-11-24 Thread linux fan
On 11/24/09, Ken Moffat wrote:
  The names of the devices in grub and within linux are two separate
 things.  For an explanation of why /dev/hdX becomes /dev/sdX
 see Simon's response to another thread.

  /dev/hdX (from the old IDE drivers) is now regarded as legacy, except
 for old ppc macintoshes.


I'm just saying that if I connect an old WDC WD600BB IDE hard drive to
the ribbon cable from mobo, it will be /dev/hdx in linux and in grub.
If I connect same hard drive to a sata converter and hook it to a sata
port, it will be /dev/sdx to linux and hd to grub-speak. Whether it is
legacy, it still can work.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: grub problem

2009-11-24 Thread linux fan
On 11/24/09, Bruce Dubbs wrote:
 If you are getting a kernel panic, it's not grub.  Grub did it's job and
 loaded the kernel, then the kernel had a problem.

Agree.
But, there are 2 places that cause kernel panic:

1) grub's kernel/linux line, the root=/dev/[is_incorrect] parameter
2) fstab's:  [is_incorrect] / root line

Kernel may panic if it can't find its system in (1)
Kernel may find (1), but (2) is wrong

(1) and (2) can even be different if the kernel can use it.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: UDEV - Not Leaving Well Enough Alone

2009-11-24 Thread linux fan
On 11/24/09, Bruce Dubbs wrote:
 I don't know where you live, but I've seen them given away as
 promotions.  Otherwise they are very common at $10 or less.

Some day, I might get one.
I don't care what udev does as long as it doesn't cause problems.
I've got the 16 fd things in dev and was never aware of them or of any
problem with them.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Segmentation fault after stripping

2009-11-24 Thread linux fan
On 11/24/09, Bruce Dubbs wrote:
 linux fan wrote:
 Intending to umount and roll back, I get:

 df -ha
 FilesystemSize  Used Avail Use% Mounted on
 /dev/sda11 11G  7.6G  2.7G  74% /
 /proc0 0 0   -  /proc
 sysfs0 0 0   -  /sys
 devpts   0 0 0   -  /dev/pts
 tmpfs 760M 0  760M   0% /dev/shm
 /dev/sdd105.1G  2.0G  2.9G  40% /mnt/lfs
 /dev  760M  240K  759M   1% /mnt/lfs/dev
 devpts   0 0 0   -  /mnt/lfs/dev/pts
 shm   760M 0  760M   0% /mnt/lfs/dev/shm
 proc 0 0 0   -  /mnt/lfs/proc
 sysfs0 0 0   -  /mnt/lfs/sys
 r...@lfs:~# umount /mnt/lfs/sys
 r...@lfs:~# umount /mnt/lfs/proc
 r...@lfs:~# umount /mnt/lfs/dev/shm
 r...@lfs:~# umount /mnt/lfs/dev/pts
 r...@lfs:~# umount /mnt/lfs/dev
 r...@lfs:~# umount /mnt/lfs

 umount /mnt/lfs
 Segmentation fault


Just out of curiosity, they are looking into this kernel BUG at
fs/ext3/super.c:435
http://marc.info/?l=linux-kernelm=125880707213275w=2
which happens after (re)building glibc and test, and then doing umount.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: grub problem

2009-11-25 Thread linux fan
On 11/25/09, su.sinnes wrote:

 is there anything i can do?


We've all been down this road before ... whatever we do, grub doesn't
seem to work ...

You have gotten grub to load a kernel ... that is getting close.

The key marked PrtScr SysRq can stop the display from scrolling
while booting -- you have to be quick.
 / CTRL-Q resume scolling

Can you get with pencil and paper the messages that happen just before the pan
ic.


Does kernel config include CONFIG_EXT3_FS=y
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: grub problem

2009-11-25 Thread linux fan
On 11/25/09, su.sinnes wrote:
 The key marked PrtScr SysRq can stop the display from scrolling
 it did not work i think it's because im on a laptop and i need to hold
 down the fn key to use prt sc and sysrq, and it is not supported.
 neither did ctrl + s

OOPS, I might have typed before I had my coffee ...

I might have meant the Pause Break key ... let me try that.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: grub problem

2009-11-25 Thread linux fan
On 11/23/09, su.sinnes su.sin...@mail.com wrote:
 Hi im stuck with grub, as soon as i restart i get into the grub shell

I reserve the right to be wrong, but ...
While you can't compile the old grub under 64bit, you could still use
the old grub ... can't you?
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: build problem LFS 6.5

2009-11-28 Thread linux fan
On 11/28/09, stosss wrote:
 I am only using the lfs 6.3 LiveCD (this is the newest and last lfs
 LiveCD released) so I will have a working environment to build  lfs

Unless I am mistaken, everything in ch6-8 is done within chroot.
Then it is imperative to be certain that
6.2. Preparing Virtual Kernel File Systems
6.4. Entering the Chroot Environment
was done correctly before doing anything else.
All typing, scripts, etc, are meant to be whithin that chroot.
If you get out, is is possible to get back in, but it is tricky.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: build problem LFS 6.5

2009-11-28 Thread linux fan
On 11/28/09, Baho Utot wrote:

 make test | tee $CURRDIR/06.58.Check.log
 make install | tee $CURRDIR/06.58.Install.log
Logging helps so much when things go wrong.

As already mentioned

 Scripting an LFS build is *hard*

 1.  Use jhalfs.  That is the most consistent way to do things
 and it keeps logs of everything you do.

I have used jhalfs time and time again and it succeeds.
You can watch the logs while it is building with tail -f.
You can find error clues to search google often getting ideas.

Most scripting hard codes specific version -- jhalfs is more reusable.

Note: jhalfs-2.3.1 on the live cd can't handle everything about
LFS-6.4 and later.
jhalfs-2.3.2 or svn-trunk is needed for LFS-6.4 and later.
Linux from scratch ALFS page tells how to download the latest version.

I only suggest this due to amount of time spent and it failing.
You can debrief what jhalfs did with its scripts in
lfs-commands/chapterXX/* and maybe detect what went wrong in handmade script.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: linux-2.6.31.6 doesn't boot

2009-11-29 Thread linux fan
On 11/29/09, Alberto Hernando wrote:
 ...  The error is the same, VFS
 can't find a valid root system, please add a valid root option. I
 .. and /etc/fstab is as the book says.

If /etc/fstab is as the book says (verbatim), it won't work.
You must interpolate
/dev/xxx /fff  defaults1 1
replacing xxx and fff respectively.
Your other post suggests that it would be:
/dev/hda8/ext3  defaults1 1

The VFS can't find ... suggests that the boot loader (grub/lilo)
done its job and the kernel was loading until it choked on the
filesystem fstab told it,

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


Re: linux-2.6.31.6 doesn't boot

2009-11-29 Thread linux fan
On 11/29/09, linux fan wrote:

 The VFS can't find ... suggests that the boot loader (grub/lilo)
 done its job and the kernel was loading until it choked on the
 filesystem fstab told it,

If the message is exactly:
Kernel panic -not syncing VFS: unable to mount root fs on unknown-block(0,0)

Then it is the root= parameter on the linux/kernel line that is wrong
-- while the kernel is loading, it gets to the point where it wants to
use that parameter, but it is bogus so there is nothing else to do but
panic.

I just tried it accidentally and it gave that message.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Linux-2.6.30.9 build failure

2009-12-03 Thread linux fan
On 12/3/09, Simon Geard wrote:
 Wow... if you *do* get a new LFS build running on that, I'd be curious
 to know how long it took...

My first guess is 11 days or so.

Calculating from:
http://www.linuxfromscratch.org/~sbu
MHz=100
one_sbu=5848
lfs_6_5_sbus=153
seconds=899422
time=10,9:50:22
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Linux-2.6.30.9 build failure

2009-12-03 Thread linux fan
On 12/3/09, Mike McCarty wrote:

 You don't necessarily have to build on that machine. However,
 I realize that may be part of the challenge.

Hmm, if LFS 6.5 cross compiles, could you build it on a fast machine
for the slow machine and then put it on the slow machine with rsync or
something?
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Clock Problems

2009-12-15 Thread linux fan
On 12/14/09, Bruce Dubbs wrote:

 Try the fix Ken suggested (CONFIG_HZ_100) and make sure you turn off the
 SMP option.  That has a lot of extra code you don't need.


Is there a way to 'nice' the build so that it doesn't use all 100% cpu?

Does the clock moving only a tick or two during the entire build break it?
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re:

2009-12-15 Thread linux fan
On 12/15/09, William Immendorf will.immend...@gmail.com wrote:
 On Tue, Dec 15, 2009 at 7:32 AM, Pixel 73 pixe...@hotmail.com wrote:
 I am doing LFS 6.3. Everything went well until Chapter 6.12, GCC-4.1.2.
 When
 Please don't use LFS 6.3, unless your host system is old enough to
 build it. I recommend LFS 6.5 from now on.

I disagree with that.

LFS 6.3 is stable and has the matching set BLFS 6.3 which can be built
without problems. LFS 6.3 is also available on the latest live CD. For
learning, I think it is valid to build it.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: LFS 6.3 Chapter 6.12, GCC-4.1.2 startfiles check fails -- no output

2009-12-15 Thread linux fan
On 12/15/09, Pixel 73 wrote:

 How can I analyze which of my previous steps went wrong?

Did the make command really complete without errors?

I always try to keep a log containing all the output because the
screen scrolls by, and later, I wish I could see the errors that went
by so that I can search google to get clues.
Something like this:
make 21 | tee my_build_log

Would it be a problem if I just delete all extracted and compiled
 folders of chapter 6 with rm -R and start again
 at the beginning of chapter 6?

As long as you didn't do 'make install', it is possible to remove the
directory extracted from the source tarball, then extract the source
tarball again, and do the package over with a clean sources. I think
that is the way to do it when you have reason to believe that you
could have made a mistake in typing your commands.

I think you would want to start over 6.12. GCC-4.1.2 ... not the
beginning of chapter 6.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: LFS 6.3 Chapter 6.12, GCC-4.1.2 startfiles check fails -- no output

2009-12-15 Thread linux fan
On 12/15/09, linux fan wrote:

 As long as you didn't do 'make install', it is possible to remove the
 directory extracted from the source tarball, then extract the source
 tarball again, and do the package over with a clean sources. I think

I forgot ... with gcc, you also want to remove the gcc-build directory.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re:

2009-12-15 Thread linux fan
On 12/15/09, Mike McCarty mike.mcca...@sbcglobal.net wrote:
 Pixel 73 wrote:
 I am using LFS LiveCD 6.3. So that should be no problem then, right? 
 
  

 You can use any distro which can build the tools, which is any
 distro I know of. Ignore the peanut gallery.


Yes, and you can use the LiveCD 6.3 and it works fine and then you can
build BLFS 6.3 too. But if you build BLFS 6.3 with LFS 6.5 there are
multiple problems due to GNU clamping down on older software 'taking
liberties'.

But anyway, FYI, this thread is suppressed on the web mailing list
because it has no subject, or because it has an argument.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: LFS 6.3 Chapter 6.12, GCC-4.1.2 startfiles check fails -- no output

2009-12-16 Thread linux fan
On 12/16/09, stosss  wrote:
 On 12/15/09, Pixel 73 wrote:
 Thank you very much for your help. What can I do, if I already did 'make
 install'? How can I uninstall again?

In linux, attempted uninstall risks more harm than good unless you
really know what might  break which is usually not the case.

At 6.12, GCC-4.1.2, the Readjusting the toolchain step has already
been done, so only a super-geek has any chance to go to anything
before that without starting at the beginning.

Something has gone wrong and it is possible that the resulting system
will be flawed. On the other hand, it is possible that you missed
something in the GCC-4.1.2 step. As an exercise, it may be possible to
remove the unpacked GCC-4.1.2 sources dir and the gcc-build dir and do
that step again. This time  paying close attention to the 'make and
'make -k check' and perhaps logging the output for close examination
like:
make 21 | tee my_log1
make -k check 21 | tee my_log2

If you get the same failure again, then it would be best to start over
from the beginning which you might be advised to do anyway.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: LFS 6.3 Chapter 6.12, GCC-4.1.2 startfiles check fails -- no output

2009-12-17 Thread linux fan
On 12/17/09, Pixel 73  wrote:
 But now I found out, that the startfiles show up when I am entering the
 following command:

 grep -o '/lib.*/crt[1in].*succeeded' dummy.log

(Can you see above how I trimmed the '' quoted text to just the part
I want to resond to?)

Show us the output of this command which is the same grep without the -o

grep '/lib.*/crt[1in].*succeeded' dummy.log

Usually, in the sources directory, or maybe in gcc-build, there is a
file config.log and at the top, it shows the configure command that
was used. Are you sure you had the configure command exactly as 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 6.3 Chapter 6.12, GCC-4.1.2 startfiles check fails -- no output

2009-12-17 Thread linux fan
On 12/17/09, linux fan  wrote:
 On 12/17/09, Pixel 73  wrote:
  Are you sure you had the configure command exactly as in the
 book ?


And I'm thinking ... I usually copy/paste each entire grey block and
look at i before pressing enter. Notice that the backslashes \ at the
end of some lines make the next be included so that the whole thing is
interpreted as one big line.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [Newbie, LFS-6.5]: Problems with binutils-Pass2 compilation..

2009-12-17 Thread linux fan
On 12/17/09, Abhinav Chaturvedi wrote:

 6. Any deviations from the document?
 
 As far as I remember, I have stuck to the text. However, I did create a
 separate build folder for Pass 2 called binutils-build2. I assumed that the
 build folder created in Pass 1 needed to be separate from that in Pass 2.

Always ...
Before I build a package, I remove any previously extracted source for
that package and any build-dir. I don't trust getting a clean build if
the unpacked sources directory got used earlier.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [Newbie, LFS-6.5]: Problems with binutils-Pass2 compilation..

2009-12-17 Thread linux fan
On 12/17/09, Abhinav Chaturvedi  wrote:

 Plus, when I gave the /sbin/swapon command, I got the message that my
 exisiting swap partition was busy

swapon: /dev/yyy: swapon failed: Device or resource busy

I think that just means it is already using that swap partition.

You can see what swap it is using with:
swapon -s
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: LFS 6.3 Chapter 6.12, GCC-4.1.2 startfiles check fails -- no output

2009-12-18 Thread linux fan
On 12/18/09, Pixel 73  wrote:

 trim the '' quoted text to just the part
 want to resond to
==
==


 grep '/lib.*/crt[1in].*succeeded' dummy.log

 is:
 attempt to open /bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../../../crt1.o
 succeeded
 attempt to open /bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../../../crti.o
 succeeded
 attempt to open /bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../../../crtn.o
 succeeded

Looks messed up.


 The first time I entered the configure command without the backslashes but
 all the commands in 'one line'. As I understand that should be no problem.
OK

 I also checked the config.log in gcc-build. Unfortunately I can't find the
 config-command I used in the config.log. But there are errors:

I did the first steps and I see that there is a config.status.

show:
head config.status


 configure:2284:17: error: gmp.h: No such file or directory
Not good -- it should find it .

In the gcc-build dir show:
pwd
df -ha
whoami
echo $PATH
uname -a
ls /var/log

I'm just hunting for clues of:
- Preparing Virtual Kernel File Systems
- Entering the Chroot Environment
- Being in the wrong place
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: How to script automate unTAR of packages

2009-12-28 Thread linux fan
On 12/28/09, Mikie wrote:
 I have difficulty understanding *why* you want to do this mass extraction.

 It's that much less typing.


For least typing, jhalfs lets you just type make and it does all
untarring and building.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Stuck at 5.7.1

2010-01-10 Thread linux fan
On 1/9/10, Abhinav Chaturvedi wrote:

 So I guess I am looking for someone to tell me - perhaps reassure me - that
 I could build my own shareable (on a disk) distro that could compete
 (outperform?) standard linux distros. I understand I would need to do other
 stuff - like arrange for an installer. But if I could know now from people
 who know better that its possible, then it will would help me persist.

My reason for building LFS is to have a system that is built the way I
want it. There is a Live-CD and there is a jhalfs tool for automating
the build. They do not come close to solving all the difficulties of
creating a distro. However, they are a beginning, and they prove that
there are possibilities. I think it is a matter of interest and
persistence.

In this interview
http://www.crazyengineers.com/gerard-beekmans-building-linux-from-scratch/
Gerard Beekmans said:

Once you finished building an LFS system, it’s fully functional and
there’s nothing inferior about it. There are countless number of LFS
systems in mission critical production environments around the world.
I tried a number of distributions and could not decide on any one.
... it became apparent that there would not be a single system that
would be perfect for me. So I set out to create my own Linux system
that would fully conform to my personal preferences.
Read the book we wrote for our users. But, don’t be afraid to deviate
from it. After all, that’s the whole point of the project: to make a
system for yourself, not according to somebody else’s specifications.


And in this interview
http://it.toolbox.com/blogs/locutus/its-linux-and-i-did-it-my-way-an-interview-with-gerard-beekmans-19686
he said:

Teaching has always been the primary goal of LFS. That will never
change, lest LFS ceases to be what it is. But there also is no limit
to teaching. As we all learn more about Linux system creation and
package integration, that knowledge ought to be shared with the
community. The LFS books are good places to store that information in
a concise format.

But I think we also cannot ignore the automated process requirements anymore.
As a prime example, I (of course) use LFS at work. All our Linux
servers are LFS based but there are times, I unfortunately am forced
to (temporarily) use a different system. Always due to time
constraints and ALFS isn't quite ready for this kind of deployment
with the unique needs some workplaces have.

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


Re: 70-persistent-net.rules not created

2010-01-12 Thread linux fan
On 1/12/10, jmsc...@setex.ipcallback.com jmsc...@setex.ipcallback.com wrote:
 so, in the name of progress, i like to solict advice on what to do next,

LFS-6.4 and earlier had:
for NIC in /sys/class/net/* ; do
INTERFACE=${NIC##*/} udevadm test --action=add --subsystem=net $NIC
done

I wonder why subsystem was later removed.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: 70-persistent-net.rules not created

2010-01-12 Thread linux fan
On 1/12/10, jmsc...@setex.ipcallback.com jmsc...@setex.ipcallback.com wrote:

 not clear that adding --subsystem would force INTERFACE to be exported to

Hmm,

Output of ls -d /sys/class/net/*
/sys/class/net/eth0  /sys/class/net/lo

Output of ls -dl /sys/class/net/*
lrwxrwxrwx 1 root root 0 2010-01-12 03:44 /sys/class/net/eth0 -
../../devices/pci:00/:00:09.0/net/eth0
lrwxrwxrwx 1 root root 0 2010-01-12 03:44 /sys/class/net/lo -
../../devices/virtual/net/lo

I made a quick script and named it fubar:
for NIC in /sys/class/net/* ; do
echo INTERFACE=${NIC##*/} udevadm test --action=add $NIC
done

Here is the output of 'sh fubar'
INTERFACE=eth0 udevadm test --action=add /sys/class/net/eth0
INTERFACE=lo udevadm test --action=add /sys/class/net/lo

I remove the rule in my /etc/udev/rules.d/70-persistent-net.rules
pertaining to eth0 (the only rule in the file).

I execute the command line:
INTERFACE=eth0 udevadm test --action=add /sys/class/net/eth0

And I get the exact same rule put back in and I did see this output
which is consistent with the ls -dl
import_uevent_var: import into environment: 'INTERFACE=eth0'
import_uevent_var: import into environment: 'IFINDEX=2'
udevadm_test: looking at device
'/devices/pci:00/:00:09.0/net/eth0' from subsystem 'net'

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


Re: 70-persistent-net.rules not created

2010-01-12 Thread linux fan
On 1/12/10, linux fan wrote:

 Just experimenting ...

It almost seems like export/import is fouled up.
The following block should print:
bar
..

foo= 
echo 'echo $foo'  fubar 
chmod 755 fubar 
foo=bar ./fubar 
echo .$foo.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Kernel panic - not syncing: No init found. Try passing init= option to kernel

2010-01-24 Thread linux fan
On 1/24/10, Rambabu Dasari babu4...@gmail.com wrote:
 Hi all,

 I am trying to build Linux from Scratch(LFS), while booting the kernel
 throughing the following error.

 [4.586704] Warning: unable to open an initial console.
 [4.592188] Failed to execute /init


6.2.1. Creating Initial Device Nodes, is supposed to have created null
and console. If these are not present on the filesystem at boot time,
it will panic the kernel.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Step 6.7. Linux-2.6.30.2 API Headers [Error]

2010-01-27 Thread linux fan
On 1/27/10, Andrew Benton b3n...@gmail.com wrote:
 On 27/01/10 19:13, Justin P. Mattock wrote:
 does your home directory have the proper permissions?
 i.g. chown name:name /home/name


 In LFS we compile in $LFS/sources which should have been chown lfs when
 you created the user lfs


I tested unpacking in a direcory in which I did not have write
permission and got different errors:

tar: linux-2.6.30.2: Cannot mkdir: Permission denied
Plus about one million ... Cannot open: No such file or directory ... messages

There was no complaint about executing bzip2
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Step 6.7. Linux-2.6.30.2 API Headers [Error]

2010-01-27 Thread linux fan
On 1/27/10, Justin P. Mattock justinmatt...@gmail.com wrote:
 Oops..
 I didn't really follow the book step by step.

The best results are by following the book instructions. Especially in
chapter 6 those first steps must be done correctly:

Set $LFS correctly
Preparing Virtual Kernel File Systems
Entering the Chroot Environment
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: SATA support in Linux kernel's menuconfig

2010-02-08 Thread linux fan
On 2/8/10, Andrew Benton b3n...@gmail.com wrote:
 On 08/02/10 15:04, Ken Moffat wrote:

 Indeed. I was wrong. They do work with libata. They were older machines
 that were working fine so I avoided the headache of altering their
 kernel configs. My first couple of attempts at getting libata to work
 ended with kernel panics. Not because of the kernel config, but because
 I forgot to change the grub boot line to /dev/sda (DOH!).
 So yeah, libata works fine. Sorry for the noise. Libata works better
 with udev. I don't need custom udev rules for each machine, the default
 udev rules creates the cdrom symlink pointing at /dev/sr0 which is owned
 by group cdrom.


I have both and udev works ok with everything.
CONFIG_IDE=y
CONFIG_ATA=y

This is an old system that has IDE cdroms/dvds and an IDE disk which
work fine as hdx. It also has SATA controller cards with some disks
that work fine as sdx.
The sata controllers were selected as
CONFIG_SATA_SIL24=y
CONFIG_SATA_PROMISE=y
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: BLFS-6.4RC1 or any

2010-02-17 Thread linux fan
On 2/17/10, Randy McMurchy ra...@linuxfromscratch.org wrote:
 If the community's expectations are that we have the most current
 release of every package in the most recent BLFS book, then the
 expectations are too high and are unreasonable.

I agree.

I think the most important thing is that following step by step
in the books should achieve a well functioning system.

Even if some distro has far more current software,
the lfs/blfs system is by far better.
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: Bash prompt in X-Windows

2010-02-23 Thread linux fan
On 2/23/10, Andrew Benton b3n...@gmail.com wrote:
 Do you source /etc/profile in ~/.bashrc?

Not the perfect answer, but it led to the answer.
Actually, /etc/bashrc should be sourced in ~/.bashrc and it was,
but I had missed creating /etc/bashrc in The Bash Shell Startup Files,
and /etc/bashrc:
 # Provides prompt for non-login shells, specifically shells started
  # in the X environment.
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Setclock - no link - bootscripts

2010-02-23 Thread linux fan
Is it just me, or why does bootscripts no longer create setclock link
/etc/rc.d/rcsysinit.d/S25setclock ?
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Setclock - no link - bootscripts

2010-02-23 Thread linux fan
On 2/23/10, Bruce Dubbs bruce.du...@gmail.com wrote:
 linux fan wrote:
 Is it just me, or why does bootscripts no longer create setclock link
 /etc/rc.d/rcsysinit.d/S25setclock ?

 It was removed about nine months ago because it is set by udev.

... supposed to be set by udev ...
But why, on my new LFS-6.5 system, does the system time does not get set to
hwclock time by the udev rule that is clearly there?

The bios/hwclock is set to local time and I have
UTC=0 in /etc/sysconfig/clock.

If I make the link the system clock gets set correctly.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: partition sizes

2010-03-04 Thread linux fan
On 2/16/10, Ken Moffat zarniwhoo...@googlemail.com wrote:
  I tend to use 5GB or less for a desktop system.
 If you plan to build *all* of gnome, or *all* of kde,
 that probably isn't enough space, but in my case
 I'd probably put /boot (100MB is big), swap if any,
 and 2 or 3 versions of '/' on the 20GB drive.

I did manage to build KDE4 on a 5GB partition, while having
the sources (build) directory hosted on a separate partition.

I typically think about 12GB for the root partition with no separate partitions
for home or usr leaves enough space for me. It depends on how much space
will be needed for applications and files that will accumulate.

For /boot, I just use a /boot directory instead of a separate partition
(which is my choice) and it works fine.

I like to create a logical partition in which 15 partitions may exist.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: my kernel won't recognize ide drives

2010-03-18 Thread linux fan
On 3/18/10, Andrew Benton b3n...@gmail.com wrote:
 On 18/03/10 19:24, Scott Kopel wrote:
 So the question is what kernel configuration changes do I have to make to
 get the kernel to recognize my ide drives?

I have old system with IDE drives and addon cards for sata dirves.
The systems sees tht IDE drives as hd and the SATA drives as sd.

grep ^[^#].*IDE\|^[^#].*ATA /boot/config-$(uname -r)
Shows these are in my config:

CONFIG_HAVE_IDE=y
CONFIG_IDE=y
CONFIG_IDE_XFER_MODE=y
CONFIG_IDE_TIMINGS=y
CONFIG_IDE_ATAPI=y
CONFIG_IDE_GD=y
CONFIG_IDE_GD_ATA=y
CONFIG_BLK_DEV_IDECD=y
CONFIG_BLK_DEV_IDECD_VERBOSE_ERRORS=y
CONFIG_IDE_PROC_FS=y
CONFIG_BLK_DEV_IDEDMA_SFF=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_ATA=y
CONFIG_ATA_VERBOSE_ERROR=y
CONFIG_ATA_ACPI=y
CONFIG_SATA_PMP=y
CONFIG_SATA_SIL24=y
CONFIG_ATA_SFF=y
CONFIG_SATA_PROMISE=y
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: write error with new version of tar

2010-03-19 Thread linux fan
On 3/19/10, Mike McCarty mike.mcca...@sbcglobal.net wrote:

 I wonder if head is closing the input pipe when it has read
 all it needs, and that's causing the error. I can't reproduce
 that problem with my host system, however.

It is tar-1.23 and not head

head --version
head (GNU coreutils) 8.4

tar -xf tar-1.23.tar.bz2
cd tar-1.23
./configure --prefix=/usr --bindir=/bin --libexecdir=/usr/sbin
make

src/tar --version
tar (GNU tar) 1.23
src/tar -tf ../tar-1.23.tar.bz2 | head -1
tar-1.23/
src/tar: write error

tar --version
tar (GNU tar) 1.22
tar -tf ../tar-1.23.tar.bz2 | head -1
tar: Record size = 8 blocks
tar-1.23/
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Which chipset for USB?

2010-03-22 Thread linux fan
On 3/21/10, brown wrap gra...@yahoo.com wrote:
 I'd be happy to get any keyboard and mouse to work.

I wonder is your usb problem just the keyboard and the mouse?

In my config
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_MOUSE_SERIAL is not set

I always thought XTKBD was obsoleted long ago.
To me, serial refers to 9-pin connector used long ago.

-When- does the keyboard start to not work?
 A. It works before grub only
 B. It works during grub but not after
 C. It works at a console login but not in X-windows

Does computer have a PS/2 style for a keyboard?
Do you have a keyboard with the PS/2 style plug?
Does it work differently than as a usb keyboard?
What kind of keyboard is it?

In short, should the focus be on getting the keyboard/mose to work rather
than on USB ?
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Which chipset for USB?

2010-03-22 Thread linux fan
On 3/22/10, linux fan linuxscra...@gmail.com wrote:

 -When- does the keyboard start to not work?

If it works at a console login but not in X-windows, that happened to me,
and I reconfigured xorg-server to fix the scenario where dbus and hal
were installed, but I was not running them, and thus the xorg-server
obligingly disabled the keyboard and mouse:
# xorg-server config
--disable-config-dbus \
--disable-config-hal \

Then again, it could be a problem in xorg.conf.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Which chipset for USB?

2010-03-22 Thread linux fan
On 3/22/10, brown wrap gra...@yahoo.com wrote:
 So now I went back to building a clean kernel that will at least boot again.

Possibly try
rm .config
make defconfig ARCH=x86_64

Then make menuconfig
and select things you know that you will need built into the kernel.
Try to avoid making any alterations to any input devices or usb
until you know the defaults don't work.

I refer to README in the kernel source tree.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Which chipset for USB?

2010-03-22 Thread linux fan
On 3/22/10, brown wrap gra...@yahoo.com wrote:
 Today I booted up the LFS 6.3 DVD and its works as well. I found its .config
 and tried to use it to build a kernal:


 make mrproper

 Copied it to .config

 make oldconfig

 make

 make modules_install

 and then copied everything to its place in the /boot directory.

 I had previuously done the same thing with the CentOS .config. Both end up
 in a 'panic'.


In order to try that method,
After you do the make oldconfig, you need to do make menuconfig
and select to build into the kernel Y the few things that are totally
necessary at boot time.
This would include at the very least
ext2
ext3
hard drive (I saw CONFIG_SATA_AHCI=y in your pastebin)

The rule is that if the kernel must have it at boot time in order to
access the hard drive and filesystem (before the filesystem has
been accessed), then it must be built into the kernel or made available
via initrd.

Centos uses initrd, so it can have those essential things as modules, but
if not using initrd, if those essential things are modules, it will panic.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Which chipset for USB?

2010-03-23 Thread linux fan
On 3/23/10, Simon Geard delga...@ihug.co.nz wrote:
 On Mon, 2010-03-22 at 11:39 -0700, brown wrap wrote:
 I tried that. NO inputs work. Not USB or PS/2 mouse and old XT keyboard.

 Ok, that's something. If no input devices work, that might point to
 options under HID Devices not being enabled (HID = Human Interface
 Device). I have the following enabled (as modules):

 Device Drivers - HID Devices
 Device Drivers - HID Devices - Generic HID support
 Device Drivers - HID Devices - USB Human Interface Device (full HID)
 support


Just some homework.
Wierd messages in the log.
Are config settings dubious?
IRQ problem?

--
brown pastebin sys.log has
http://pastebin.com/EGZYEdMe

Mar 16 22:46:27 guajome-dome kernel: [9.460024] ehci_hcd
:00:04.1: Unlink after no-IRQ?  Controller is probably using the
wrong IRQ.

--
brown pastebin config has
http://pastebin.com/TVa6pvbx

CONFIG_GENERIC_HARDIRQS=y
CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_GENERIC_PENDING_IRQ=y
CONFIG_HOTPLUG=y
CONFIG_SPARSE_IRQ=y
CONFIG_NUMA_IRQ_DESC=y
CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=y
# CONFIG_MEMORY_HOTPLUG is not set
CONFIG_HOTPLUG_CPU=y
CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
CONFIG_ACPI_HOTPLUG_CPU=y
# CONFIG_HOTPLUG_PCI_PCIE is not set
CONFIG_HT_IRQ=y
CONFIG_HOTPLUG_PCI=y
# CONFIG_HOTPLUG_PCI_FAKE is not set
# CONFIG_HOTPLUG_PCI_ACPI is not set
# CONFIG_HOTPLUG_PCI_CPCI is not set
# CONFIG_HOTPLUG_PCI_SHPC is not set
CONFIG_SERIAL_8250_SHARE_IRQ=y
CONFIG_SERIAL_8250_DETECT_IRQ=y
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
# CONFIG_DEBUG_SHIRQ is not set
# CONFIG_IRQSOFF_TRACER is not set
# CONFIG_SECURITY_ROOTPLUG is not set
CONFIG_HID_SUPPORT=y
CONFIG_HID=y
# CONFIG_HIDRAW is not set
CONFIG_USB_HID=y
CONFIG_HID_PID=y
CONFIG_USB_HIDDEV=y
# Special HID drivers
CONFIG_HID_A4TECH=y
CONFIG_HID_APPLE=y
CONFIG_HID_BELKIN=y
CONFIG_HID_CHERRY=y
CONFIG_HID_CHICONY=y
CONFIG_HID_CYPRESS=y
CONFIG_HID_DRAGONRISE=y
CONFIG_HID_EZKEY=y
CONFIG_HID_KYE=y
CONFIG_HID_GYRATION=y
CONFIG_HID_TWINHAN=y
CONFIG_HID_KENSINGTON=y
CONFIG_HID_LOGITECH=y
CONFIG_HID_MICROSOFT=y
CONFIG_HID_MONTEREY=y
CONFIG_HID_NTRIG=y
CONFIG_HID_PANTHERLORD=y
CONFIG_HID_PETALYNX=y
CONFIG_HID_SAMSUNG=y
CONFIG_HID_SONY=y
CONFIG_HID_SUNPLUS=y
CONFIG_HID_GREENASIA=y
CONFIG_HID_SMARTJOYPLUS=y
CONFIG_HID_TOPSEED=y
CONFIG_HID_THRUSTMASTER=y
CONFIG_HID_ZEROPLUS=y


CONFIG_SERIAL_8250_DETECT_IRQ
Help text

Say Y here if you want the kernel to try to guess which IRQ to use for
your serial port.

This is considered unsafe; it is far better to configure the IRQ in a
boot script using the setserial command.

If unsure, say N.


CONFIG_HOTPLUG
Help text

Say Y here if you want to plug devices into your computer while the
system is running, and be able to use them quickly. In many cases, the
devices can likewise be unplugged at any time too.

One well-known example of this is PCMCIA- or PC-cards, credit-card
size devices such as network cards, modems, or hard drives which are
plugged into slots found on all modern laptop computers. Another
example, used on modern desktops as well as laptops, is USB.

--
CONFIG_HOTPLUG_PCI
Help text

Say Y here if you have a motherboard with a PCI Hotplug controller.
This allows you to add and remove PCI cards while the machine is
powered up and running.

To compile this driver as a module, choose M here: the module will be
called pci_hotplug.

When in doubt, say N.


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


Re: Which chipset for USB?

2010-03-23 Thread linux fan
On 3/23/10, linux fan linuxscra...@gmail.com wrote:

 --
 brown pastebin sys.log has
 http://pastebin.com/EGZYEdMe

 Mar 16 22:46:27 guajome-dome kernel: [9.460024] ehci_hcd
 :00:04.1: Unlink after no-IRQ?  Controller is probably using the
 wrong IRQ.

Someone said boot parameter irqpoll is the key.
http://ubuntuforums.org/showthread.php?t=81153highlight=noapic+usb
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: grub2: error: fiel not found

2010-03-25 Thread linux fan
On 3/24/10, Ken Moffat zarniwhoo...@googlemail.com wrote:
  I've finally got round to trying to install grub2 on one of my boxes.

I messed with grub2 a little.
I tried the 'kernel /core.img' method to get to grub2 from legacy.

'set' shows the settings somewhat like bash.

'set pager=1' ... I think pages output instead of scrolling so you cannot read.
'insmod help' ... maybe

Getting the correct 'set root=' very important.
insmod ext2 .. of course

I had success from grub legacy to grub2 with something like:
kernel /core.img
boot
set root= ... correctly
(there may have been another 'set' relevant to path)
insmod ext2
insmod configfile
(forgot exact) ... configfile (hd0,15)/.../grub.cfg

I kept hammering and eventually pulled up the grub2 menu.
Sorry, I don't remember exact formulas.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: grub2: error: fiel not found

2010-03-25 Thread linux fan
On 3/25/10, Ken Moffat zarniwhoo...@googlemail.com wrote:
 2. From somewhere, the prefix is set to (hd0,15)/boot/grub.  I've no
 idea where this is set, and trying to set it at the start of grub.cfg
 didn't work.  So, I've created that path for it -

 mkdir /boot/boot
 ln -s ../grub /boot/boot/grub

Yep.

I always had to do that when /boot was on a separate partition.
My new habit is making /boot a regular directory so I would stop
being confused about when grub is in /boot or in /.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Problems with HAL

2010-03-26 Thread linux fan
On 3/25/10, Andrew Benton b3n...@gmail.com wrote:

 HAL is not part of LFS, you should direct questions about things in BLFS to
 blfs-supp...@linuxfromscratch.org

I configure HAL with
--disable-console-kit \
--disable-policy-kit

Otherwise new hal expects them and if they are to be installed, it leads to
many dependencies that I am not interested in.
Useable documentation for these things might exist, though they
are gibberish to me.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: kdebaseworkspace-4.4.2-help required

2010-04-12 Thread linux fan
On 4/12/10, lux-integ lux-in...@btconnect.com wrote:
 could this be related and does anyone have any  ideas for   swift resolution

I don't have  libxklavier and it built.

Going off topic:
I don't like the giant balloon tooltips over the panel.
I like it better with this patch for kdelibs even though it also
affects digital clock:


  # at least make hover 3 seconds before giant balloon tooltip pops up.
  patch -p1  EOF
--- kdelibs-4.4.2/plasma/tooltipmanager.cpp.orig
+++ kdelibs-4.4.2/plasma/tooltipmanager.cpp
@@ -157,9 +157,9 @@
 if (d-isShown) {
 // small delay to prevent unnecessary showing when the mouse
is moving quickly across items
 // which can be too much for less powerful CPUs to keep up with
-d-showTimer-start(200);
+d-showTimer-start(1800);
 } else {
-d-showTimer-start(700);
+d-showTimer-start(1800);
 }
 }

EOF

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


Re: kdebaseworkspace-4.4.2-help required

2010-04-14 Thread linux fan
On 4/14/10, lux-integ lux-in...@btconnect.com wrote:
 On Tuesday 13 April 2010 07:53:42 pm Trent Shea wrote:
 Also,
 /opt/kde/share/apps/cmake/modules/FindX11.cmake which gets installed by
 kdelibs - not really sure if both files get used...

 all to no avail.
 I do not know if the 'name' used is a problem or otherwise

 root [ /usr/X11R7.5/lib/pkgconfig ]# cat   xi.pc
 prefix=/usr/X11R7.5
 exec_prefix=${prefix}
 libdir=${exec_prefix}/lib
 includedir=${prefix}/include

 Name: Xi
 Description: X Input Extension Library
 Version: 1.3
 Requires: inputproto
 Requires.private: x11 xext
 Cflags: -I${includedir}
 Libs: -L${libdir} -lXi

NOTE: /usr/X11R7.5

 D) The output from cmake shows that libXi is found :-
 ###  spew from cmake

 -- Found automoc4: /opt/kde-4.4.2/bin/automoc4
 -- Strigi API needs 'signed char'
 -- Found Strigi: /opt/kde-4.4.2/lib/libstreams.so
 --   found qimageblitz, version 4.0.0
 -- Found QImageBlitz: /opt/kde-4.4.2/include/qimageblitz
 -- Found ZLIB: /usr/lib64/libz.so
 -- checking for module 'libXi=1.2.0'
 --   package 'libXi=1.2.0' not found
 -- Found libXi: /usr/X11R7.5/lib64/libXi.so
 -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
 -- Found GLIB2: /usr/lib64/libglib-2.0.so
 --   found fontconfig, version 2.7.3
 -- Found Fontconfig: /usr/lib64/libfontconfig.so
 --   found libggadget-1.0, version 0.11.2
 --   found libggadget-qt-1.0, version 0.11.2
 -- Found Googlegadgets: ggadget-qt-1.0;ggadget-1.0;QtGui;QtCore
 -- checking for modules 'qzion=0.4.0;qedje=0.4.0'
 --   found qzion, version 0.4.0
 --   found qedje, version 0.4.0
 -- Found QEdje: /opt/kde-4.4.2/lib/libqedje.so;/opt/kde-4.4.2/lib/libqzion.so

NOTE: Found libXi: /usr/X11R7.5/lib64/libXi.so

 -- Looking for _XiGetDevicePresenceNotifyEvent
 -- Looking for _XiGetDevicePresenceNotifyEvent - not found
 -- _XiGetDevicePresenceNotifyEvent is not found, libXi version 1.2.0 or later
 is required to keep layouts with keyboard hotplugging

You seem to have multiplicities which are confusing only the Xi piece.
X11R7.5 - first order of possible kde Xi confusion?
lib64 - second order of possible kde Xi confusion?
X11R6 - is a there a link pointing wrong and only affect kde/Xi?
FindX11.cmake - predicting 2 or 3 in find / -xdev -iname FindX11.cmake
1=in /usr/share installed by cmake?
2=in /opt/kde installed by kdelibs
3=in ~ installed by ?

The permutations permit kde to easily do a bug and not find the right thing.
Just because you intend to override what kde does, does not mean that it is
not ignoring you and doing what it wants to anyway?
[lousy grammar]

Step back for a minute examine libXi.so closely
Where is it really?
Is there more than 1?
Is there any link that permits kde to look the other way?
Was (I'm sure not) libXi installed incorrectly?
How many possible ways to find it? Links, envars, etc?
There isn't a verbose option on cmake that would allow you to inspect
the detail of how kde is managing to not find it is there?

 ln -sfv $XORG_PREFIX/lib/libXi.so /usr/lib

 Thanks for the advice, ( It compiles to 100%) with a symbolic link of libXi.so
 to /usr/lib

That sounds wrong to me, if it is really in /usr/X11R7.5/lib64/libXi.so
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: Glibc fails to make. (error 2)

2010-05-20 Thread linux fan
On 5/20/10, Kyle Brennan kyle_b...@live.com wrote:

 though.  I did work in the sources directory.  I got to GLibC and it ran
 for about 45 minutes and then it threw this error at me: make: *** [all]
 Error 2
 It just came out of the /mnt/lfs/sources/glibc-2.11.1 directory.  which

Wouldn't it be out of /mnt/lfs/sources/glibc-build?

The procedure (lfs 6.6 and LFS=/mnt/lfs)
LFS=/mnt/lfs
cd $LFS/sources
# If pre-existing glibc-build, rm -r glibc-build
# If pre-existing glibc-2.11.1, rm -r glibc-2.11.1
tar -xf glibc-2.11.1.tar.bz2
cd glibc-2.11.1
# Copy/Paste each applicable grey command block

mkdir -v ../glibc-build
cd ../glibc-build

... and so on, right?
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: chapter 6.16: configure: error: in `/sources/gcc-build/i686-pc-linux-gnu/libgcc':, ... C preprocessor /lib/cpp fails sanity check

2010-05-25 Thread linux fan
On 5/25/10, mhenriqu...@terra.cl  wrote:

 just to bother, the book mention something about that somewhere?, do I
 miss something...


Ch 5.3. General Compilation Instructions has an *Important* note to
delete the unpacked-source and build directories after installing
unless otherwise specified.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: chapter 6.16: configure: error: in `/sources/gcc-build/i686-pc-linux-gnu/libgcc':, ... C preprocessor /lib/cpp fails sanity check

2010-05-26 Thread linux fan
On 5/26/10, Simon Geard delga...@ihug.co.nz wrote:

 I can't really see how things can be improved (short of blinking red
 text on *every* page), but it does seem like half the problems we deal
 with are from people not following it. Are people not even reading that
 entire General Compilation Instructions page, and skipping straight to
 the packages?

The important note #1 in ch 5.3 is clear.
However, General Compilation Instructions  never specifies the flow
of events expected to follow:

1 - make sure $LFS is set to the target directory (export LFS=/mnt/lfs)
2 - change directory to $LFS/sources
3 - unpack the package tarball
4 - change directory to the unpacked directory created by tar
5 - follow package build and install instructions
6 - change directory to $LFS/sources
7 - remove the unpacked directory created by tar

At least I can't remember where that is.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: How to Improve the LFS book

2010-05-27 Thread linux fan
On 5/27/10, JimD. wrote:
 On this topic, I too had a notion that what I call Lab Notes would have
 been an improvement and perhaps call users attention to important
 procedures.


I like that.
In the BLFS book, each package has user notes that link to a wiki
page if it exists. Those are not even noticed unless the reader
suspects that some need to know might be there.
-- 
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, Stage2, glibc, nscd.c:442

2010-05-27 Thread linux fan
On 5/27/10, Paul Rogers paulgrog...@fastmail.fm wrote:

[Ken Moffat]
 getting from a .config that worked in 2.6.18 to one that works in
 2.6.32.  Particularly, libata [ most ide drives now use libata and
 therefore /dev/sdXn instead of hdXn ].
[Paul Rogers]
 Yes, I've seen that in some of the other distros I've gotten from LXF.
 Using SCSI emulation for IDE drives just seems WRONG somehow.  I'm a
 follower of Einstein's dictum, As simple as possible, but no simpler.
 The systems I'm building on/for (P3's) all use PATA drives, and I was
 hoping to deal with SATA later in a POD-3.2 version.


I maintain some pure IDE drives as hdXn by using the config parameters:
CONFIG_HAVE_IDE=y
CONFIG_IDE=y
in addition to:
CONFIG_ATA=y
CONFIG_SATA_SIL24=y
CONFIG_SATA_PROMISE=y
for the SATAS as sdXn, providing the peaceful coexistence of both worlds.

This old heap of harware just _won't_  stop working!
I got from 2.6.18 to 2.6.32, over time, a few steps at a time and the
technique was to:
copy last good config to kernel souces .config
make menuconfig
change one thing and change it back (unless really changing something)
make menuconfig pulls the relevant new vs. deprecated pieces into line.
go through the whole menus with an eye on reality checking.

If I want to boot with my IDE /dev/hdXY's plugged in (always at the
fixed cable positions), I can, and I can access the /dev/sdXY's too,
or visa versa.

I still think 2.6.18 is a good kernel, but there was a clean break in
compatibility with newer software somewhere around 2.6.22.
-- 
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, Stage2, glibc, nscd.c:442

2010-05-28 Thread linux fan
On 5/28/10, Paul Rogers paulgrog...@fastmail.fm wrote:

 gcc package for that __stack_chk_guard variable, assuming it was
 defined there.  It's not.  Could someone please grep their include
 directory and let me know where it is defined?  I haven't found it on
 my system.

grep -r -c _stack_chk_guard /usr/include (nothing)
grep -r _stack_chk_guard /sources/linux-2.6.33.1 (nothing)
-- 
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, Stage2, glibc, nscd.c:442

2010-05-28 Thread linux fan
On 5/28/10, Ken Moffat zarniwhoo...@googlemail.com wrote:

  Good advice.  I'd actually recommend 'make oldconfig' and then make
 notes on *everything* that might be questionable, research, then set or
 not in menuconfig, but that's just a variation - the important thing is not
 to try to jump through too many different kernel versions in one go.


The only problem with 'make oldconfig' is that there will be a million
questions that mortals cannot *possibly* know how to answer. However,
about 90% of them will have a default response that you can take by
pressing ENTER if you want to guess that must be it.
-- 
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, Stage2, glibc, nscd.c:442

2010-05-29 Thread linux fan
On 5/29/10, Paul Rogers paulgrog...@fastmail.fm wrote:
 Since I cut and paste the book instructions into my build script
 template, albeit with ample instruction and organization for use in
 cloning the system too, I can provide them for the Stage 1  2 builds of
 gcc and glibc, if it would help to see EXACTLY what I have done.  I have
 read all of a similar thread from March and April on this topic and
 found no instruction, other than to avoid pretty much.  I do want to
 get around this impediment and continue using LFS.

I closely examined you script and my eyes could not detect anything
about the ch6-glibc that would cause any difference from pure cut and
past to the command line. Something before that must have set up the
conditions leading to the trouble. Everyone has been assuming that
host system requirements (HSR) are all met, and (in ch6) the kernel
virtual filesystems are properly mounted and you are running in
chroot.

I'll throw this at it:
I could not build linux-2.6.18 with the newer gcc's. To build it, I
installed gcc-3.3.6 in order to build it. I chose gcc-3.3.6 because of
an article comparing gcc's which indicated that 3.3.6 had a history of
stability. I used 2.6.18.8 for a long time because because the
SATA_PROMISE maintainer remapped the ports on TX4 which fouled me up.
But I haven't used 2.6.18 for over 6 months now.

HSR say Linux Kernel-2.6.18 (having been compiled with GCC-3.0 or
greater) ... true   (y) _

The __stack_chk_guard which is only seen by grep in gcc, must have
gotten built in at some earlier step or possibly bled in from the
2.6.18 kernel (i think) you said you built to begin the lfs build.

I built lfs running from the livecd which has kernel 2.6.22.5.
For speed (unless little memory), at the boot prompt,
boot:linux toram

Once at the # (root) prompt, set a password for root.
# passwd root
# su - jhalfs
$ echo Xft.dpi: 96  .Xresources
$ startxfce4

... might need to tweak /etc/X11/xorg.conf ...

You can begin at the beginning and even use your scripts. If it still
fails, your hardware or you scripts must have anomalies. Once it's
build, you could even build linux-2.6.18.8 (using gcc 3.3.6), if
desired.
-- 
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, Stage2, glibc, nscd.c:442

2010-05-29 Thread linux fan
On 5/29/10, Paul Rogers paulgrog...@fastmail.fm wrote:

 No fun.  1.4GHz P-3, 512MB.  Besides, as I wrote, I really want to have
 a clean migration path.  Maybe 6.1 to 6.6 is too far a jump, but it
 matched the HSR with the exception of kernel version.

 Besides I rather think the LiveCD starts the NIC/network, mine doesn't
 and I really don't want that.


Notes say:
To load the CD contents to RAM with the toram option, the minimum
required amount of RAM is 512 MB. If you have less than 768 MB of RAM,
add swap when the CD boot finishes -- a good idea anyway.

Alternatively, it is possible to boot the livecd from disk.
The short version is under BOOTING FROM ISO IMAGE in
http://www.linuxfromscratch.org/livecd/documentation.html
I made a script to remember how
http://docs.google.com/View?id=dg7ck9hb_135djs6xvrn

I'm sure you know that jhalfs provides an alternative to your script.
I understand concern for clean migration path and NIC/network.

Just thinking out loud ... if jhalfs can build it using the host
system, then the scripts must have a fault ... but if the scripts can
build it using the livecd, then the host system must have a fault. Is
it the host kernel config, the host glibc, the host gcc, the scripts,
or what?
-- 
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, Stage2, glibc, nscd.c:442

2010-05-31 Thread linux fan
On 5/31/10, Bruce Dubbs bruce.du...@gmail.com wrote:

 You don't have any standing to 'expect' anything from us.  You can
 suggest, but with your attitude, my reaction is to push back and say no,
 even if that's wrong.

-- Bruce

I support and congratulate Paul Roger's package management ability to
clone and LFS system and swap out parts, and to make analyses.

I suspect someday soon, someone will try making an LFS-6.3 system
using linux-2.6.18.8 (instead of 2.6.22.5). Then, using that as a
host, try to build LFS-6.6 to verify the minimum kernel requirement.
-- 
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, Stage2, glibc, nscd.c:442

2010-05-31 Thread linux fan
On 5/31/10, x2...@lycos.com x2...@lycos.com wrote:

   Most of the posters with problems do seem to have,
   for whatever reason, strayed from the path of righteousness
   and not followed the book closely enough.

Quoth the creator:
Gerard: Read the book we wrote for our users. But, don’t be afraid to
deviate from it. After all, that’s the whole point of the project: to
make a system for yourself, not according to somebody else’s
specifications.
http://www.crazyengineers.com/gerard-beekmans-building-linux-from-scratch/
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Blfs X-Window (lfs scratch 6.3)

2010-06-01 Thread linux fan
On 6/1/10, David Expósito david.sa...@gmail.com wrote:

 /usr/lib/libXfont.so: undefined reference to `ft_isdigit'
 collect2: ld returned 1 exit status

In newer versions of Freetype2, the ft_isdigit macro has been removed.
When building libXfont-1.2.8 in ch. 23.8 Xorg-Libraries you were supposed to do:
sed -i 's/(ft_isdigit/(isdigit/' src/FreeType/fttools.c

Maybe you can rebuild libXfont and then resume.
-- 
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, Stage2, glibc, nscd.c:442

2010-06-01 Thread linux fan
On 6/1/10, Baho Utot baho-u...@columbus.rr.com wrote:


 Volunteers welcomed.

 I'll volunteer...I can mess up anything :)

 I am going to try it again as I am a gluten for punishment.


From one punishment lubber 't another:
Consider using the HSR that are now in LFS-DEV for your testing.
The reason I say so, is that 6.6 is a done deal and not likely to change.
I started checking for barnicles in linux-2.6.18 before I discoverd
that the HSR accepted the upgrade.

I Built LFS-6-6 up through ch6 Glibc-2.11.1 using jhalfs.
It ended up building ch6 Glibc-2.11.1 without an error.
The host system was a previously built LFS-6.3 system booted with a
custom made linux-2.6.18.8 kernel.
cat /etc/lfs-release
6.3 - jhalfs build
cat /proc/version
Linux version 2.6.18.8 (r...@lfs) (gcc version 3.3.6) #1

So it wasn't strictly the kernel.
Perhap the host linux-headers-2.6.22.5 were too new to fail.
Or was Gcc the old bilge rat whut deserves the black spot?
Perhaps I missed the boat entirely.
It may be never to be known.
The HSR that are now in LFS-DEV were updated and I wouldn't complain about that.
-- 
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 booting on my vmware!, but allays checking consistence of sda1

2010-06-02 Thread linux fan
On 6/2/10, linux fan linuxscra...@gmail.com wrote:

 system, /etc/sysconfig/clock had UTC=1.
 As a consequence, timestamps were in the past.

Or would that be in the future.
My timezone is America/New_York in /etc/localtime.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Being a trailer

2010-06-02 Thread linux fan
On 6/2/10, Paul Rogers paulgrog...@fastmail.fm wrote:

 To be a proper trailer you need to have a system with ONLY the
 minimum requirements for the book.  Otherwise you aren't proving
 building will work with only those.

I don't think you will find any volunteers to perform the intricate
and time-consuming labor. This is partly because the releases move
forward fast enough to discourage volunteers.

I loaded up a LFS-6.2 system (love rsync) and it exceeds minimum
requirements for 6.6 except for the kernel. It does not meet
requirements for DEV.

While configuring a kernel, just for fun, I saw this:
CONFIG_CC_OPTIMIZE_FOR_SIZE:
  x
  x Enabling this option will pass -Os instead of -O2 to gcc
  x resulting in a smaller kernel.
  x
  x WARNING: some versions of gcc may generate incorrect code with this
  x option.  If problems are observed, a gcc upgrade may be needed.
  x
  x If unsure, say N.
  x
 and that made me wonder.

We may never know for sure exactly what caused the original problem
undefined reference to __stack_chk_guard which seems to surface from
time to time.
-- 
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, Stage2, glibc, nscd.c:442

2010-06-02 Thread linux fan
On 6/2/10, Mike McCarty mike.mcca...@sbcglobal.net wrote:
 Paul Rogers wrote:
 I reported it doesn't work with 6.1, that's as close as I had. And the
 response I got was, paraphrasing, use 6.3, it's known to work.  There
 seemed to be a complete lack of recognition of it being a problem with
 the book.  Frankly, the resistance I experienced getting general
 recognition the problem should be taken seriously hasn't engendered much
 desire to volunteer.  I don't care for this sort of welcome.


It was recognized that there might be a problem with the book.
As of this writing, it has not been proven that there is a problem with the book
To prove that, just needs for someone to make the attempt to build
from 6.1 to 6.6 by hand to elimiate the possibilty of a script
introducing some peculiar effect.

But, due to debate, that point has become obsolete since the book has
been obligingly updated.

 I haven't read where anyone claims that the book is infallible. What
 has been claimed is that if you follow the book, then you'll get help,
 and if you depart then the amount of help you'll get is inversely
 related to the amount of departure.

That's the way it works.

 I thought the purpose of a support mailing list was to help users solve
 THEIR problems.  My mistake, I guess.

Everybody is happy to help solving problems encountered while building
a system according to the instructions in the book
LFS-DEV is for discussing the contents of the book.
Disagreements irritate everybody and should go private email and then
the result can be summarised.

At least that is what I thought.

The LFS books are great and the support is great.
-- 
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, Stage2, glibc, nscd.c:442

2010-06-02 Thread linux fan
On 6/2/10, Danny Engelbarts d.engelba...@gmail.com wrote:

 ...  a 6.3 system is required than the book should state 6.3 until proven
 otherwise.

That is just exactly what the DEV book now requires.

Unfortunately, now we don't get to find out exactly why the original problem
undefined reference to __stack_chk_guard
surfaces from time to time.
-- 
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, Stage2, glibc, nscd.c:442

2010-06-02 Thread linux fan
On 6/2/10, Bruce Dubbs bruce.du...@gmail.com wrote:

 The version of glibc within chroot certainly should support ssp but the
 two reports we have didn't seem to find it automatically.  Others cannot
 duplicate the problem.  If we had consistent errors on most builds, we
 could fix it.

Could there be slight variances in how one enters chroot that
could possibly affect this? I would't expect that to be likely.

Once in chroot, gcc and glibc have already been built (twice for gcc).
How could the conditions on the host system be still affecting the
outcome? Why only 2 reports in all this time?

Anyway, you all are doing a great job!
-- 
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, Stage2, glibc, nscd.c:442

2010-06-04 Thread linux fan
On 6/4/10, Paul Rogers paulgrog...@fastmail.fm wrote:

 So the problem was the Chapter 5 gcc?

 I'm not sure that follows.

Seems to.

Intending to attempt to duplicate __stack_chk_guard error in chapter 6
while building lfs-6.6 from lfs-6.1.1 ...
The theory being that the host gcc/glibc ideal gets passed to the
toolchain build and then passed to the finished build as if it were an
olympic torch.

I'm using the exemplary jhalfs.
lfs-6.2 original host (hostname lfs)
lfs-6.1.1 target partition /dev/sdb8 (hostname lfs-1)
lfs-6.6 target partition /dev/sdb9

Stage 1 - build lfs-6.1.1
-
m...@lfs:~/jhalfs-0.2$
su # stay in root for this version
mount /dev/sdb8 /mnt/lfs
./jhalfs -L 6.1.1
cd /mnt/lfs/jhalfs
make
... it goes on for hours and then is done.
... chroot into it and build a requisite kernel.
... shutdown and boot to it (entertaining grub in the process).

Stage 2 - build lfs-6-6
---
m...@lfs-1:~/jhalfs-2.3.2$
su
mount /dev/sdb9 /mnt/lfs
exit # to regular user for this version
make
 select the options and approve
cd /mnt/lfs/jhalfs
make BREAKPOINT=038-gcc-pass2

... while that is building, I see in gcc-build/config.log
Reading specs from ...  Configured with: ... --disable-libssp
... I decide to break out of it, and try something
... This diff in commands
=
--- /mnt/lfs/jhalfs/lfs-commands/chapter05/038-gcc-pass2.orig
+++ /mnt/lfs/jhalfs/lfs-commands/chapter05/038-gcc-pass2
@@ -43,7 +43,8 @@
 --enable-shared --enable-threads=posix \
 --enable-__cxa_atexit --enable-languages=c,c++ \
 --disable-libstdcxx-pch --disable-multilib \
---disable-bootstrap
+--disable-bootstrap \
+--enable-libssp
 make
 make install
 ln -vs gcc /tools/bin/cc
=

... remove gcc-4.4.3 and gcc-build dirs
... restart ...
make BREAKPOINT=038-gcc-pass2
... libssp is produced in tools/lib
... continue building
make

I imagine this will be ok.

Fun!

http://picasaweb.google.com/lh/photo/W2_o6_oWA2JilLZdPJT19A?feat=directlink
-- 
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, Stage2, glibc, nscd.c:442

2010-06-04 Thread linux fan
On 6/4/10, linux fan linuxscra...@gmail.com wrote:

 So the problem was the Chapter 5 gcc?

 I'm not sure that follows.

 Seems to.

 ... I decide to break out of it, and try something
 ... This diff in commands
 =
 --- /mnt/lfs/jhalfs/lfs-commands/chapter05/038-gcc-pass2.orig
 +++ /mnt/lfs/jhalfs/lfs-commands/chapter05/038-gcc-pass2
 @@ -43,7 +43,8 @@
  --enable-shared --enable-threads=posix \
  --enable-__cxa_atexit --enable-languages=c,c++ \
  --disable-libstdcxx-pch --disable-multilib \
 ---disable-bootstrap
 +--disable-bootstrap \
 +--enable-libssp
  make
  make install
  ln -vs gcc /tools/bin/cc
 =
 I imagine this will be ok.

 Fun!


No, not ok.
/sources/glibc-build/nscd/connections.o: In function `main_loop_epoll':
/sources/glibc-2.11.1/nscd/connections.c:2005: undefined reference to
`__stack_chk_guard'
/sources/glibc-build/nscd/connections.o:/sources/glibc-2.11.1/nscd/connections.c:1795:
more undefined references to `__stack_chk_guard' follow
collect2: ld returned 1 exit status
make[3]: *** [/sources/glibc-build/nscd/nscd] Error 1
make[3]: Leaving directory `/sources/glibc-2.11.1/nscd'
make[2]: *** [nscd/others] Error 2
make[2]: Leaving directory `/sources/glibc-2.11.1'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/sources/glibc-build'

I guess Gnu are smarter than I.
-- 
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, Stage2, glibc, nscd.c:442

2010-06-07 Thread linux fan
# Hack to solve glibc __stack_chk_guard cross compile (  2.4 :)
# this schpeel in LFS-6.6 ch5 gcc-pass1 and ch5 gcc-pass2 after unpack:
glibc=$(ls  /lib/libc-*.so)
read j1 v[0] v[1] v[2] j2  ${glibc//[-.]/ }
if (( v[0]  2 )) || (( v[1]  4 ))  [ -f gcc/configure ]; then
  # kick it
  sed -i -e '/# Test for stack protector support in target C library/ {
  a\
gcc_cv_libc_provides_ssp=yes
} ' gcc/configure
fi

# Result: nscd with stack-smashing protector + no error in ch6 glibc
# Notes:
# If should probably have (( v[0]  3 ))  (( v[1]  4 )),
# but could do the sed unconditionally for target LFS-6.6.
# Don't know if needed in ch5 gcc-pass1 and/or ch5 gcc-pass2.
# Testing on host lfs-6.2/linux-2.6.22.18,
# Everything is proceeding as I have foreseen it.
-- 
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, Stage2, glibc, nscd.c:442

2010-06-08 Thread linux fan
On 6/8/10, Andrew Benton b3n...@gmail.com wrote:

 shouldn't that be
 if (( ${v[0]}   2 ))  (( ${v[1]}  4 ))


or maybe (( v[0] ==  2 ))  (( v[1]  4 ))

... bash (( allowed me to omit $ and {} around variables/arrays ))

But in the target lfs-6.6, glibc  2.4 is true, so the test isn't even needed.
That's the funny thing. Why did they look at the host to see what will
be on the target in this stage in a cross compile situation, when they
have no way of knowing what it will be? It seems like there should be
one of those --switches allowing the user to specify a thing like
this.


 Sorry for picking nits. It looks good and solves a problem I had due to
 one of my deviations.

You are welcome to pick all the nits you want. I don't care.
-- 
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, Stage2, glibc, nscd.c:442

2010-06-08 Thread linux fan
On 6/8/10, Andrew Benton b3n...@gmail.com wrote:

 so the whole thing can be reduced to:

 v=($(ls  /lib/libc-*.so | sed 's/[.-]/ /g'))
 [ (( ${v[1]}   2 ))  (( ${v[2]}  4 )) ] 
 sed -i '/k prot/agcc_cv_libc_provides_ssp=yes' ../gcc-4.5.0/gcc/configure


[ $(ls  /lib/libc-*.so \
 | sed 's/[.-]/ /g' \
 | awk '{print ($23  $34) ? foo : bar}') == foo ] 
 sed -i '/k prot/agcc_cv_libc_provides_ssp=yes' ../gcc-4.5.0/gcc/configure

Please pardon me being silly.
-- 
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 linux fan
I haven't read where piper.guy confirmed that bash is installed or
that if bash is not installed, that changing the link to point to bash
won't help.
-- 
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-09 Thread linux fan
On 6/8/10, Neal Murphy neal.p.mur...@alum.wpi.edu wrote:

 ... You'll learn to pause before hitting ENTER.


I learned that lesson very quickly. It is extremely important.

My system wouldn't last long without backups.
Speaking of backups and rescue disks, I am using an rsync snapshots
style of backup. It does not compress, yet it can save multiple
copies of a system at different points in time using remarkable
little disk space. Any copy can be rsynced to any mount point and so
I can recover or load up any system copy in around 20 minutes.  I
have several LFS builds (2 are 6.6), a few Fedoras, and miscellaneous
others. I loaded and ran FC4 the other day. I made a snapshot of my
current system yesterday, before installing some experimental stuff.

The backup might have looked something like this:
mount LABEL=BACK_UPS /back_up
back_up snapdir=/back_ups/LFS-6-2

My last restoration might have looked something like this:
mount LABEL=BACK_UPS /back_ups
mount /dev/[bla-bla] /mnt
cd /mnt
R-M-minus-R-star (you never write that in a post)
rsync -aH --numeric-ids /back_ups/LFS-6-2/root_fs/back_up.0/. /mnt/

More info on these rsync snapshots in case anyone is curious is here
http://linux-fan-alfs.blogspot.com/2008/03/system-backups.html

Disk size has increased and disk cost has decreased to the point that
I have much more available disk space than I need (it's hard to find a
tiny 20GB disk any more.) Actually I have 4 various sized disks
including 2 500GB drives and a few old spare drives lying aroung. Each
one of the disks ha one partition that is the logical type that is
reported by fdisk as f  W95 Ext'd (LBA). The logical partition can
contain partitions 5-15. More than one of the disks has a partition
dedicated to back ups. I'm lazy and don't regularly delete old copies.

Most of the systems in the scheme are bootable, so I automatically
have numerous rescue systems. I also have grub boot cd and lfs
livecd. I've learned to expect that I'll occasionally (or regularly as
the case may be) break something. Many times, one of the rescue
systems has been called upon to save the day, even if only for 1 file.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Cannot execute grub-install

2010-06-17 Thread linux fan
On 6/17/10, Michael Vahl mvah...@bib.h-brs.de wrote:

 Any other suggestions?

Without knowing anything, maybe outputs would give somebody a clue:

ls -ld /boot/grub

grep sda /etc/fstab

sudo /sbin/fdisk -l /dev/sda

date

sudo /usr/sbin/grub-mkdevicemap

ls -l /boot/grub/device.map

: ... date should almost match date of device.map

cat /boot/grub/device.map

/usr/sbin/grub-setup -V

ls /usr/{s,}bin/grub*

find /usr/lib/grub -type d

ls $(find /usr/lib/grub -type d | tail -1)

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


Re: A Kernel patch overview?

2010-06-20 Thread linux fan
On 6/20/10, Paul Rogers paulgrog...@fastmail.fm wrote:

 Is there someplace where someone writes about what's new in
 kernel patches?  New and removed features, considerations about
 implementation, etc.?  Someplace where we can see what's in it,
 whether it has anything for us or not?

Kernel newbies is usually found in google search such as kernel 2.6.33
and writes about that http://kernelnewbies.org/Linux_2_6_33
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: A typo in the wget-list

2010-06-22 Thread linux fan
On 6/22/10, Mike McCarty mike.mcca...@sbcglobal.net wrote:
 Philippe Delavalade wrote:

 http://prdownloads.sourceforge.net//expect/expect-5.44.1.15.tar.bz2

 That may be a typo, but it shouldn't affect the download. URLs are
 permitted repeated slashes.


That's what I was going to say ... but when you click on it ... Error 404
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: MySQL and More Control/Package Users Package Mgmt

2010-06-24 Thread linux fan
On 6/24/10, Timothy Rice t.r...@ms.unimelb.edu.au wrote:

 It occurred to me that maybe once mysql is installed, info can then use
 mysql to, say, manage a database of entries, or something. Pure
 conjecture, but if true, it could explain why dir would need to be
 rebuilt. However, nothing I've noticed in any documentation for either
 mysql or info suggests that this is actually true.

 Now, if nothing like that is really going on, then may I submit to the
 BLFS editors that the suggested install commands for mysql be streamlined

Info is documentation that I personally only consult as a last resort.
Everything that installs any info documentation apparently updates
that file called dir.
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: LFS 6.6 Chapter 2, Preparing a New Partition

2010-07-03 Thread linux fan
On 7/3/10, PRAKHAR gaur prakhar_aaid...@hotmail.com wrote:

 Dear All,

 I already have a 50 GB partition, which I had created while, Installing the
 host Operating System(Debian 5.0.5).
 Do I need to partition it again, its a ext3 fs.
 Or I can directly mount it in /mnt/lfs?, as its already mounted in /media.


If the 50GB host Operating System(Debian 5.0.5) is needed to run (yes,
I think), then you need to use a separate partition to contain the
destination LFS system. I think 12 GB is a good size. 5GB is a little
too small if many things will be installed (a typical desktop system
with lots of goodies).
-- 
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 linux fan
On 7/3/10, Ken Moffat zarniwhoo...@googlemail.com wrote:

 destination LFS system. I think 12 GB is a good size. 5GB is a little
 too small if many things will be installed (a typical desktop system
 with lots of goodies).

  I shudder to think about what you are using to fill that up ;)  I'm
 still happy with 3GB for '/', with separate /sources and /home.
 Your system, your rules - just make sure you remember to back
 up.

I went on a training mission to install kde4 and that would not fit in
5GB unless the sources are hosted on separate partition. Not impressed
enough with kde4 not to remove it though.
-- 
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.9. Binutils-2.20.1 - Pass 2

2010-07-03 Thread linux fan
On 7/3/10, Andrew Benton b3n...@gmail.com wrote:

 If using bash a simple:

 #!/bin/bash -e
 set +h

 at the top of the script works, bails on any error

Or
set -e

A few package maintainers manage to return 0 success from configure
even when the configure fails. These may be rare or nonexistent in ch5
and ch6. When an installation finishes in very much less time than
expected, it is a red flag.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Moving to JHALFS [WAS: Overwhelming Binutils Test Failures [info added] ]

2010-07-17 Thread linux fan
On 7/17/10, Dan McGhee beesn...@grm.net wrote:

 3. Can I shutdown if I put a breakpoint in the makefile call?

Yes, but ...
... like driving a racing car around a track at 190 MPH, if you really
know what you are doing, you'll make it most of the time. But if you
don't really know what you are doing, a surprising number of things
can go wrong.

The technique for re-entering the build after a shutdown varies
greatly depending on where you were when you stopped.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: My New JHALFS Build is Gone...Missing...Not There

2010-07-18 Thread linux fan
On 7/18/10, Dan McGhee beesn...@grm.net wrote:

 I've started again and that's the way I ran make except that, again, I
 want it to stop after Ch. 6 so I ran make mk_CHROOT


NOT: make mk_CHROOT

make BREAKPOINT=mk_CHROOT

If you want it to stop after finishing target mk_CHROOT

BREAKPOINT is all caps and no typos allowed
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Hit a Speed Bumps with Grub 2

2010-07-20 Thread linux fan
On 7/20/10, Dan McGhee beesn...@grm.net wrote:
 The speed bumps that I mention in the grammatically incorrect subject
 line have grown to a mountain range higher than the Himalayas.


With grub 2, the first thing to do is panic. Done.
The second thing is don't panic.


 1. Review the grub-0.97 manual and use commands from that to see if I
 can get into LFS-SVN.

I think you indicate that you can get a boot with grub-0.97.
If so, it's a piece of cake.

Put this in booting grub-0.97's menu.lst:

title LFS-SVN (core.img)
root (0,4)
kernel /boot/grub/core.img

If I guessed the right partition, that will activate grub2 using the
grub.cfg file in LFS-SVN's /boot/grub directory if it is valid.

If LFS-SVN's /boot/grub/grub/cfg is not valid, then you will get a
grub2 prompt from which you can hack your way in.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


  1   2   >