Re: awk segfault on make menuconfig to build kernel
Herbert, Thanks for the tip. I had actually tried that as one of my first solutions, and I just tried it again. No improvement - the same error persists. Any ideas for another approach? Best, Dave - Original Message - From: "Herbert Xu" <[EMAIL PROTECTED]> To: "David De Graff" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, September 23, 2002 4:08 AM Subject: Re: awk segfault on make menuconfig to build kernel > David De Graff <[EMAIL PROTECTED]> wrote: > > > On each attempt to execute make menuconfig, I get the error: > > > > gcc -o lxdialog checklist.o menubox.o textbox.o yesno.o inputbox.o util.o > > lxdialog.o msgbox.o -lncurses > > make[1]: Leaving directory `/usr/src/kernel-source-2.4.19/scripts/lxdialog' > > /bin/sh scripts/Menuconfig arch/i386/config.in > > Using defaults found in .config > > Preparing scripts: functions, parsingscripts/Menuconfig: line 1: 663 > > Segmentation fault awk "$1" > > Awk died with error code 139. Giving up. > > make: *** [menuconfig] Error 1 > > See http://bugs.debian.org/81487/ > > The quick solution is to use gawk instead of mawk. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: awk segfault on make menuconfig to build kernel
David De Graff <[EMAIL PROTECTED]> wrote: > On each attempt to execute make menuconfig, I get the error: > > gcc -o lxdialog checklist.o menubox.o textbox.o yesno.o inputbox.o util.o > lxdialog.o msgbox.o -lncurses > make[1]: Leaving directory `/usr/src/kernel-source-2.4.19/scripts/lxdialog' > /bin/sh scripts/Menuconfig arch/i386/config.in > Using defaults found in .config > Preparing scripts: functions, parsingscripts/Menuconfig: line 1: 663 > Segmentation fault awk "$1" > Awk died with error code 139. Giving up. > make: *** [menuconfig] Error 1 See http://bugs.debian.org/81487/ The quick solution is to use gawk instead of mawk. -- Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ ) Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: awk segfault on make menuconfig to build kernel
Thanks, Elizabeth. That theory makes quite a bit of sense, particularly since I compiled postgresql without using .deb packaging several weeks ago. Unfortunately I have little clue as to how to sort through /usr/lib for what might be the offending libary. The one that you mentioned is older than the machine installation, so it's most likely part of the base install. I thought that by recompiling awk from source with the current set of libraries I might resolve such an issue, but no luck. I just did that (going from debian source to debian package and installing that), and the same error returns when I do make menuconfig. Will dig through and see what I can come up with. Wiping the drive and starting over is beginning to look attractive... Best, Dave - Original Message - From: "Elizabeth Barham" <[EMAIL PROTECTED]> To: "Debian User List" <[EMAIL PROTECTED]> Sent: Monday, September 23, 2002 1:11 AM Subject: Re: awk segfault on make menuconfig to build kernel > "David De Graff" <[EMAIL PROTECTED]> writes: > > > Well, the conclusion that this ran fine with kernel-source-2.4.18 > > was wrong. It gives a similar error but then continues on to the > > initial ncurses-based config screen. > > A booger of a problem for me was when seemingly simple scripts were > seg faulting. It turned out that I had compiled a newer version of > libstdc++ way-back-when and left it in /usr/local/lib . After the > upgrade to Woody, applications in the distribution were trying to use > it, and were causing the seg fault. > > Removing the shared library in /usr/local/lib remedied the problem. > > Elizabeth -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: awk segfault on make menuconfig to build kernel
"David De Graff" <[EMAIL PROTECTED]> writes: > Well, the conclusion that this ran fine with kernel-source-2.4.18 > was wrong. It gives a similar error but then continues on to the > initial ncurses-based config screen. A booger of a problem for me was when seemingly simple scripts were seg faulting. It turned out that I had compiled a newer version of libstdc++ way-back-when and left it in /usr/local/lib . After the upgrade to Woody, applications in the distribution were trying to use it, and were causing the seg fault. Removing the shared library in /usr/local/lib remedied the problem. Elizabeth -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: awk segfault on make menuconfig to build kernel
Well, the conclusion that this ran fine with kernel-source-2.4.18 was wrong. It gives a similar error but then continues on to the initial ncurses-based config screen. The error is: make[1]: Leaving directory `/usr/src/kernel-source-2.4.18/scripts/lxdialog' /bin/sh scripts/Menuconfig arch/i386/config.in Using defaults found in .config Preparing scripts: functions, parsingscripts/Menuconfig: line 1: 1337 Segmentation fault awk "$1" Awk died with error code 139. Giving up. scripts/Menuconfig: ./MCmenu3: line 123: syntax error: unexpected end of file .done. Thanks for any ideas, Dave De Graff - Original Message - From: "David De Graff" <[EMAIL PROTECTED]> To: "Debian User List" <[EMAIL PROTECTED]> Sent: Monday, September 23, 2002 12:48 AM Subject: awk segfault on make menuconfig to build kernel > The first time that I tried the kernel build from source, I unpacked the > kernel source and did all steps as root. That shouldn't cause any > permissions problems as far as I can tell. Since getting the suggestion to > do the process as a non-root user, I have done all steps including unpacking > the kernel source as a non-root user. > > The owner of /usr/src is set to user, as is the file > kernel-source-2.4.19.tar.bz2. That file is unpacked by the same non root > user, and the config file is copied by that user. I run make menuconfig by > the same user, and get the same error as I got when the entire process was > run as root. > > I've tested the process with kernel-source-2.4.18, and make menuconfig runs > fine with that package. So it looks like there's something different with > 2.4.19 that's causing a problem. > > Thanks, > > Dave De Graff > > The error for make menuconfig with kernel-source-2.4.19 is: > > make[1]: Leaving directory `/usr/src/kernel-source-2.4.19/scripts/lxdialog' > /bin/sh scripts/Menuconfig arch/i386/config.in Using defaults found in > .config Preparing scripts: functions, parsingscripts/Menuconfig: line 1: > 1250 Segmentation fault awk "$1" Awk died with error code 139. Giving > up. make: *** [menuconfig] Error 1 > > > > - Original Message ----- > > From: "Osamu Aoki" <[EMAIL PROTECTED]> > > To: "David De Graff" <[EMAIL PROTECTED]> > > Sent: Sunday, September 22, 2002 10:33 PM > > Subject: Re: awk segfault on make menuconfig to build kernel > > > > > > > On Sun, Sep 22, 2002 at 01:48:28PM -0700, David De Graff wrote: > > > > This problem persists on multiple attempts, each time starting from a > > clean > > > > unpack of kernel-source-2.4.19.tar.bz2. > > > > > > Did you unpack as user? When I was unpacking as root and did "chown -R > > > foo:foo *", then I got problem. I also needed to do "chown foo:foo .". > > > > > > Soundes like permission problem. > > > > > > > > BTW, my system doesn't seem to have addgrp. This isn't relevant to > the > > > > > problem, but just thought I would point it out given your revised > > > > > instructions above. I used usermod since src was already in > > /etc/group. > > > > > > $ adduser foo src > > > > > > > > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
awk segfault on make menuconfig to build kernel
The first time that I tried the kernel build from source, I unpacked the kernel source and did all steps as root. That shouldn't cause any permissions problems as far as I can tell. Since getting the suggestion to do the process as a non-root user, I have done all steps including unpacking the kernel source as a non-root user. The owner of /usr/src is set to user, as is the file kernel-source-2.4.19.tar.bz2. That file is unpacked by the same non root user, and the config file is copied by that user. I run make menuconfig by the same user, and get the same error as I got when the entire process was run as root. I've tested the process with kernel-source-2.4.18, and make menuconfig runs fine with that package. So it looks like there's something different with 2.4.19 that's causing a problem. Thanks, Dave De Graff The error for make menuconfig with kernel-source-2.4.19 is: make[1]: Leaving directory `/usr/src/kernel-source-2.4.19/scripts/lxdialog' /bin/sh scripts/Menuconfig arch/i386/config.in Using defaults found in .config Preparing scripts: functions, parsingscripts/Menuconfig: line 1: 1250 Segmentation fault awk "$1" Awk died with error code 139. Giving up. make: *** [menuconfig] Error 1 > - Original Message - > From: "Osamu Aoki" <[EMAIL PROTECTED]> > To: "David De Graff" <[EMAIL PROTECTED]> > Sent: Sunday, September 22, 2002 10:33 PM > Subject: Re: awk segfault on make menuconfig to build kernel > > > > On Sun, Sep 22, 2002 at 01:48:28PM -0700, David De Graff wrote: > > > This problem persists on multiple attempts, each time starting from a > clean > > > unpack of kernel-source-2.4.19.tar.bz2. > > > > Did you unpack as user? When I was unpacking as root and did "chown -R > > foo:foo *", then I got problem. I also needed to do "chown foo:foo .". > > > > Soundes like permission problem. > > > > > > BTW, my system doesn't seem to have addgrp. This isn't relevant to the > > > > problem, but just thought I would point it out given your revised > > > > instructions above. I used usermod since src was already in > /etc/group. > > > > $ adduser foo src > > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: awk segfault on make menuconfig to build kernel
This problem persists on multiple attempts, each time starting from a clean unpack of kernel-source-2.4.19.tar.bz2. I've tried it after upgrading the following packages to the testing versions: dpkg dpkg-dev debianutils make libncurses5-dev kernel-package Tried again after upgrading fileutils to the version from untable, and again after downgrading gcc from 3.2 (unstable) to 2.95.4 (stable). The system is woody on a PIII 850 server with 1GB RAM, DAC960 RAID card and Intel 10/100 ethernet. More details below, thanks for any help. Dave De Graff On each attempt to execute make menuconfig, I get the error: gcc -o lxdialog checklist.o menubox.o textbox.o yesno.o inputbox.o util.o lxdialog.o msgbox.o -lncurses make[1]: Leaving directory `/usr/src/kernel-source-2.4.19/scripts/lxdialog' /bin/sh scripts/Menuconfig arch/i386/config.in Using defaults found in .config Preparing scripts: functions, parsingscripts/Menuconfig: line 1: 663 Segmentation fault awk "$1" Awk died with error code 139. Giving up. make: *** [menuconfig] Error 1 I found this message via Google which looks possibly relevant but does not provide any clue that I can act on: http://lists.parisc-linux.org/pipermail/parisc-linux/2002-June/016737.html The first several lines of the .config file in the kernel-source directory are: # # Automatically generated make config: don't edit # CONFIG_X86=y CONFIG_ISA=y # CONFIG_SBUS is not set CONFIG_UID16=y # # Code maturity level options # CONFIG_EXPERIMENTAL=y # # Loadable module support # CONFIG_MODULES=y CONFIG_MODVERSIONS=y CONFIG_KMOD=y # # Processor type and features # # CONFIG_M386 is not set # CONFIG_M486 is not set # CONFIG_M586 is not set # CONFIG_M586TSC is not set # CONFIG_M586MMX is not set CONFIG_M686=y # CONFIG_MPENTIUMIII is not set # CONFIG_MPENTIUM4 is not set # CONFIG_MK6 is not set # CONFIG_MK7 is not set # CONFIG_MELAN is not set # CONFIG_MCRUSOE is not set # CONFIG_MWINCHIPC6 is not set # CONFIG_MWINCHIP2 is not set # CONFIG_MWINCHIP3D is not set # CONFIG_MCYRIXIII is not set CONFIG_X86_WP_WORKS_OK=y ... > - Original Message - > From: "Osamu Aoki" <[EMAIL PROTECTED]> > To: "David De Graff" <[EMAIL PROTECTED]> > Cc: "Debian User List" <[EMAIL PROTECTED]> > Sent: Sunday, September 22, 2002 3:03 AM > Subject: Re: awk segfault when try make menuconfig to build kernel > > > > On Sun, Sep 22, 2002 at 12:20:45AM -0700, David De Graff wrote: > > > I'm trying to build a kernel from source using the kernel-source-2.4.19 > and > > > the instructions for the Debian standard method at: > > > > > > http://www.debian.org/doc/manuals/reference/ch-kernel.en.html > > > > That's me :-) > > Wow, help right from the source! Thanks. > > > > > When I execute make menuconfig, I get the error at the bottom of the > session > > > text below. It looks like awk is giving a segmentation fault. This error > > > persists even after I've upgraded mawk and gawk to the versions on > testing, > > > and switched simlinks to try both programs. I haven't found anything on > this > > > in the mail list archives, so am asking for any tips here. > > > > > > BTW, the error below happened with the .config file from my current > kernel > > > as well as below using the default config after I did a 'make > distclean'. > > ... > > > > > > root@coral:/usr/src/kernel-source-2.4.19# make menuconfig > > > > Why you are root? > > # apt-get install debhelper modutils kernel-package libncurses5-dev > > # apt-get install kernel-source-2.4.18 # use latest version > > # vi /etc/kernel-pkg.conf# input my name and email > > On the first attempt, I did the entire process as root just to avoid any > permissions issues (wasn't really thinking about it). > > > > Maybe I should have said: ( is user name) > > > > # addgrp --group src > > # su > > $ cd /usr/src# build directory > > $ tar --bzip2 -xvf kernel-source-2.4.18.tar.bz2 > > ... > > > > If untar as root and if you are user, you may hit problem. > > > > I just did the process again as you describe, as a non-root user, and got > the same error: > > make[1]: Leaving directory `/usr/src/kernel-source-2.4.19/scripts/lxdialog' > /bin/sh scripts/Menuconfig arch/i386/config.in > Using defaults found in .config > Preparing scripts: functions, parsingscripts/Menuconfig: line 1: 5435 > Segmentation fault awk "$1" > Awk died with error code 139. Giving up. > make: *** [menuconfig] Error 1 > > This is on a woody system with some pieces from testing, and with gcc-3.2 > and dependencies from unstable. > > BTW, my system doesn't seem to have addgrp. This isn't relevant to the > problem, but just thought I would point it out given your revised > instructions above. I used usermod since src was already in /etc/group. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: awk segfault on make menuconfig to build kernel
- Original Message - From: "Osamu Aoki" <[EMAIL PROTECTED]> To: "David De Graff" <[EMAIL PROTECTED]> Cc: "Debian User List" <[EMAIL PROTECTED]> Sent: Sunday, September 22, 2002 3:03 AM Subject: Re: awk segfault when try make menuconfig to build kernel > On Sun, Sep 22, 2002 at 12:20:45AM -0700, David De Graff wrote: > > I'm trying to build a kernel from source using the kernel-source-2.4.19 and > > the instructions for the Debian standard method at: > > > > http://www.debian.org/doc/manuals/reference/ch-kernel.en.html > > That's me :-) Wow, help right from the source! Thanks. > > > When I execute make menuconfig, I get the error at the bottom of the session > > text below. It looks like awk is giving a segmentation fault. This error > > persists even after I've upgraded mawk and gawk to the versions on testing, > > and switched simlinks to try both programs. I haven't found anything on this > > in the mail list archives, so am asking for any tips here. > > > > BTW, the error below happened with the .config file from my current kernel > > as well as below using the default config after I did a 'make distclean'. > ... > > > > root@coral:/usr/src/kernel-source-2.4.19# make menuconfig > > Why you are root? > # apt-get install debhelper modutils kernel-package libncurses5-dev > # apt-get install kernel-source-2.4.18 # use latest version > # vi /etc/kernel-pkg.conf# input my name and email On the first attempt, I did the entire process as root just to avoid any permissions issues (wasn't really thinking about it). > Maybe I should have said: ( is user name) > > # addgrp --group src > # su > $ cd /usr/src# build directory > $ tar --bzip2 -xvf kernel-source-2.4.18.tar.bz2 > ... > > If untar as root and if you are user, you may hit problem. > I just did the process again as you describe, as a non-root user, and got the same error: make[1]: Leaving directory `/usr/src/kernel-source-2.4.19/scripts/lxdialog' /bin/sh scripts/Menuconfig arch/i386/config.in Using defaults found in .config Preparing scripts: functions, parsingscripts/Menuconfig: line 1: 5435 Segmentation fault awk "$1" Awk died with error code 139. Giving up. make: *** [menuconfig] Error 1 This is on a woody system with some pieces from testing, and with gcc-3.2 and dependencies from unstable. BTW, my system doesn't seem to have addgrp. This isn't relevant to the problem, but just thought I would point it out given your revised instructions above. I used usermod since src was already in /etc/group. Best, Dave -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]