Matthias Quade
2006-Jan-25 12:07 UTC
[Xen-devel] Can''t build SMP Kernel from linux-2.6-xen mergetree
Hi, i''ve done an hg pull and update and wanted to build a new dom0 kernel for my dual P3. I can build either a SMP kernel (X86_PC [=y] & SMP [=y]) or a Xen-Kernel (X86_XEN [=y] & SMP [=n]). If I enable both I''ll get the stuff down there... My .config is attached. Maybee I''m doing something completly wrong... So please give me an advice how to compile an smp-kernel for xen. Thanks and kind regards, Matthias Quade root@gisele:/usr/src/linux# make CHK include/linux/version.h SPLIT include/linux/autoconf.h -> include/config/* CC arch/i386/kernel/asm-offsets.s In file included from include/asm/mach-xen/asm/fixmap.h:27, from include/asm/mach-xen/asm/smp.h:16, from include/linux/smp.h:19, from include/asm/mach-xen/asm/system.h:7, from include/asm/mach-xen/asm/processor.h:18, from include/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/preempt.h:10, from include/linux/spinlock.h:50, from include/linux/capability.h:45, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/asm/acpi.h: In Funktion »__acpi_acquire_global_lock«: include/asm/acpi.h:67: Warnung: implicit declaration of function `cmpxchg'' In file included from include/linux/pm.h:27, from include/asm/apic.h:5, from include/asm/mach-xen/asm/smp.h:22, from include/linux/smp.h:19, from include/asm/mach-xen/asm/system.h:7, from include/asm/mach-xen/asm/processor.h:18, from include/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/preempt.h:10, from include/linux/spinlock.h:50, from include/linux/capability.h:45, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/linux/list.h: In Funktion »__list_add_rcu«: include/linux/list.h:94: Warnung: implicit declaration of function `smp_wmb'' In file included from include/asm/mach-xen/asm/smp.h:22, from include/linux/smp.h:19, from include/asm/mach-xen/asm/system.h:7, from include/asm/mach-xen/asm/processor.h:18, from include/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/preempt.h:10, from include/linux/spinlock.h:50, from include/linux/capability.h:45, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/asm/apic.h: In Funktion »lapic_disable«: include/asm/apic.h:26: error: `boot_cpu_data'' undeclared (first use in this function) include/asm/apic.h:26: error: (Each undeclared identifier is reported only once include/asm/apic.h:26: error: for each function it appears in.) include/asm/apic.h: In Funktion »apic_write_atomic«: include/asm/apic.h:59: Warnung: implicit declaration of function `xchg'' include/asm/apic.h: In Funktion »apic_wait_icr_idle«: include/asm/apic.h:70: Warnung: implicit declaration of function `cpu_relax'' In file included from include/asm/mach-xen/asm/system.h:7, from include/asm/mach-xen/asm/processor.h:18, from include/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/preempt.h:10, from include/linux/spinlock.h:50, from include/linux/capability.h:45, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/linux/smp.h: In Funktion »on_each_cpu«: include/linux/smp.h:67: Warnung: implicit declaration of function `preempt_disable'' include/linux/smp.h:70: Warnung: implicit declaration of function `preempt_enable'' In file included from include/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/preempt.h:10, from include/linux/spinlock.h:50, from include/linux/capability.h:45, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/asm/mach-xen/asm/processor.h: Auf höchster Ebene: include/asm/mach-xen/asm/processor.h:90: error: `boot_cpu_data'' used prior to declaration include/asm/mach-xen/asm/processor.h:690: error: redefinition of `prefetch'' include/linux/prefetch.h:43: error: `prefetch'' previously defined here include/asm/mach-xen/asm/processor.h:704: error: redefinition of `prefetchw'' include/linux/prefetch.h:47: error: `prefetchw'' previously defined here make[1]: *** [arch/i386/kernel/asm-offsets.s] Fehler 1 make: *** [prepare0] Fehler 2 root@gisele:/usr/src/linux# _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Matthias Quade
2006-Jan-25 12:08 UTC
[Xen-devel] Can''t build SMP Kernel from linux-2.6-xen mergetree
Hi, i''ve done an hg pull and update and wanted to build a new dom0 kernel for my dual P3. I can build either a SMP kernel (X86_PC [=y] & SMP [=y]) or a Xen-Kernel (X86_XEN [=y] & SMP [=n]). If I enable both I''ll get the stuff down there... My .config is attached. Maybee I''m doing something completly wrong... So please give me an advice how to compile an smp-kernel for xen. Thanks and kind regards, Matthias Quade root@gisele:/usr/src/linux# make CHK include/linux/version.h SPLIT include/linux/autoconf.h -> include/config/* CC arch/i386/kernel/asm-offsets.s In file included from include/asm/mach-xen/asm/fixmap.h:27, from include/asm/mach-xen/asm/smp.h:16, from include/linux/smp.h:19, from include/asm/mach-xen/asm/system.h:7, from include/asm/mach-xen/asm/processor.h:18, from include/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/preempt.h:10, from include/linux/spinlock.h:50, from include/linux/capability.h:45, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/asm/acpi.h: In Funktion »__acpi_acquire_global_lock«: include/asm/acpi.h:67: Warnung: implicit declaration of function `cmpxchg'' In file included from include/linux/pm.h:27, from include/asm/apic.h:5, from include/asm/mach-xen/asm/smp.h:22, from include/linux/smp.h:19, from include/asm/mach-xen/asm/system.h:7, from include/asm/mach-xen/asm/processor.h:18, from include/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/preempt.h:10, from include/linux/spinlock.h:50, from include/linux/capability.h:45, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/linux/list.h: In Funktion »__list_add_rcu«: include/linux/list.h:94: Warnung: implicit declaration of function `smp_wmb'' In file included from include/asm/mach-xen/asm/smp.h:22, from include/linux/smp.h:19, from include/asm/mach-xen/asm/system.h:7, from include/asm/mach-xen/asm/processor.h:18, from include/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/preempt.h:10, from include/linux/spinlock.h:50, from include/linux/capability.h:45, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/asm/apic.h: In Funktion »lapic_disable«: include/asm/apic.h:26: error: `boot_cpu_data'' undeclared (first use in this function) include/asm/apic.h:26: error: (Each undeclared identifier is reported only once include/asm/apic.h:26: error: for each function it appears in.) include/asm/apic.h: In Funktion »apic_write_atomic«: include/asm/apic.h:59: Warnung: implicit declaration of function `xchg'' include/asm/apic.h: In Funktion »apic_wait_icr_idle«: include/asm/apic.h:70: Warnung: implicit declaration of function `cpu_relax'' In file included from include/asm/mach-xen/asm/system.h:7, from include/asm/mach-xen/asm/processor.h:18, from include/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/preempt.h:10, from include/linux/spinlock.h:50, from include/linux/capability.h:45, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/linux/smp.h: In Funktion »on_each_cpu«: include/linux/smp.h:67: Warnung: implicit declaration of function `preempt_disable'' include/linux/smp.h:70: Warnung: implicit declaration of function `preempt_enable'' In file included from include/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/preempt.h:10, from include/linux/spinlock.h:50, from include/linux/capability.h:45, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/asm/mach-xen/asm/processor.h: Auf höchster Ebene: include/asm/mach-xen/asm/processor.h:90: error: `boot_cpu_data'' used prior to declaration include/asm/mach-xen/asm/processor.h:690: error: redefinition of `prefetch'' include/linux/prefetch.h:43: error: `prefetch'' previously defined here include/asm/mach-xen/asm/processor.h:704: error: redefinition of `prefetchw'' include/linux/prefetch.h:47: error: `prefetchw'' previously defined here make[1]: *** [arch/i386/kernel/asm-offsets.s] Fehler 1 make: *** [prepare0] Fehler 2 root@gisele:/usr/src/linux# _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Vincent Hanquez
2006-Jan-25 13:57 UTC
Re: [Xen-devel] Can''t build SMP Kernel from linux-2.6-xen mergetree
On Wed, Jan 25, 2006 at 01:08:09PM +0100, Matthias Quade wrote:> i''ve done an hg pull and update and wanted to build a new dom0 kernel > for my dual P3. > I can build either a SMP kernel (X86_PC [=y] & SMP [=y]) or a Xen-Kernel > (X86_XEN [=y] & SMP [=n]). If I enable both I''ll get the stuff down > there... > > My .config is attached. > > Maybee I''m doing something completly wrong... So please give me an > advice how to compile an smp-kernel for xen.for the moment beeing you can just revert the changeset 16044 "Fix non-SMP build with spinlock debugging enabled" which is the wrong fix. The include mess is far from trivial to fixup. to revert with hg => hg export 16044 | patch -p1 -R Cheers, -- Vincent Hanquez _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Matthias Quade
2006-Jan-25 15:11 UTC
Re: [Xen-devel] Can''t build SMP Kernel from linux-2.6-xen mergetree
Am Mittwoch, den 25.01.2006, 14:57 +0100 schrieb Vincent Hanquez:> On Wed, Jan 25, 2006 at 01:08:09PM +0100, Matthias Quade wrote: > > i''ve done an hg pull and update and wanted to build a new dom0 kernel > > for my dual P3. > > I can build either a SMP kernel (X86_PC [=y] & SMP [=y]) or a Xen-Kernel > > (X86_XEN [=y] & SMP [=n]). If I enable both I''ll get the stuff down > > there... > > > > My .config is attached. > > > > Maybee I''m doing something completly wrong... So please give me an > > advice how to compile an smp-kernel for xen. > > for the moment beeing you can just revert the changeset 16044 > "Fix non-SMP build with spinlock debugging enabled" which is the wrong > fix. > > The include mess is far from trivial to fixup. > > to revert with hg => hg export 16044 | patch -p1 -R > > Cheers,Thanks, the kernel compiles completely. But now I have the same problem as some days before (I''ve posted it here: http://lists.xensource.com/archives/html/xen-users/2006-01/msg00906.html I don''t know if it''s a board-specific failure. I think many people are compiling every day for dual P3s, aren''t they? Thanks so far and kind regards, Matthias _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel