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"
Created attachment 32472 [details] the kernel config file this is the kernel .config file I'm trying to compile with
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.
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.
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.
Binutils broke it.
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?
Yep; reassigning to base-system...
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.
*** Bug 56878 has been marked as a duplicate of this bug. ***
I
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.
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