I''m getting following build error in the latest staging tree: build/temp.linux-x86_64-2.6/xen/lowlevel/xl/_pyxl_types.o: In function `py_domain_build_info_cpuid_set'': /home/akay/xen-unstable.hg/tools/python/xen/lowlevel/xl/_pyxl_types.c:1091: undefined reference to `attrib__libxl_cpuid_policy_list_set'' build/temp.linux-x86_64-2.6/xen/lowlevel/xl/_pyxl_types.o: In function `py_domain_build_info_cpuid_get'': /home/akay/xen-unstable.hg/tools/python/xen/lowlevel/xl/_pyxl_types.c:1086: undefined reference to `attrib__libxl_cpuid_policy_list_get'' /usr/bin/ld: build/lib.linux-x86_64-2.6/xen/lowlevel/xl.so: hidden symbol `attrib__libxl_cpuid_policy_list_get'' isn''t defined /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: ld returned 1 exit status error: command ''gcc'' failed with exit status 1 make[3]: *** [buildpy] Error 1 make[3]: Leaving directory `/home/akay/xen-unstable.hg/tools/python'' make[2]: *** [subdir-install-python] Error 2 make[2]: Leaving directory `/home/akay/xen-unstable.hg/tools'' make[1]: *** [subdirs-install] Error 2 make[1]: Leaving directory `/home/akay/xen-unstable.hg/tools'' make: *** [install-tools] Error 2 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Fri, 2010-09-17 at 03:00 +0100, Kay, Allen M wrote:> I’m getting following build error in the latest staging tree: > > > > build/temp.linux-x86_64-2.6/xen/lowlevel/xl/_pyxl_types.o: In function > `py_domain_build_info_cpuid_set'': > > /home/akay/xen-unstable.hg/tools/python/xen/lowlevel/xl/_pyxl_types.c:1091: undefined reference to `attrib__libxl_cpuid_policy_list_set''Looks like 22167:330c4d9010da and 22170:4e47a7db9711 are individually OK but the combination is broken. This fixes it: # HG changeset patch # User Ian Campbell <ian.campbell@citrix.com> # Date 1284727197 -3600 # Node ID f6e50c9ca3838d5d470202a2f7adc15234166c03 # Parent ec3548be868a0f8987b6c997a71ba53a1da3c2c7 python: xl: stub out libxl_cpuid_policy_list accessors Signed-off-by: Ian Campbell <ian.campbell@citrix.com> diff -r ec3548be868a -r f6e50c9ca383 tools/python/xen/lowlevel/xl/xl.c --- a/tools/python/xen/lowlevel/xl/xl.c Fri Sep 17 13:10:24 2010 +0100 +++ b/tools/python/xen/lowlevel/xl/xl.c Fri Sep 17 13:39:57 2010 +0100 @@ -203,6 +203,11 @@ static PyObject *fixed_bytearray_get(con #include "_pyxl_types.h" +int attrib__libxl_cpuid_policy_list_set(PyObject *v, libxl_cpuid_policy_list *pptr) +{ + return -1; +} + int attrib__libxl_cpumap_set(PyObject *v, libxl_cpumap *pptr) { return -1; @@ -246,6 +251,11 @@ int attrib__struct_in_addr_set(PyObject int attrib__struct_in_addr_set(PyObject *v, struct in_addr *pptr) { return -1; +} + +PyObject *attrib__libxl_cpuid_policy_list_get(libxl_cpuid_policy_list *pptr) +{ + return NULL; } PyObject *attrib__libxl_cpumap_get(libxl_cpumap *pptr) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Campbell writes ("Re: [Xen-devel] build break"):> Looks like 22167:330c4d9010da and 22170:4e47a7db9711 are individually OK > but the combination is broken. This fixes it:Sorry about that. I thought I had build-tested it, but perhaps the failure was somehow masked by the existing xen-unstable build failure due to changeset: 22161:ff011e0cb17c user: Keir Fraser <keir.fraser@citrix.com> date: Wed Sep 15 14:03:26 2010 +0100 files: xen/arch/x86/hvm/emulate.c xen/arch/x86/hvm/io.c xen/arch/x86/hvm/svm/svm.c xen/arch/x86/hvm/vmx/vmx.c xen/include/asm-x86/hvm/emulate.h xen/include/asm-x86/hvm/io.h xen/include/asm-x86/hvm/vcpu.h description: x86 hvm: Clean up PIO fast path emulation Thanks, Ian C, for your patch; I have build-tested and applied it. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel