Bug 150445 - Failed to compile kernel with 8K stacks
Failed to compile kernel with 8K stacks
Status: CLOSED DUPLICATE of bug 126342
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Dave Jones
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2005-03-06 14:34 EST by Robert de Vries
Modified: 2015-01-04 17:17 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-02-21 14:08:15 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Robert de Vries 2005-03-06 14:34:38 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.3; Linux) (KHTML, like Gecko)

Description of problem:
When I manually configure the kernel for my personal setup using the kernel source package with the 8K kernel stack option, I get link errors saying that it cannot find irq_ctx_init().
I have traced this to some weird #ifdef/#ifndef CONFIG_XEN statements in include/asm-i386/irq.h.
The #ifdefs may help in compiling the XEN kernels, but if you configure 8K stacks you can't link normal kernels.
The patch introducing the change is called: linux-2.6.9-xen-compile.patch

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Configure 8K stack with menu config or any config tool
2. Build kernel

Actual Results:  Link failure on missing symbol: irq_ctx_init

Expected Results:  Linked linux kernel

Additional info:

After reverting the part of the patch below, the kernel compiles and links fine.
--- linux-2.6.9/include/asm-i386/irq.h~ 2004-12-24 01:46:10.908739264 -0500
+++ linux-2.6.9/include/asm-i386/irq.h  2004-12-24 01:48:25.183326424 -0500
@@ -28,10 +28,14 @@ extern void release_vm86_irqs(struct tas

+ #ifndef CONFIG_XEN
   extern void irq_ctx_init(int cpu);
+ #endif
+ #ifdef CONFIG_XEN
 # define irq_ctx_init(cpu) do { } while (0)
+ #endif

Comment 1 Dave Jones 2005-03-06 17:07:56 EST

*** This bug has been marked as a duplicate of 126342 ***
Comment 2 Red Hat Bugzilla 2006-02-21 14:08:15 EST
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.

Note You need to log in before you can comment on or make changes to this bug.