Crash in scripted compile of static binutils

Keith Shapiro kshapiro at lexmark.com
Wed Sep 6 14:00:20 PDT 2000


Hi,

I'm recompliling using the 2.4 book.  My old system is LFS2.3.7, it's a
Pentium Pro dual processor system.

I've got several machines to populate with LFS and several people who want
to be able to duplicate my process.  I'm creating a script that goes
through and does the complete compile and installation of the packages we
need.

I'm currently working on the static compile sections and when I get far
enough down it crashes nicely with:

Configure etc...
loading cache ../config.cache
checking for a BSD compaitble install... (cached) /bin/install.c
creating ./config.status
creating Makefile
libtool: install: warning: remember to run `librool --finish /usr/lib'
libtool: install: warning: remember to run `librool --finish /usr/lib'
kmem_reap: Corrupted cache struct for <NULL>
Unable to handle kernel NULL pointer defererence at virtual address 00000005
current->tss.cr3 = 00101000, %cr3 = 00101000
*pde = 00000000
Oops: 0000
CPU:    0
EIP:    0010:[<c0123050>]
EFLAGS: 00010203
eax: 00000030   ebx: 00000000    ecx: c66ac000    edx: c7f30000
esi: 00000000   edi: 00000000    ebp: 00000003    esp: c7fe1f5c
ds: 0018    es: 0018    ss: 0018
Process kswapd (pid: 5, process nr: 6, stackpage=c7fe1000)
Stack: c7fe02b9 00000030 00000000 c0227e24 00000000 00000000 c0111c79 c7fe1fac
       02c2849c c01237e4 00000030 00000286 c7fe02b9 00000000 c7fe0000 00000000
       c7fe02b9 00000e00 00000000 c0220c00 00000000 00000020 c7fe0000 00000000
Call Trace: [<c0111c79>] [<c01237e4>] [<c0107aea>] [<c0123937>]
[<c0123920>] [<c0106517>] [<c0106520>]
Code: f6 43 05 10 0f 85 c2 00 00 00 fa f0 0f ba 6b 20 00 0f 82 87



Any ideas?
I'm going to run that libtool command and try again.  What I don't get is
why it won't work in the script, but it works fine on the command line.
Relevant portions of the script:

#!/bin/sh

distdir="/usr/src/dists"
wdir="/lfs"

export CFLAGS="-march=pentium -mcpu=pentium"
export CCFLAGS="-march=pentium -mcpu=pentium"

.
..
..

cd $wdir/usr/src
tar zxf $distdir/binutils-*
cd binutils*
./configure --prefix=/usr --disable-nls

when it gets to this point in the script, it crashes the box.


Thanks!

Keith S.






More information about the lfs-dev mailing list