[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-users] ubuntu 11.04 compile xen domain0 arch/x86/kernel/cpu/amd.c: In function ‘init_amd’ error
$ cd $ wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.38.tar.gz $ tar -xzf linux-2.6.38.tar.gz $ wget http://gentoo-xen-kernel.googlecode.com/files/xen-patches-2.6.38-2.tar.bz2 $ mkdir xenpatch-2.6.38.2 $ cd xenpatch-2.6.38-2 $ tar -xjf ../xen-patches-2.6.38-2.tar.bz2 $ cd .. $ cd linux-2.6.38 $ for i in `ls ../xenpatch-2.6.38.2/`; do patch -p1 < ../xenpatch-2.6.38.2/"$i"; done $ cp /boot/config-2.6.31-14-server .config $ make menuconfig Processor type and features ---> [*] Enable Xen compatible kernel Networking support ---> Networking options ---> <*> 802.1d Ethernet Bridging Device Drivers ---> XEN ---> [*] Privileged Guest (domain 0) Backend driver support Block-device backend driver Block-device tap backend driver Block-device tap backend driver 2 Network-device backend driver PCI-device backend driver SCSI backend driver USB backend driver <*> Block-device frontend driver <*> Network-device frontend driver SCSI frontend driver USB frontend driver <*> Framebuffer-device frontend driver <*> Keyboard-device frontend driver [*] Disable serial port drivers <*> Export Xen attributes in sysfs Xen version compatibility (3.3.0 and later) ---> 3.3.0 and later $ sudo make CHK include/linux/version.h CHK include/generated/utsrelease.h CALL scripts/checksyscalls.sh CHK include/generated/compile.h CC arch/x86/kernel/cpu/amd.o arch/x86/kernel/cpu/amd.c: In function ‘init_amd’: arch/x86/kernel/cpu/amd.c:643:18: error: ‘amd_size_cache’ undeclared (first use in this function) arch/x86/kernel/cpu/amd.c:643:18: note: each undeclared identifier is reported only once for each function it appears in arch/x86/kernel/cpu/amd.c:627:1: warning: ISO C90 forbids mixed declarations and code arch/x86/kernel/cpu/amd.c:670:1: warning: ISO C90 forbids mixed declarations and code arch/x86/kernel/cpu/amd.c:673:1: error: extern declaration of ‘amd_erratum_400’ follows declaration with no linkage arch/x86/kernel/cpu/amd.c:670:11: note: previous definition of ‘amd_erratum_400’ was here arch/x86/kernel/cpu/amd.c:677:1: error: extern declaration of ‘amd_erratum_383’ follows declaration with no linkage arch/x86/kernel/cpu/amd.c:675:11: note: previous definition of ‘amd_erratum_383’ was here arch/x86/kernel/cpu/amd.c:721:1: error: non-static declaration of ‘cpu_has_amd_erratum’ follows static declaration arch/x86/kernel/cpu/amd.c:679:6: note: previous definition of ‘cpu_has_amd_erratum’ was here arch/x86/kernel/cpu/amd.c:721:1: error: expected declaration or statement at end of input arch/x86/kernel/cpu/amd.c: At top level: arch/x86/kernel/cpu/amd.c:446:23: warning: ‘init_amd’ defined but not used make[3]: *** [arch/x86/kernel/cpu/amd.o] Error 1 make[2]: *** [arch/x86/kernel/cpu] Error 2 make[1]: *** [arch/x86/kernel] Error 2 make: *** [arch/x86] Error 2 help me please _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |