From mboxrd@z Thu Jan 1 00:00:00 1970 From: jerry Subject: dpdk 1.7.0 comiple errors on suse11 sp3 xen hypervisor Date: Sun, 21 Sep 2014 13:10:20 +0800 Message-ID: <541E5DBC.60907@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Cc: "'Liuyongqiang \(A\)'" To: "dev-VfR2kkLFssw@public.gmane.org" Return-path: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hi all, I try to run vhost-xen examples on suse 11 sp3 xen hypervisor and got som= e compile errors. The two config have been set following dpdk pro-guide: CONFIG_RTE_LIBRTE_XEN_DOM0=3Dy CONFIG RTE_LIBRTE_PMD_XENVIRT=3Dn Any suggestions ? Pls see the detail error messages: =3D=3D Build lib/librte_eal/linuxapp/xen_dom0 make -C ../../../linux-3.0.76-0.11 O=3D/usr/src/linux-3.0.76-0.11-obj/x86= _64/xen/. Updating /mnt/sdb/lilijun/dpdk-1.7.0/x86_64-native-linuxapp-gcc/build/l= ib/librte_eal/linuxapp/xen_dom0/Makefile.xen LD /mnt/sdb/lilijun/dpdk-1.7.0/x86_64-native-linuxapp-gcc/build/li= b/librte_eal/linuxapp/xen_dom0/built-in.o CC [M] /mnt/sdb/lilijun/dpdk-1.7.0/x86_64-native-linuxapp-gcc/build/li= b/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.o In file included from /usr/src/linux-3.0.76-0.11/include/xen/page.h:4, from /mnt/sdb/lilijun/dpdk-1.7.0/x86_64-native-linuxapp-= gcc/build/lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c:70: /usr/src/linux-3.0.76-0.11/arch/x86/include/asm/xen/page.h:32:1: error: "= FOREIGN_FRAME_BIT" redefined In file included from /usr/src/linux-3.0.76-0.11/arch/x86/include/mach-xe= n/asm/pgtable_types.h:206, from /usr/src/linux-3.0.76-0.11/arch/x86/include/mach-xe= n/asm/hypervisor.h:44, from /usr/src/linux-3.0.76-0.11/arch/x86/include/mach-xe= n/asm/system.h:9, from /usr/src/linux-3.0.76-0.11/arch/x86/include/mach-xe= n/asm/processor.h:17, from /usr/src/linux-3.0.76-0.11/arch/x86/include/asm/thr= ead_info.h:22, from /usr/src/linux-3.0.76-0.11/include/linux/thread_inf= o.h:53, from /usr/src/linux-3.0.76-0.11/include/linux/preempt.h:= 9, from /usr/src/linux-3.0.76-0.11/include/linux/spinlock.h= :50, from /usr/src/linux-3.0.76-0.11/include/linux/seqlock.h:= 29, from /usr/src/linux-3.0.76-0.11/include/linux/time.h:8, from /usr/src/linux-3.0.76-0.11/include/linux/stat.h:60, from /usr/src/linux-3.0.76-0.11/include/linux/module.h:1= 0, from /mnt/sdb/lilijun/dpdk-1.7.0/x86_64-native-linuxapp-= gcc/build/lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c:60: /usr/src/linux-3.0.76-0.11/arch/x86/include/mach-xen/asm/maddr.h:11:1: er= ror: this is the location of the previous definition In file included from /usr/src/linux-3.0.76-0.11/include/xen/page.h:4, from /mnt/sdb/lilijun/dpdk-1.7.0/x86_64-native-linuxapp-= gcc/build/lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c:70: /usr/src/linux-3.0.76-0.11/arch/x86/include/asm/xen/page.h:41: error: con= flicting types for =91machine_to_phys_mapping=92 /usr/src/linux-3.0.76-0.11/arch/x86/include/mach-xen/asm/maddr.h:29: erro= r: previous declaration of =91machine_to_phys_mapping=92 was here /usr/src/linux-3.0.76-0.11/arch/x86/include/asm/xen/page.h:45: error: con= flicting types for =91set_phys_to_machine=92 /usr/src/linux-3.0.76-0.11/arch/x86/include/mach-xen/asm/maddr.h:106: err= or: previous definition of =91set_phys_to_machine=92 was here /usr/src/linux-3.0.76-0.11/arch/x86/include/asm/xen/page.h:59: error: red= efinition of =91pfn_to_mfn=92 /usr/src/linux-3.0.76-0.11/arch/x86/include/mach-xen/asm/maddr.h:33: erro= r: previous definition of =91pfn_to_mfn=92 was here /usr/src/linux-3.0.76-0.11/arch/x86/include/asm/xen/page.h:74: error: red= efinition of =91phys_to_machine_mapping_valid=92 /usr/src/linux-3.0.76-0.11/arch/x86/include/mach-xen/asm/maddr.h:42: erro= r: previous definition of =91phys_to_machine_mapping_valid=92 was here /usr/src/linux-3.0.76-0.11/arch/x86/include/asm/xen/page.h:82: error: red= efinition of =91mfn_to_pfn=92 /usr/src/linux-3.0.76-0.11/arch/x86/include/mach-xen/asm/maddr.h:51: erro= r: previous definition of =91mfn_to_pfn=92 was here /usr/src/linux-3.0.76-0.11/arch/x86/include/asm/xen/page.h:127: error: co= nflicting types for =91phys_to_machine=92 /usr/src/linux-3.0.76-0.11/arch/x86/include/mach-xen/asm/maddr.h:117: err= or: previous definition of =91phys_to_machine=92 was here /usr/src/linux-3.0.76-0.11/arch/x86/include/asm/xen/page.h:133: error: co= nflicting types for =91machine_to_phys=92 /usr/src/linux-3.0.76-0.11/arch/x86/include/mach-xen/asm/maddr.h:124: err= or: previous definition of =91machine_to_phys=92 was here /usr/src/linux-3.0.76-0.11/arch/x86/include/asm/xen/page.h:159: error: co= nflicting types for =91mfn_to_local_pfn=92 /usr/src/linux-3.0.76-0.11/arch/x86/include/mach-xen/asm/maddr.h:96: erro= r: previous definition of =91mfn_to_local_pfn=92 was here B.R. Jerry