Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 117775

Summary: Compiling 2.6.15 kernel results in Segmentation Fault Error 139
Product: Gentoo Linux Reporter: Chris Holcombe <xfactor973>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: patrick
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Chris Holcombe 2006-01-04 12:28:35 UTC
I noticed this happened after I upgraded my system.  So I downgraded and upgraded both binutils and gcc.  Neither seemed to fix the problem.  I'm compiling the kernel myself with make bzImage.  

My emerge --info is shown here:  

Gentoo Base System version 1.12.0_pre12
Portage 2.0.53 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.14 i686)
=================================================================
System uname: 2.6.14 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -ffast-math -pipe -mcpu=i686 -fomit-frame-pointer -mfpmath=sse,387 -msse2 -mmmx"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -ffast-math -pipe -mcpu=i686 -fomit-frame-pointer -mfpmath=sse,387 -msse2 -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts audiofile avi berkdb bitmap-fonts bonobo browserplugin bzip2 cdr crypt cups curl dvd dvdr eds emboss encode esd ethereal exif expat fam ffmpeg foomaticdb fortran gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile hal idn imagemagick imlib ipv6 java jpeg junit kde lcms ldap libg++ libwww mad mikmod mng mono motif mozilla mp3 mpeg ncurses nls nvidia ogg oggvorbis opengl oss pam pcre pda pdflib perl png python qt quicktime readline samba spell sqlite ssl svga tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis xine xml xml2 xmms xv xvid zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

With the kernel compile error here:  

  CHK     include/linux/version.h
  CHK     include/linux/compile.h
dnsdomainname: Unknown host
  CHK     usr/initramfs_list
  GEN     .version
  CHK     include/linux/compile.h
dnsdomainname: Unknown host
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
/bin/sh: line 1:   878 Segmentation fault      ld -m elf_i386 -m elf_i386 -o .tmp_vmlinux1 -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 block/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 arch/i386/oprofile/built-in.o net/built-in.o --end-group
make: *** [.tmp_vmlinux1] Error 139
Comment 1 Patrick Lauer gentoo-dev 2006-01-05 10:55:46 UTC
I suspect your CFLAGS acting up - I've compiled 2.6.15 without problems.
Please don't use flags like -ffast-math globally. Try to recompile gcc, binutils and glibc with normal CFLAGS.

Also - is this the only thing segfaulting?
Comment 2 Chris Holcombe 2006-01-05 11:36:14 UTC
(In reply to comment #1)
> I suspect your CFLAGS acting up - I've compiled 2.6.15 without problems.
> Please don't use flags like -ffast-math globally. Try to recompile gcc,
> binutils and glibc with normal CFLAGS.
> 
> Also - is this the only thing segfaulting?
> 
Yeah oddly enough that's the only thing that I noticed is segfaulting.  I'll give the recompile a try.  What would be considered normal CFLAGS?  
Comment 3 Patrick Lauer gentoo-dev 2006-01-05 11:50:46 UTC
"-O2 -march=pentium4 -pipe" should be good, -fomit-frame-pointer shouldn't cause any problems afaik

-march= usually implies sse / mmx / ... already, so those don't do anything :-)

Good luck,
Patrick
Comment 4 Chris Holcombe 2006-01-05 13:39:28 UTC
It's still giving me a Seg fault with the same Error 139 after recompiling all the packages you mentioned.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-03-18 07:02:18 UTC
Reopen to dupe...
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-03-18 07:02:38 UTC

*** This bug has been marked as a duplicate of 114014 ***