WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] ubuntu 11.04 compile xen domain0 arch/x86/kernel/cpu/amd.c:

To: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] ubuntu 11.04 compile xen domain0 arch/x86/kernel/cpu/amd.c: In function ‘init_amd’ error
From: 朱允铭 <freelich@xxxxxxxxx>
Date: Wed, 27 Jul 2011 18:34:00 +0800
Delivery-date: Wed, 27 Jul 2011 03:35:11 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=s5eWq5m10YP04eHbkXgIOiIHvNDaDRoR62fDXvTkP4M=; b=Foiew4gQZ7M4oQrsrSEP3WBHJr4EdvEZk4FmYr2AY93Wz9WuWbhereBsKsWiLke2Rc T6z7EDhraPkIzqd4E1dKHyJzi2YCfOwJVUI4n5+UGoWYhWksKAYvf1r/o2apFHG8E18i m0ayXikUnPi04lVmUL7x9HBThQ9H6AQD4crws=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
$ 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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] ubuntu 11.04 compile xen domain0 arch/x86/kernel/cpu/amd.c: In function ‘init_amd’ error, 朱允铭 <=