Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72456 - kernel doesn't build properly with new binutils (2.15.90.0.1.1-r3)
Summary: kernel doesn't build properly with new binutils (2.15.90.0.1.1-r3)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-25 06:06 UTC by shing
Modified: 2004-11-30 06:49 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shing 2004-11-25 06:06:25 UTC
After emerging the new binutils-2.15.90.0.1.1-r3, I tried to build a new kernel. Kernel compiled fine, but after rebooting, the kernel gets stuck in a reboot-loop just after the "uncompressing kernel..." message.

I experimented with CFLAGS a bit and discovered that using the default CFLAGS works without trouble. This is on a thinkpad x40 so I had customized CFLAGS to contain "-march=pentium3 -msse2". Removing those flags seems to solve the problem. But this shouldn't happen, right?

Reproducible: Always
Steps to Reproduce:
1. emerge binutils-2.15.90.0.1.1-r3 with CFLAGS containing "-march=pentium3 -msse2" on a centrino laptop
2. build kernel
3. reboot with new kernel

Actual Results:  
Kernel gets stuck in a reboot loop.

Expected Results:  
Boot properly!
Comment 1 SpanKY gentoo-dev 2004-11-26 19:48:58 UTC
are you using a pentium m processor ?
you also neglected to provide `emerge info` like the bug report page says to
Comment 2 shing 2004-11-27 02:59:56 UTC
Sorry, I thought it was clear as I mentioned that this is on a thinkpad x40 which is a pentium-m centrino laptop.

emerge info:
Gentoo Base System version 1.6.6
Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r6 i686)
=================================================================
System uname: 2.6.9-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1300MHz
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -msse2"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -msse2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/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 alsa apm arts avi berkdb bitmap-fonts crypt cups encode f77 foomaticdb fortran gdbm gif gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod mmx motif mpeg ncurses oggvorbis opengl oss pam pdflib perl png python qt quicktime readline spell sse sse2 ssl svga tcpd truetype x86 xml2 xosd xv zlib"
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2004-11-27 03:04:03 UTC
do we need a filter-flags for binutils here?
Comment 4 SpanKY gentoo-dev 2004-11-29 19:15:51 UTC
a bit more info ... changing resolution ...
Comment 5 SpanKY gentoo-dev 2004-11-29 19:16:47 UTC
i dont really know anything about thinkpad's which is why i wanted to double check the cpu

if you do CFLAGS="-march=pentium3" and rebuild binutils / kernel, does the resulting kernel work ?
Comment 6 shing 2004-11-30 01:24:37 UTC
Just tried recompiling binutils without the "-msse2" flag and built the kernel using that. Seems to work fine.
Comment 7 SpanKY gentoo-dev 2004-11-30 06:49:24 UTC
the pentium m processor isnt properly supported with gcc <= 3.3.4 for sure

i'd be willing to bet that 3.3.5 is the same way (but dont quote me :P)

stop trying to force sse2 with pentium m and gcc-3.3.x ... upgrade to
gcc-3.4.x where the march flag has pentium m as an option