Compiling kernel linux-2.6.13-gentoo-r1 and linux-2.6.12-gentoo-r10 both manually and with genkernel give me a segmentation fault and make error 139. Reproducible: Always Steps to Reproduce: 1. make menuconfig && make or 1. genkernel --menuconfig --mrproper all Actual Results: Compiles fine until it reaches: LD vmlinux Expected Results: Produce a valid kernel image. LD vmlinux /bin/sh: line 1: 26939 Segmentation fault ld -m elf_i386 -o vmlinux -T arch/i386/kernel/vmlinux.lds arch/i386/kernel/head.o arch/i386/kernel/init_task. o init/built-in.o --start-group usr/built-in.o arch/i386/kernel/built-in.o arch/ i386/mm/built-in.o arch/i386/mach-default/built-in.o arch/i386/crypto/built-in.o kernel/built-in.o mm/built-in.o fs/built-in.o ipc/built-in.o security/built-in.o crypto/built-in.o lib/lib.a arch/i386/lib/lib.a lib/built-in.o arch/i386/lib/ built-in.o drivers/built-in.o sound/built-in.o arch/i386/pci/built-in.o net/ built-in.o --end-group make: *** [vmlinux] Error 139 * Gentoo Linux Genkernel; Version 3.3.6[0m * Running with options: --menuconfig --mrproper all * ERROR: Failed to compile the "bzImage" target... * -- Grepping log... -- * -- End log... -- * Please consult /var/log/genkernel.log for more information and any * errors that were reported above. * Report any genkernel bugs to bugs.gentoo.org and * assign your bug to genkernel@gentoo.org. Please include * as much information as you can in your bug report; attaching * /var/log/genkernel.log so that your issue can be dealt with effectively. * * Please do *not* report compilation failures as genkernel bugs! *
Created attachment 68809 [details] genkernel.log This is the genkernel log produced for the error.
You neglected to post emerge --info output as instructed to when filing the bug.
Gentoo Base System version 1.12.0_pre8 Portage 2.0.52-r1 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r1, 2.6.12- gentoo-r10 i686) ================================================================= System uname: 2.6.12-gentoo-r10 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz dev-lang/python: 2.3.5-r2, 2.4.1-r1 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-pipe -O2 -mcpu=i686 -march=pentium4" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/ share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb / usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-pipe -O2 -mcpu=i686 -march=pentium4" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.gg3.net/ http://mirror.averse.net/pub/gentoo/ http://mirror.gentoo.gr.jp ftp://mirror.averse.net/pub/gentoo ftp://gg3.net/pub/ linux/gentoo/" LINGUAS="en_ja" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts avi berkdb bitmap-fonts cjk crypt cups curl dvd eds emboss encode fam foomatic foomaticdb fortran gdbm gif gpm gstreamer gtk2 imlib immqt-bc ipv6 jpeg kde kdeenablefinal libg++ libwww mad matroska mikmod motif mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline real spell ssl tcpd tiff truetype truetype-fonts type1-fonts unicode usb vorbis xml2 xmms xv zlib linguas_en_ja userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
*added 'emerge info' above
Which was the last good kernel version? If you attempt to recompile that good version now, does it succeed?
It was linux-2.6.12-gentoo-r10 and it was fine as it was a fresh install until I recompiled it, which was when that error appeared. I have since re-installed and moved to linux-2.6.13-gentoo-r2 and have no problems now.
Ok, marking as fixed