Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 191044 - sys-kernel/xen-sources-2.6.20-r2 fails to compile with paravirtualization support
Summary: sys-kernel/xen-sources-2.6.20-r2 fails to compile with paravirtualization sup...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Xen Devs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-02 11:50 UTC by Harold Anderson
Modified: 2010-01-06 22:28 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 Harold Anderson 2007-09-02 11:50:45 UTC
CC      arch/i386/kernel/time-xen.o
arch/i386/kernel/time-xen.c:971: fel: omdefiniering av "raw_safe_halt"
include/asm/paravirt.h:208: fel: tidigare defintion av "raw_safe_halt" var här
arch/i386/kernel/time-xen.c:980: fel: omdefiniering av "halt"
include/asm/paravirt.h:213: fel: tidigare defintion av "halt" var här
make[1]: *** [arch/i386/kernel/time-xen.o] Fel 1
make: *** [arch/i386/kernel] Fel 2


Reproducible: Always

Steps to Reproduce:
1. Turn on CONFIG_PARAVIRT in .config
2. Try to compile.
3. No step 3.

Actual Results:  
  CC      arch/i386/kernel/time-xen.o
arch/i386/kernel/time-xen.c:971: fel: omdefiniering av "raw_safe_halt"
include/asm/paravirt.h:208: fel: tidigare defintion av "raw_safe_halt" var här
arch/i386/kernel/time-xen.c:980: fel: omdefiniering av "halt"
include/asm/paravirt.h:213: fel: tidigare defintion av "halt" var här
make[1]: *** [arch/i386/kernel/time-xen.o] Fel 1
make: *** [arch/i386/kernel] Fel 2


Expected Results:  
compiled the kernel

If you turn off CONFIG_PARAVIRT, the kernel compiles fine.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-09-02 12:14:05 UTC
Reopen with errors in English, please. Set your locales to C when reporting bugs.
Comment 2 Harold Anderson 2007-09-02 12:52:20 UTC
Here's the Swedish lesson for you:

"Fel" means error.
"omdefiniering av" means redefinition of
"Tidigare defintion (sic) av var här" means previous definition was here.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-09-02 12:55:46 UTC
Well, we don't so much want Swedish lessons but rather the messages in English in future. Posting errors in random language makes searching for duplicate bugs impossible. :/
Comment 4 Harold Anderson 2007-09-02 13:04:49 UTC
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  CHK     include/linux/compile.h
  CC      arch/i386/kernel/time-xen.o
arch/i386/kernel/time-xen.c:971: error: redefinition of 'raw_safe_halt'
include/asm/paravirt.h:208: error: previous definition of 'raw_safe_halt' was here
arch/i386/kernel/time-xen.c:980: error: redefinition of 'halt'
include/asm/paravirt.h:213: error: previous definition of 'halt' was here
make[1]: *** [arch/i386/kernel/time-xen.o] Error 1
make: *** [arch/i386/kernel] Error 2
Comment 5 Micheal Marineau (RETIRED) gentoo-dev 2007-09-02 16:42:29 UTC
(In reply to comment #4)
>   CHK     include/linux/version.h
>   CHK     include/linux/utsrelease.h
>   CHK     include/linux/compile.h
>   CC      arch/i386/kernel/time-xen.o
> arch/i386/kernel/time-xen.c:971: error: redefinition of 'raw_safe_halt'
> include/asm/paravirt.h:208: error: previous definition of 'raw_safe_halt' was
> here
> arch/i386/kernel/time-xen.c:980: error: redefinition of 'halt'
> include/asm/paravirt.h:213: error: previous definition of 'halt' was here
> make[1]: *** [arch/i386/kernel/time-xen.o] Error 1
> make: *** [arch/i386/kernel] Error 2
> 

Hm, probably will be simple to fix as long as those are the only things that get redefined but I'm curious why you would turn on paravirt_ops in the first place? I don't think anything in 2.6.20 is using that infrastructure, are you patching in lguest or vmware support? Xen doesn't start using it until 2.6.23.
Comment 6 Harold Anderson 2007-09-02 16:47:17 UTC
OK, thanks.  I did not know that.
Comment 7 Patrick Lauer gentoo-dev 2010-01-06 22:28:36 UTC
Dropped version. Try .29 or .31 :)