You are not logged in.

#1 2011-05-07 14:02:22

themad
Member
Registered: 2009-10-21
Posts: 3

kernel26-xen-dom0 compile error

I have a problem while compiling kernel26-xen-dom0 from AUR. Each time I compile it i get (last few lines):

/tmp/yaourt-tmp-root/aur-kernel26-xen-dom0/src/linux-2.6.32.15/arch/x86/include/asm/irq_regs.h: In function ‘set_irq_regs’:
/tmp/yaourt-tmp-root/aur-kernel26-xen-dom0/src/linux-2.6.32.15/arch/x86/include/asm/irq_regs.h:26:2: warning: variable ‘tmp__’ set but not used [-Wunused-but-set-variable]
In file included from /tmp/yaourt-tmp-root/aur-kernel26-xen-dom0/src/linux-2.6.32.15/arch/x86/include/asm/hardirq.h:5:0,
                 from include/linux/hardirq.h:10,
                 from include/linux/interrupt.h:12,
                 from arch/x86/kernel/process_32-xen.c:25:
include/linux/irq.h: In function ‘alloc_desc_masks’:
include/linux/irq.h:441:8: warning: variable ‘gfp’ set but not used [-Wunused-but-set-variable]
arch/x86/kernel/process_32-xen.c: In function ‘__switch_to’:
arch/x86/kernel/process_32-xen.c:497:2: warning: variable ‘tmp__’ set but not used [-Wunused-but-set-variable]
  CC      arch/x86/kernel/signal.o
In file included from /tmp/yaourt-tmp-root/aur-kernel26-xen-dom0/src/linux-2.6.32.15/arch/x86/include/mach-xen/asm/system.h:9:0,
                 from /tmp/yaourt-tmp-root/aur-kernel26-xen-dom0/src/linux-2.6.32.15/arch/x86/include/mach-xen/asm/processor.h:17,
                 from /tmp/yaourt-tmp-root/aur-kernel26-xen-dom0/src/linux-2.6.32.15/arch/x86/include/asm/thread_info.h:22,
                 from include/linux/thread_info.h:56,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:50,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:8,
                 from include/linux/timex.h:56,
                 from include/linux/sched.h:56,
                 from arch/x86/kernel/signal.c:9:
/tmp/yaourt-tmp-root/aur-kernel26-xen-dom0/src/linux-2.6.32.15/arch/x86/include/mach-xen/asm/hypervisor.h: In function ‘arch_enter_lazy_mmu_mode’:
/tmp/yaourt-tmp-root/aur-kernel26-xen-dom0/src/linux-2.6.32.15/arch/x86/include/mach-xen/asm/hypervisor.h:173:2: warning: variable ‘tmp__’ set but not used [-Wunused-but-set-variable]
/tmp/yaourt-tmp-root/aur-kernel26-xen-dom0/src/linux-2.6.32.15/arch/x86/include/mach-xen/asm/hypervisor.h: In function ‘arch_leave_lazy_mmu_mode’:
/tmp/yaourt-tmp-root/aur-kernel26-xen-dom0/src/linux-2.6.32.15/arch/x86/include/mach-xen/asm/hypervisor.h:178:2: warning: variable ‘tmp__’ set but not used [-Wunused-but-set-variable]
In file included from include/linux/irq.h:29:0,
                 from /tmp/yaourt-tmp-root/aur-kernel26-xen-dom0/src/linux-2.6.32.15/arch/x86/include/asm/hardirq.h:5,
                 from include/linux/hardirq.h:10,
                 from include/linux/interrupt.h:12,
                 from include/linux/kernel_stat.h:8,
                 from /tmp/yaourt-tmp-root/aur-kernel26-xen-dom0/src/linux-2.6.32.15/arch/x86/include/asm/i387.h:14,
                 from arch/x86/kernel/signal.c:25:
/tmp/yaourt-tmp-root/aur-kernel26-xen-dom0/src/linux-2.6.32.15/arch/x86/include/asm/irq_regs.h: In function ‘set_irq_regs’:
/tmp/yaourt-tmp-root/aur-kernel26-xen-dom0/src/linux-2.6.32.15/arch/x86/include/asm/irq_regs.h:26:2: warning: variable ‘tmp__’ set but not used [-Wunused-but-set-variable]
In file included from /tmp/yaourt-tmp-root/aur-kernel26-xen-dom0/src/linux-2.6.32.15/arch/x86/include/asm/hardirq.h:5:0,
                 from include/linux/hardirq.h:10,
                 from include/linux/interrupt.h:12,
                 from include/linux/kernel_stat.h:8,
                 from /tmp/yaourt-tmp-root/aur-kernel26-xen-dom0/src/linux-2.6.32.15/arch/x86/include/asm/i387.h:14,
                 from arch/x86/kernel/signal.c:25:
include/linux/irq.h: In function ‘alloc_desc_masks’:
include/linux/irq.h:441:8: warning: variable ‘gfp’ set but not used [-Wunused-but-set-variable]
  AS      arch/x86/kernel/entry_32.o
arch/x86/kernel/entry_32-xen.S: Assembler messages:
arch/x86/kernel/entry_32-xen.S:1704: Error: .size expression for spurious_interrupt_bug does not evaluate to a constant
make[2]: *** [arch/x86/kernel/entry_32.o] Error 1
make[1]: *** [arch/x86/kernel] Error 2
make: *** [arch/x86] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Used yaourt and makepkg, still the same error. Also tried:
kernel26-xen-dom0-dev - same error accours
kernel26-xen - sth wrong with ethtool

How can I compile it, to make xen work? (I am new to xen)

Last edited by themad (2011-05-07 14:03:26)

Offline

#2 2011-06-05 15:49:39

d1t2
Member
Registered: 2011-06-05
Posts: 5

Re: kernel26-xen-dom0 compile error

NOTE: only kernel26-xen-dom0-dev(2.6.34-3) tested on my laptop, just avoid to compile problematic modules

paste blow before loading config in PKGBUILD may help

# for vdso issue, as shimimana commented at kernel26-xen-dom0
  sed -i -e's/m elf_x86_64/m64/' -e's/m elf_i386/m32/' "${srcdir}/linux-${pkgver}/arch/x86/vdso/Makefile"

# for ethtool issue(duplicated 'page' variable)
  sed -i -e's/^\(CONFIG_IGBVF\).*/# \1 is not set/' ./.config

# solve some error on dev pkg(*error* of variable gfp)
  sed -i -e's/^\(CONFIG_XEN_NETDEV_FRONTEND\).*/# \1 is not set/' ./.config

Offline

Board footer

Powered by FluxBB