These are the commands I issued: su env-update && source /etc/profile cd /usr/source/linux wget -O - http://www.hardrock.org/kernel/2.4.20/linux-2.4.20-ptrace.patch mv /boot/bzImage /boot/bzImage.old.03-20-2003 make dep && make clean bzImage modules modules_install && cp arch/i386/boot/bzImage /boot This is the error output: stdinc -I /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include -DKBUILD_BASENAME=util -c -o util.o util.c util.c: In function `ipc_init_ids': util.c:80: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. make[2]: *** [util.o] Error 1 make[2]: Leaving directory `/usr/src/linux-2.4.20/ipc' make[1]: *** [first_rule] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.20/ipc' make: *** [_dir_ipc] Error 2 These are the commands I planned to issue when the above finished successfully: env ALSA_CARDS='emu10k1' emerge alsa-driver emerge alsa-oss emerge nvidia-kernel emerge nvidia-glx Now I am trying to figure out why it failed and fix the problem. Users on the gentoo IRC channel have suggested that this may be a hardware issue. I plan to run memtest86 tonight via the F.I.R.E. bootable distro. I tried to emerge lm_sensors to check the CPU temperature and this resulted in MORE ERRORS! MORE PROBLEMS: kernel/chips/adm1021.c: In function `adm1021_init_client': kernel/chips/adm1021.c:372: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. make: *** [kernel/chips/adm1021.o] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: sys-apps/lm_sensors-2.6.5 failed. !!! Function src_compile, Line 22, Exitcode 2 !!! lm_sensors requires the source of a compatible kernel\nversion installed in /usr/src/linux and i2c support built as a modules I would be very grateful if someone could help me fix the problems I am experiencing as a result of this botched kernel patch. uname -a output: Linux (HOSTNAME OMITTED) 2.4.20 #1 SMP Tue Feb 25 21:27:42 EST 2003 i686 AMD Athlon(tm) Processor AuthenticAMD GNU/Linux emerge info output: Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r2) ================================================================= System uname: 2.4.20 i686 AMD Athlon(tm) Processor GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/config /opt/quake3/cpma/server.cfg" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss arts avi crypt encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xv zlib gdbm berkdb slang readline tetex svga tcltk java guile mysql postgres sdl gpm tcpd pam libwww python esd imlib oggvorbis gtk qt motif mozilla scanner -3dfx 3dnow alsa -apm cdr cups -gnome -kde -ipv6 opengl -pcmcia perl samba ssl -matrox -voodoo3 X xmms" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache" I am also at a loss as to how to remove the downloaded patch so I can successfully emerge lm_sensors (if that is indeed the problem) Any help anyone can give me is desperately sought and would be greatly appreciated. Thanks, Devi0s Reproducible: Always Steps to Reproduce: su env-update && source /etc/profile cd /usr/source/linux wget -O - http://www.hardrock.org/kernel/2.4.20/linux-2.4.20-ptrace.patch mv /boot/bzImage /boot/bzImage.old.03-20-2003 make dep && make clean bzImage modules modules_install && cp arch/i386/boot/bzImage /boot Actual Results: stdinc -I /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include -DKBUILD_BASENAME=util -c -o util.o util.c util.c: In function `ipc_init_ids': util.c:80: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. make[2]: *** [util.o] Error 1 make[2]: Leaving directory `/usr/src/linux-2.4.20/ipc' make[1]: *** [first_rule] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.20/ipc' make: *** [_dir_ipc] Error 2 Expected Results: Successfully compiled the kernel + patch I tried to emerge lm_sensors to check the CPU temperature and this resulted in MORE ERRORS! MORE PROBLEMS: kernel/chips/adm1021.c: In function `adm1021_init_client': kernel/chips/adm1021.c:372: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. make: *** [kernel/chips/adm1021.o] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: sys-apps/lm_sensors-2.6.5 failed. !!! Function src_compile, Line 22, Exitcode 2 !!! lm_sensors requires the source of a compatible kernel\nversion installed in /usr/src/linux and i2c support built as a modules I would be very grateful if someone could help me fix the problems I am experiencing as a result of this botched kernel patch. uname -a output: Linux (HOSTNAME OMITTED) 2.4.20 #1 SMP Tue Feb 25 21:27:42 EST 2003 i686 AMD Athlon(tm) Processor AuthenticAMD GNU/Linux emerge info output: Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r2) ================================================================= System uname: 2.4.20 i686 AMD Athlon(tm) Processor GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/config /opt/quake3/cpma/server.cfg" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss arts avi crypt encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xv zlib gdbm berkdb slang readline tetex svga tcltk java guile mysql postgres sdl gpm tcpd pam libwww python esd imlib oggvorbis gtk qt motif mozilla scanner -3dfx 3dnow alsa -apm cdr cups -gnome -kde -ipv6 opengl -pcmcia perl samba ssl -matrox -voodoo3 X xmms" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
** Bugs introduced by you patching your kernel are really not a gentoo problem. ** Having said that ... What kernel sources ebuild did you emerge? Getting seg faults during a kernel compile quite often is the result of bad memory or incorrectly seated memory. Run memtest86 as advised. If memtest86 runs OK then try and build a clean unpatched kernel, say vanilla-sources: emerge vanilla-sources ln -sf /usr/src/linux-2.4.20 /usr/src/linux # adjust as appropriate cd /usr/src/linux make menuconfig make dep clean bzImage modules modules_install Once you have built, installed and booted the vanilla kernel, then try to emerge lm_sensors. If you still get errors with lm_sensors then file a bug stating what kernel sources ebuild you were trying to build lm_sensors against. If all that works then proceed to patch kernel and have another go. BTW, I hope you did actually issue a patch command after fetching the patch, eg: patch -p1 < linux-2.4.20-ptrace.patch
Well I later figured out how to patch the kernel - no I actually hadn't.... Yes, I was using the vanilla sources. As far as my memory goes, it looks like I had about 3888 failures in test 6 only (v. 2.9 of memtest86). I don't quite know what that means. I have an ASUS A7V motherboard, and 768MB PC-133 SDRAM (ECC disabled)
was memory issue with local pc.