Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52699 - binutils 2.14.90.0.8-r1 breaks gentoo-dev-sources 2.6.5-r1 with error 139
Summary: binutils 2.14.90.0.8-r1 breaks gentoo-dev-sources 2.6.5-r1 with error 139
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 56878 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-01 10:32 UTC by Ákos Maróy
Modified: 2004-10-20 07:56 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
the kernel config file (.config,32.86 KB, text/plain)
2004-06-01 10:33 UTC, Ákos Maróy
Details
desktop kernel config (config-2.6.5-gentoo-r1,34.10 KB, text/plain)
2004-06-01 11:09 UTC, Ákos Maróy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ákos Maróy 2004-06-01 10:32:19 UTC
I try to compile gentoo-dev-sources 2.6.5-r1, but I get the following error:

  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  gcc -Wp,-MD,init/.version.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude  -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2  -march=pentium3 -Iinclude/asm-i386/mach-default -O2 -fomit-frame-pointer -Wdeclaration-after-statement    -DKBUILD_BASENAME=version -DKBUILD_MODNAME=version -c -o init/.tmp_version.o init/version.c
   ld -m elf_i386  -r -o init/built-in.o init/main.o init/version.o init/mounts.o init/initramfs.o
        ld -m elf_i386  -T arch/i386/kernel/vmlinux.lds.s 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  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  arch/i386/power/built-in.o  net/built-in.o --end-group  -o .tmp_vmlinux1
make: *** [.tmp_vmlinux1] Error 139


the same thing happens trying to compile a stock 2.6.6 kernel. so probably there's a problem with the build tools? I'm using:

binutils 20.14.90.0.8-r1
gcc 3.3.2-r5

Reproducible: Always
Steps to Reproduce:
1. emerge gentoo-dev-sources
2. try to compile it
3. see it fail, as above

Actual Results:  
the kernel fails to compile

Expected Results:  
the kernel should compile

this is a brand new vanilla installation of gentoo 2004.1.

# emerge info
Portage 2.0.50-r7 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-gentoo-r2)
=================================================================
System uname: 2.4.25-gentoo-r2 i686 Intel(R) Pentium(R) M processor 1.80GHz
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -pipe -O3 -fomit-frame-pointer -frename-registers
-fprefetch-loop-arrays -falign-functions -mmmx -msse2 -msse"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf
/etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -pipe -O3 -fomit-frame-pointer -frename-registers
-fprefetch-loop-arrays -falign-functions -mmmx -msse2 -msse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://128.213.5.34/gentoo/ http://mirror.datapipe.net/gentoo
http://mirror.datapipe.net/gentoo
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acpi acpi4linux alsa apache2 avi berkdb bidi bluetooth canna caps
cdr cjk crypt cscope cups curl dga directfb dri dvd dvdr encode esd fbcon flash
foomaticdb freewnn gdbm gif gnome gpm gstreamer gtk gtk2 imlib irda java
javascript jpeg junit libg++ libwww mad mbox mikmod mmx motif mozcalendar
mozilla mpeg ncurses nls oggvorbis opengl opie oss pam pcmcia pda pdflib perl
png pnp python quicktime radoen readline sdl slang spell sse sse2 ssl svga tcpd
tetex tiff truetype trusted unicode usb vawelan video_cards_radeon x86 xinerama
xml xml2 xmms xosd xv zlib"
Comment 1 Ákos Maróy 2004-06-01 10:33:12 UTC
Created attachment 32472 [details]
the kernel config file

this is the kernel .config file I'm trying to compile with
Comment 2 Ákos Maróy 2004-06-01 11:08:40 UTC
fhe strange thing is, that I use the same gentoo-dev-source 2.6.5-r1 kernel on my desktop machine. there, it compiles fine. that machine is an older installation of gentoo, around 2004.0:

$ emerge info
Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.3.13
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://212.219.247.20/sites/www.ibiblio.org/gentoo/ http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/ http://212.219.247.15/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi alsa apache2 avi berkdb canna cdr cjk crypt cscope cups curl dvd dvdr encode esd foomaticdb freewnn gdbm gif gnome gphoto2 gpm gtk gtk2 imlib irda java jpeg junit libg++ libwww lirc mad mbox mikmod motif mozilla mpeg ncurses nls nvidia oggvorbis opengl oss pam pda pdflib perl png postgres python quicktime readline sdl slang spell ssl svga tcltk tcpd tiff truetype unicode usb x86 xml2 xmms xv zlib"



but, if I try to compile the kernel config that compiled on my desktop, it doesn't compile either. so it seems the problem is not with the kernel, but with the build tools on this system.
Comment 3 Ákos Maróy 2004-06-01 11:09:41 UTC
Created attachment 32473 [details]
desktop kernel config

this is the kernel config for my desktop. this compiles on the desktop fine,
but not on the new machine.
Comment 4 Ákos Maróy 2004-06-01 20:17:57 UTC
it seems that it's binutils that is fault. I experienced the reported error with binutils 20.14.90.0.8-r1, which is the current up-to-date version.

if I degrade to 2.14.90.0.7-r4, all works fine.

this new version of binutils seems to be busted.
Comment 5 Jason Cox (RETIRED) gentoo-dev 2004-06-02 18:42:08 UTC
Binutils broke it. 
Comment 6 Ákos Maróy 2004-06-02 21:54:43 UTC
OK, fixed in terms of gentoo-dev-sources, but this means there's a bug in binutils. shouldn't we re-issue the bug for binutils?
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2004-06-03 01:53:12 UTC
Yep; reassigning to base-system...
Comment 8 Michael Imhof (RETIRED) gentoo-dev 2004-07-13 07:57:02 UTC
I can confirm this for devlopment-sources-2.6.7 as well for mm-sources-2.6.5-r6.

It would be great if someone could fix this asap.
Comment 9 Michal Januszewski (RETIRED) gentoo-dev 2004-07-13 10:08:15 UTC
*** Bug 56878 has been marked as a duplicate of this bug. ***
Comment 10 Steffen Weber 2004-09-26 05:37:19 UTC
I
Comment 11 Steffen Weber 2004-09-26 05:37:19 UTC
I´ve been able to compile Linux 2.6.8.1 after I recompiled binutils with CFLAGS="-march=pentium3 -pipe". It did not work with "-march=pentium3 -O3 -pipe -msse2 -fomit-frame-pointer" (Using a Pentium M).

Before this I tried using binutils-2.15.91.x which did not solve this problem.

I´m using gcc-3.3.4-r2 and glibc with NPTL.
Comment 12 SpanKY gentoo-dev 2004-10-20 07:56:01 UTC
pentium-m's + gcc-3.3.x + forcing pentium3/sse2 optimizations == trouble

dont do it

use gcc-3.4.x with your pentium-m's and -march=pentium-m

binutils isnt the only package that suffers from this 'problem' so nothing
will be done to address it