Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293518 - sys-kernel/openvz-sources-2.6.27* fails to compile without SMP (and without Local APIC) support
Summary: sys-kernel/openvz-sources-2.6.27* fails to compile without SMP (and without L...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Peter Volkov (RETIRED)
URL: http://bugzilla.openvz.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-17 17:13 UTC by Max Arnold
Modified: 2010-04-05 20:01 UTC (History)
1 user (show)

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


Attachments
patch to fix compilation error (nmi-ipi-callback.patch,608 bytes, patch)
2009-11-17 17:17 UTC, Max Arnold
Details | Diff
kernel config (config-2.6.27-openvz-briullov.1-r3-2009-11-05,47.93 KB, text/plain)
2009-12-01 07:09 UTC, Max Arnold
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max Arnold 2009-11-17 17:13:33 UTC
Without SMP support sys-kernel/openvz-sources-2.6.27* fails to compile with following error:

arch/x86/kernel/traps_32.c:814: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'nmi_ipi_callback'
arch/x86/kernel/traps_32.c: In function 'do_nmi':
arch/x86/kernel/traps_32.c:872: error: implicit declaration of function 'nmi_ipi_callback'
arch/x86/kernel/traps_32.c: At top level:
arch/x86/kernel/traps_32.c:879: error: expected ')' before 'callback'
arch/x86/kernel/traps_32.c: In function 'unset_nmi_ipi_callback':
arch/x86/kernel/traps_32.c:886: error: 'nmi_ipi_callback' undeclared (first use in this function)
arch/x86/kernel/traps_32.c:886: error: (Each undeclared identifier is reported only once
arch/x86/kernel/traps_32.c:886: error: for each function it appears in.)
make[1]: *** [arch/x86/kernel/traps_32.o] Error 1
make: *** [arch/x86/kernel] Error 2

Link to OpenVZ bug: http://bugzilla.openvz.org/show_bug.cgi?id=1313

Reproducible: Always

Steps to Reproduce:
Comment 1 Max Arnold 2009-11-17 17:17:13 UTC
Created attachment 210528 [details, diff]
patch to fix compilation error

Patch source: http://www.gentoo.ru/node/12151
Comment 2 Wormo (RETIRED) gentoo-dev 2009-11-29 01:21:16 UTC
Thanks for the report, and thanks for posting the fix! Assigning to openvz maintainers.
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2009-11-30 22:05:29 UTC
Please, attach .config.
Comment 4 Max Arnold 2009-12-01 07:09:02 UTC
Created attachment 211658 [details]
kernel config
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2009-12-14 10:37:21 UTC
You need to enable CONFIG_X86_UP_APIC to workaround this problem. It's good idea to have local apic enabled in any case so ... no need to use this patch. At least this could wait longer until correct solution will be found. Thank you for report any way.
Comment 6 Peter Volkov (RETIRED) gentoo-dev 2010-04-05 12:09:01 UTC
Max, could you try to reproduce this problem with the most recent kernel version? Upstream states that this problem is fixed there.
Comment 7 Max Arnold 2010-04-05 14:20:18 UTC
I can not reproduce this problem on 2.6.27-openvz-kiprensky.1 with or without CONFIG_X86_UP_APIC. I didn't tried to boot it but otherwise it seems ok.

Issue can be probably closed now, thanks!
Comment 8 Peter Volkov (RETIRED) gentoo-dev 2010-04-05 20:01:51 UTC
Thank you. Fixed then.