Olivier Boukili
2007-Dec-27 00:51 UTC
[Xen-users] Problem compiling with vSMP cpu architecture support
hello, I''ve been having trouble enabling the scaleMP vSMP architecture support (my cpu is an intel core 2 duo "conroe" e6750) with a xen-patched linux kernel. Everytime I compile the kernel, gcc complains about smp_processor_id() being undeclared (and thus, ultimately fail when linking). Enabling PC-compatible subarch type solves it. here''s the fail log:>In file included from include/linux/irqflags.h:47, > from include/asm/system.h:266, > from include/linux/spinlock.h:58, > from include/linux/module.h:10, > from init/version.c:11: >include/asm/mach-xen/asm/irqflags.h: In function ''raw_local_irq_disable'': >include/asm/mach-xen/asm/irqflags.h:43: warning: implicit declarationof function ''smp_processor_id''> LD init/built-in.o > LD .tmp_vmlinux1 >arch/x86_64/kernel/built-in.o: In function `alternative_instructions'': >(.init.text+0x19e0): undefined reference to `smp_processor_id'' >arch/x86_64/kernel/built-in.o: In function `alternative_instructions'': >(.init.text+0x19f9): undefined reference to `smp_processor_id'' >arch/x86_64/kernel/built-in.o: In function `check_nmi_watchdog'': >(.init.text+0x2a25): undefined reference to `smp_processor_id'' >arch/x86_64/kernel/built-in.o: In function `check_nmi_watchdog'': >(.init.text+0x2a3f): undefined reference to `smp_processor_id'' >arch/x86_64/kernel/built-in.o: In function `nmi_cpu_busy'': >nmi.c:(.init.text+0x2bc3): undefined reference to `smp_processor_id'' >arch/x86_64/kernel/built-in.o:nmi.c:(.init.text+0x2bdd): more undefinedreferences to >`smp_processor_id'' follow>make: *** [.tmp_vmlinux1] Error 1 >zsh: exit 2 makeI tried with vanilla kernels 2.6.20 and 2.6.22-1, xen-patched (as well as with the gentoo xen-sources 2.6.20-xen-r6 ebuild) but to no avail. Googling a little led me to this article: http://lists.xensource.com/archives/html/xen-ia64-devel/2005-12/msg00164.html but I''m afraid I don"t have the brains to fully understand it. Any help/guidelines would be appreciated, thanks, -Oliver _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
rargh
2007-Dec-27 01:07 UTC
[Xen-users] Problem compiling with vSMP cpu architecture support
(hoping my first email wasn''t successfully sent, disregard it if it was) hello, I''ve been having trouble enabling the scaleMP vSMP architecture support (my cpu is an intel core 2 duo "conroe" e6750) with a xen-patched linux kernel. Everytime I compile the kernel, gcc complains about smp_processor_id() being undeclared (and thus, ultimately fail when linking). Enabling PC-compatible subarch type solves it. here''s the fail log: In file included from include/linux/irqflags.h:47, from include/asm/system.h:266, from include/linux/spinlock.h:58, from include/linux/module.h:10, from init/version.c:11: include/asm/mach-xen/asm/irqflags.h: In function ''raw_local_irq_disable'': include/asm/mach-xen/asm/irqflags.h:43: warning: implicit declaration of function ''smp_processor_id'' LD init/built-in.o LD .tmp_vmlinux1 arch/x86_64/kernel/built-in.o: In function `alternative_instructions'': (.init.text+0x19e0): undefined reference to `smp_processor_id'' arch/x86_64/kernel/built-in.o: In function `alternative_instructions'': (.init.text+0x19f9): undefined reference to `smp_processor_id'' arch/x86_64/kernel/built-in.o: In function `check_nmi_watchdog'': (.init.text+0x2a25): undefined reference to `smp_processor_id'' arch/x86_64/kernel/built-in.o: In function `check_nmi_watchdog'': (.init.text+0x2a3f): undefined reference to `smp_processor_id'' arch/x86_64/kernel/built-in.o: In function `nmi_cpu_busy'': nmi.c:(.init.text+0x2bc3): undefined reference to `smp_processor_id'' arch/x86_64/kernel/built-in.o:nmi.c:(.init.text+0x2bdd): more undefined references to `smp_processor_id'' follow make: *** [.tmp_vmlinux1] Error 1 zsh: exit 2 make I tried with vanilla kernels 2.6.20 and 2.6.22-1, xen-patched (as well as with the gentoo xen-sources 2.6.20-xen-r6 ebuild) but to no avail. Any help/guidelines would be appreciated, thanks, -Oliver _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mark Williamson
2008-Jan-04 17:42 UTC
Re: [Xen-users] Problem compiling with vSMP cpu architecture support
I''m not familiar with ScaleMP / vSMP but it seems like it''s a different machine type, with a different architecture for large scale SMP systems, right? This sounds like infrastructure that Xen itself would need to support, since Xen is responsible for many of the lowlevel details of the underlying system. Simply compiling the infrastructure into the guest would not suffice to make Xen work right on that architecture. Furthermore, it looks like the ScaleMP architecture patches are incompatible with the Xen patches, which is causing your compile error. However, given there are likely to be deeper problems with this approach I''m not sure that getting the compilation to work would solve your problem... Out of interest, does Xen itself actually boot on this system? Cheers, Mark> hello, > > I''ve been having trouble enabling the scaleMP vSMP architecture support > (my cpu is an intel core 2 duo "conroe" e6750) with a xen-patched linux > kernel. > Everytime I compile the kernel, gcc complains about smp_processor_id() > being undeclared (and thus, ultimately fail when linking). > Enabling PC-compatible subarch type solves it. > here''s the fail log: > > > In file included from include/linux/irqflags.h:47, > from include/asm/system.h:266, > from include/linux/spinlock.h:58, > from include/linux/module.h:10, > from init/version.c:11: > include/asm/mach-xen/asm/irqflags.h: In function ''raw_local_irq_disable'': > include/asm/mach-xen/asm/irqflags.h:43: warning: implicit declaration of > function ''smp_processor_id'' > LD init/built-in.o > LD .tmp_vmlinux1 > arch/x86_64/kernel/built-in.o: In function `alternative_instructions'': > (.init.text+0x19e0): undefined reference to `smp_processor_id'' > arch/x86_64/kernel/built-in.o: In function `alternative_instructions'': > (.init.text+0x19f9): undefined reference to `smp_processor_id'' > arch/x86_64/kernel/built-in.o: In function `check_nmi_watchdog'': > (.init.text+0x2a25): undefined reference to `smp_processor_id'' > arch/x86_64/kernel/built-in.o: In function `check_nmi_watchdog'': > (.init.text+0x2a3f): undefined reference to `smp_processor_id'' > arch/x86_64/kernel/built-in.o: In function `nmi_cpu_busy'': > nmi.c:(.init.text+0x2bc3): undefined reference to `smp_processor_id'' > arch/x86_64/kernel/built-in.o:nmi.c:(.init.text+0x2bdd): more undefined > references to `smp_processor_id'' follow > make: *** [.tmp_vmlinux1] Error 1 > zsh: exit 2 make > > > > I tried with vanilla kernels 2.6.20 and 2.6.22-1, xen-patched (as well > as with the gentoo xen-sources 2.6.20-xen-r6 ebuild) but to no avail. > > Any help/guidelines would be appreciated, thanks, > > -Oliver > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
rargh
2008-Jan-14 20:06 UTC
Re: [Xen-users] Problem compiling with vSMP cpu architecture support
> I''m not familiar with ScaleMP / vSMP but it seems like it''s a different > machine type, with a different architecture for large scale SMP systems, > right?About right, except it also fully supports amd64/em64t.> This sounds like infrastructure that Xen itself would need to support, since > Xen is responsible for many of the lowlevel details of the underlying system. > Simply compiling the infrastructure into the guest would not suffice to make > Xen work right on that architecture.Well, guess I''m lucky I still haven''t ordered all those machines...I''ll just have to wait then.> Furthermore, it looks like the ScaleMP architecture patches are incompatible > with the Xen patches, which is causing your compile error. However, given > there are likely to be deeper problems with this approach I''m not sure that > getting the compilation to work would solve your problem... > > Out of interest, does Xen itself actually boot on this system?Since vSMP fully supports, in my case, em64t, and since I''ve compiled the xen kernel for a generic amd64 architecture, yes it does -for a single machine cluster, infortunately not what I intended in the first place-. Thanks for you answers, -Oliver. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users