Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66558 - Failure to compile unmodified linux-2.6.9-rc3-mm2
Summary: Failure to compile unmodified linux-2.6.9-rc3-mm2
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High blocker
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
: 66560 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-06 12:27 UTC by Greg Taylor
Modified: 2004-10-13 02:10 UTC (History)
1 user (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 Greg Taylor 2004-10-06 12:27:56 UTC
I emerged mm-sources (2.6.9-rc3-mm2), went on over to /usr/src/linux-2.6.9-rc3-mm2 and did a 'make menuconfig' and configured the kernel. I saved the config file, went to 'make && make modules_install' and I get the following error message:

arch/i386/kernel/irq.c:203: error: redefinition of 'is_irq_stack_ptr'
include/asm/hardirq.h:25: error: previous definition of 'is_irq_stack_ptr' was here
arch/i386/kernel/irq.c: In function `is_irq_stack_ptr':
arch/i386/kernel/irq.c:207: error: `hardirq_stack' undeclared (first use in this function)
arch/i386/kernel/irq.c:207: error: (Each undeclared identifier is reported only once
arch/i386/kernel/irq.c:207: error: for each function it appears in.)
arch/i386/kernel/irq.c:210: error: `softirq_stack' undeclared (first use in this function)
make[1]: *** [arch/i386/kernel/irq.o] Error 1
make: *** [arch/i386/kernel] Error 2



Reproducible: Always
Steps to Reproduce:
1. emerge mm-source
2. cd /usr/linux/linux-2.6.9-rc3-mm2
3. make menuconfig
4. make && make modules_install

Actual Results:  
The following error:

arch/i386/kernel/irq.c:203: error: redefinition of 'is_irq_stack_ptr'
include/asm/hardirq.h:25: error: previous definition of 'is_irq_stack_ptr' was here
arch/i386/kernel/irq.c: In function `is_irq_stack_ptr':
arch/i386/kernel/irq.c:207: error: `hardirq_stack' undeclared (first use in this
function)
arch/i386/kernel/irq.c:207: error: (Each undeclared identifier is reported only once
arch/i386/kernel/irq.c:207: error: for each function it appears in.)
arch/i386/kernel/irq.c:210: error: `softirq_stack' undeclared (first use in this
function)
make[1]: *** [arch/i386/kernel/irq.o] Error 1
make: *** [arch/i386/kernel] Error 2


Expected Results:  
Compiled the kernel :)

The kernel has not been modified at all and I'm running Gentoo on an Inspiron
5150, currently running linux-2.6.8-gentoo-r6.
Comment 1 Greg Taylor 2004-10-06 12:38:20 UTC
Forgot emerge info:

Portage 2.0.51_rc7 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.6.8-gentoo-r6 i686)
=================================================================
System uname: 2.6.8-gentoo-r6 i686 Mobile Intel(R) Pentium(R) 4     CPU 3.06GHz
Gentoo Base System version 1.5.3
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
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.22
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups encode esd foomaticdb gdbm gif gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod mmx mmx2 motif mpeg mysql ncurses nls nvidia oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcltk tcpd truetype x86 xml2 xmms xprint xv zlib"
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2004-10-06 13:10:49 UTC
*** Bug 66560 has been marked as a duplicate of this bug. ***
Comment 3 John D 2004-10-06 16:59:49 UTC
see this thread in Gentoo forums: http://forums.gentoo.org/viewtopic.php?t=233256&highlight=isirqstackptr


The patch for the fix is at http://lkml.org/lkml/2004/10/4/38 


Contents:
---
--- linux-2.6.9-rc3-mm2/arch/i386/kernel/irq.c.old	2004-10-04 12:30:08.600490264 +0200
+++ linux-2.6.9-rc3-mm2/arch/i386/kernel/irq.c	2004-10-04 12:27:44.632376744 +0200
@@ -199,6 +199,7 @@
 
 atomic_t irq_err_count;
 
+#ifdef CONFIG_4KSTACKS
 int is_irq_stack_ptr(struct task_struct *task, void *p)
 {
 	unsigned long off;
@@ -213,6 +214,7 @@
 
 	return 0;
 }
+#endif
 
 /*
  * /proc/interrupts printing:
Hum, and I can see that there is a fix to get reiser4 working with 4Kstacks
but reiser4 option still doesn't appear if CONFIG_4KSTACKS is enabled.
---
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2004-10-13 02:10:44 UTC
We don't support mm-sources, sorry.