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

Bug 114565

Summary: Kernel fails to compile (ending with "Error 139") with binutils-2.16.1
Product: Gentoo Linux Reporter: ignatius <polak>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Output of `dmesg'

Description ignatius 2005-12-05 13:38:43 UTC
After a recent emerge --sync, the kernel fails to compile. The error message reads:

   LD      .tmp_vmlinux1
/bin/sh: line 1: 29588 Segmentation fault      <...>
make: *** [.tmp_vmlinux1] Error 139

Downgrading from binutils-2.16.1 to binutils-2.15.92.0.2-r10 seems to solve the
problem. The kernel can be successfully compiled again.

Reproducible: Always
Steps to Reproduce:
1. emerge binutils-2.16.1
2. cd /usr/src/linux; make clean; make
3. observe failure of the compilation process.
4. downgrade binutils to binutils-2.15.92.0.2-r10
5. cd /usr/src/linux; make clean; make
6. observe a successful compilation
Actual Results:  
After steps 1--2, failure of the compilation process, ending up with the "Error
139" message.

After steps 4--5, an expected behavior of the kernel compilation process.

Expected Results:  
A successful kernel compilation, eventually bzImage, with binutils-2.16.1

Configurations
==============

I am running Gentoo on a DELL Inspiron 4150 laptop, 1.7GHz, 256MB RAM.

uname -a
--------
Linux btpak1 2.6.14-gentoo-r2 #12 PREEMPT Sun Dec 4 22:34:07 CET 2005 i686
Intel(R) Pentium(R) 4 Mobile CPU 1.70GHz GenuineIntel GNU/Linux

lspci
-----
0000:00:00.0 Host bridge: Intel Corp. 82845 845 (Brookdale) Chipset Host Bridge
(rev 04)
0000:00:01.0 PCI bridge: Intel Corp. 82845 845 (Brookdale) Chipset AGP Bridge
(rev 04)
0000:00:1d.0 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #1) (rev 02)
0000:00:1e.0 PCI bridge: Intel Corp. 82801 Mobile PCI Bridge (rev 42)
0000:00:1f.0 ISA bridge: Intel Corp. 82801CAM ISA Bridge (LPC) (rev 02)
0000:00:1f.1 IDE interface: Intel Corp. 82801CAM IDE U100 (rev 02)
0000:00:1f.5 Multimedia audio controller: Intel Corp. 82801CA/CAM AC'97 Audio
Controller (rev 02)
0000:00:1f.6 Modem: Intel Corp. 82801CA/CAM AC'97 Modem Controller (rev 02)
0000:01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M7
LW [Radeon Mobility 7500]
0000:02:00.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 78)
0000:02:01.0 CardBus bridge: Texas Instruments PCI1420
0000:02:01.1 CardBus bridge: Texas Instruments PCI1420

emerge info (with binutils-2.15.92.0.2-r10)
-------------------------------------------
Gentoo Base System version 1.6.13
Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2,
2.6.14-gentoo-r2 i686)
=================================================================
System uname: 2.6.14-gentoo-r2 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.70GHz
ccache version 2.3 [enabled]
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.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -march=pentium4 -pipe -fomit-frame-pointer"
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/hsfmodem /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/home/portage/distfiles"
FEATURES="autoconfig ccache distlocks nodoc noinfo sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.ipv6.uni-muenster.de/pub/linux/distributions/gentoo
http://trumpetti.atm.tut.fi/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
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 bzip2 cdr crypt cups
dvd eds emboss encode exif expat fam ffmpeg foomaticdb fortran gdbm gif glut gpm
gstreamer gtk gtk2 hal idn imagemagick imap imlib java jpeg kde kdeenablefinal
lcms libg++ libwww mad maildir mikmod mng motif mozilla mp3 mpeg nas ncurses nls
nptl nsplugin ogg oggvorbis opengl oss pam pcmcia pcre pdflib perl png pnp
python qt quicktime readline sdl spell ssl svga tcltk tcpd tetex tiff truetype
truetype-fonts type1-fonts udev unicode usb vorbis wifi xml2 xmms xv xvid zlib
video_cards_radeon userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS
Comment 1 SpanKY gentoo-dev 2005-12-05 14:05:25 UTC
Segmentation fault while building kernel usually is because of hardware rather
than binutils

is there anything useful in `dmesg` ?
Comment 2 ignatius 2005-12-06 15:14:14 UTC
Created attachment 74180 [details]
Output of `dmesg'

Thank you for the quick respond.
I did not notice anything special in dmesg's output (see attachment).
Comment 3 ignatius 2005-12-06 15:33:32 UTC
I have run `memtest86' in the meantime. All test are ok.
Comment 4 SpanKY gentoo-dev 2005-12-08 06:16:49 UTC

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