Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405957 - sys-kernel/openvz-sources-2.6.32.49.6 - arch/x86/kernel/apic/apic.c:819:6: erreur: 'nmi_watchdog' undeclared (first use in this function)
Summary: sys-kernel/openvz-sources-2.6.32.49.6 - arch/x86/kernel/apic/apic.c:819:6: er...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Peter Volkov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-26 20:14 UTC by Christophe PEREZ
Modified: 2012-08-22 08:59 UTC (History)
7 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 Christophe PEREZ 2012-02-26 20:14:15 UTC
# uname -a
Linux serveur2 2.6.32-openvz-feoktistov.1 #1 SMP Thu Sep 29 23:40:07 AST 2011 x86_64 Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz GenuineIntel GNU/Linux

# emerge -u openvz-sources
# cd /usr/src/linux-2.6.32-openvz-049.6/
copy my actual .config and make oldconfig
then :
# make
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-x86
  CALL    scripts/checksyscalls.sh
  CHK     include/linux/compile.h
  CC      arch/x86/kernel/apic/apic.o
arch/x86/kernel/apic/apic.c: In function 'setup_boot_APIC_clock':
arch/x86/kernel/apic/apic.c:819:6: erreur: 'nmi_watchdog' undeclared (first use in this function)
arch/x86/kernel/apic/apic.c:819:6: note: each undeclared identifier is reported only once for each function it appears in
arch/x86/kernel/apic/apic.c:819:22: erreur: 'NMI_IO_APIC' undeclared (first use in this function)
arch/x86/kernel/apic/apic.c: In function 'end_local_APIC_setup':
arch/x86/kernel/apic/apic.c:1407:2: erreur: implicit declaration of function 'nmi_watchdog_default'
arch/x86/kernel/apic/apic.c:1408:2: erreur: implicit declaration of function 'setup_apic_nmi_watchdog'
arch/x86/kernel/apic/apic.c: In function 'APIC_init_uniprocessor':
arch/x86/kernel/apic/apic.c:1784:3: erreur: implicit declaration of function 'localise_nmi_watchdog'
arch/x86/kernel/apic/apic.c:1792:2: erreur: implicit declaration of function 'check_nmi_watchdog'
make[3]: *** [arch/x86/kernel/apic/apic.o] Erreur 1
make[2]: *** [arch/x86/kernel/apic] Erreur 2
make[1]: *** [arch/x86/kernel] Erreur 2


Reproducible: Always
Comment 1 Richard H. 2012-03-20 11:59:08 UTC
Same on x86:

Linux srv01 2.6.32-openvz-feoktistov.1-RFsrv01 #4 SMP Mon Nov 21 14:02:17 CET 2011 i686 Intel(R) Xeon(TM) CPU 3.00GHz GenuineIntel GNU/Linux
Comment 2 Per Pascal Seeland 2012-03-22 17:54:58 UTC
I could reproduce it on x86_64. Same issue

Linux grubepc 2.6.32-openvz-feoktistov.1 #2 SMP Fri Mar 18 12:57:32 CET 2011 x86_64 Pentium(R) Dual-Core CPU E5400 @ 2.70GHz GenuineIntel GNU/Linux
Comment 3 Per Pascal Seeland 2012-03-23 12:15:26 UTC
Using the config provided by openvz for the rhel6 kernel version at http://download.openvz.org/kernel/branches/rhel6-2.6.32/042stab049.6/configs/ can be compiled without issues. 

For me this looks like there is one kernel setting that causes this issues. I did try to find this config by adding more and more options to my config to figues out the config switch, but I did not succeed. I'm now trying to strip down the provided option until it fails, hoping that it will provide me with some insight.
Comment 4 Alexander Zubkov 2012-03-24 17:16:29 UTC
It looks like it compiles well with CONFIG_LOCKUP_DETECTOR, in that case this piece of code is dropped by preprocessor.
Comment 5 Christophe PEREZ 2012-03-24 20:18:40 UTC
(In reply to comment #4)
> It looks like it compiles well with CONFIG_LOCKUP_DETECTOR, in that case
> this piece of code is dropped by preprocessor.

# grep CONFIG_LOCKUP_DETECTOR linux-2.6.32-openvz-049.6/.config
CONFIG_LOCKUP_DETECTOR=y

and doesn't compile for me.
Comment 6 Alexander Zubkov 2012-03-25 09:08:10 UTC
> # grep CONFIG_LOCKUP_DETECTOR linux-2.6.32-openvz-049.6/.config
> CONFIG_LOCKUP_DETECTOR=y
> 
> and doesn't compile for me.

Error remains the same? Because there seems to be many other restrictions in compiling this kernel. I have also submitted couple of bugs. But there's more.
Comment 7 Christophe PEREZ 2012-03-25 14:05:45 UTC
(In reply to comment #6)
> > # grep CONFIG_LOCKUP_DETECTOR linux-2.6.32-openvz-049.6/.config
> > CONFIG_LOCKUP_DETECTOR=y
> > 
> > and doesn't compile for me.
> 
> Error remains the same?

Yes. I didn't change anything since I opened this bug.
Comment 8 Alexander Zubkov 2012-03-26 13:45:00 UTC
Hmm... May be, may be. Looks like I was having some other error with alike keywords. :)
Comment 9 Vladimir Berezhnoy 2012-04-04 03:21:15 UTC
Having the same issues. Was anyone able to figure out which options is required?
Comment 10 Per Pascal Seeland 2012-04-05 10:47:58 UTC
I'm still working on removing config options until it stops compiling. In case anybody has any better suggestion, I would be glad to here it, as removing an option and wait for recompile is something that takes ages.
Comment 11 Peter Volkov (RETIRED) gentoo-dev 2012-05-03 12:32:48 UTC
Guys, to be on the same side: upstream is unable to handle all build failures since most of them come from rhel patchset others are due to unimplemented features with specific configuration in openvz. I strongly suggest using .config from openvz wiki and tune it to your needs (disable unnecessary modules and compile in features you may need). You may try to report build issues upstream and sometimes they incorporate fixes into their patchset. I did this long time, but ... found much easier to use .config from upstream as new options appear broken with new rhel revision. I'll close this bug as upstream.
Comment 12 Ferenc Csurgai 2012-08-22 08:59:00 UTC
If you switch this on in the kernel config the problem is disappear:

Symbol: HARDLOCKUP_DETECTOR Location:                                                                        
    -> Kernel hacking                                                              
      -> Kernel debugging (DEBUG_KERNEL [=y])                                      
        -> Detect Hard and Soft Lockups (LOCKUP_DETECTOR [=y])