[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] test structure missing files



On Tue, 2011-10-25 at 21:09 +0100, Windows Live wrote:
> Noted the test phase was restricted in gentoo's ebuilds. It seems for
> good
> reason.
> 
> The test structure is broken since it's missing its own files.
> First
> ../../tools/libxc/xc_dom.h:17:31: fatal error: xen/libelf/libelf.h: No
> such
> file or directory
> I fixed that, the path is fixed with
> 
> sed -e 's:#include <xen/libelf.h>:#include <../../xen/
> include/xen/libelf.h>:' -i ./tools/libxc/xc_dom.h

The right solution to this problem would be to add the correct -I<path>
to the relevant gcc invocation (perhaps via CFLAGS or similar). Messing
with the actual included filename will only end up breaking something
else.

Unfortunately you don't describe what version of Xen you are using, what
patches you have applied. what commands you are running or what you are
actually trying to achieve. Based on the above and below descriptions of
the sorts of things you have tried I rather suspect that your attempts
to "fix" things have made things worse.

Please read http://wiki.xen.org/xenwiki/AskingXenDevelQuestions and
http://wiki.xen.org/xenwiki/ReportingBugs , then revert your local
changes and report the original error which caused you to go down this
path.

Ian.

> The next I couldn't fix. The header is simply missing.
> 
> xen/lowlevel/xl/xl.c:210:25: fatal error: _pyxl_types.h: No such file
> or
> directory
> 
> It's not there to be found!!! From there ofcourse there's no way of
> getting
> thru. Removing reference to the header ofcourse lead to another mini
> disaster.
> 
> -Ixen/lowlevel/xl -I/usr/include/python2.7 -c xen/lowlevel/xl/xl.c -o
> build/temp.linux-x86_64-2.7/xen/lowlevel/xl/xl.o -fno-strict-aliasing
> xen/lowlevel/xl/xl.c:210:1: warning: missing terminating " character
> xen/lowlevel/xl/xl.c:210:1: error: missing terminating " character
> xen/lowlevel/xl/xl.c: In function 'pyxl_list_domains':
> xen/lowlevel/xl/xl.c:394:9: error: 'Py_dominfo' undeclared (first use
> in this
> function)
> xen/lowlevel/xl/xl.c:394:9: note: each undeclared identifier is
> reported only
> once for each function it appears in
> xen/lowlevel/xl/xl.c:394:21: error: 'di' undeclared (first use in this
> function)
> xen/lowlevel/xl/xl.c: In function 'pyxl_pci_add':
> xen/lowlevel/xl/xl.c:497:5: error: 'Py_device_pci' undeclared (first
> use in
> this function)
> xen/lowlevel/xl/xl.c:497:20: error: 'pci' undeclared (first use in
> this
> function)
> xen/lowlevel/xl/xl.c:506:27: error: expected expression before ')'
> token
> xen/lowlevel/xl/xl.c: In function 'pyxl_pci_del':
> xen/lowlevel/xl/xl.c:517:5: error: 'Py_device_pci' undeclared (first
> use in
> this function)
> xen/lowlevel/xl/xl.c:517:20: error: 'pci' undeclared (first use in
> this
> function)
> xen/lowlevel/xl/xl.c:527:27: error: expected expression before ')'
> token
> xen/lowlevel/xl/xl.c: In function 'pyxl_pci_parse':
> xen/lowlevel/xl/xl.c:538:5: error: 'Py_device_pci' undeclared (first
> use in
> this function)
> xen/lowlevel/xl/xl.c:538:20: error: 'pci' undeclared (first use in
> this
> function)
> xen/lowlevel/xl/xl.c: In function 'pyxl_pci_list_assignable':
> xen/lowlevel/xl/xl.c:575:9: error: 'Py_device_pci' undeclared (first
> use in
> this function)
> xen/lowlevel/xl/xl.c:575:24: error: 'pd' undeclared (first use in this
> function)
> xen/lowlevel/xl/xl.c: In function 'pyxl_pci_list':
> xen/lowlevel/xl/xl.c:611:9: error: 'Py_device_pci' undeclared (first
> use in
> this function)
> xen/lowlevel/xl/xl.c:611:24: error: 'pd' undeclared (first use in this
> function)
> xen/lowlevel/xl/xl.c: At top level:
> xen/lowlevel/xl/xl.c:706:5: error: 'PKG' undeclared here (not in a
> function)
> xen/lowlevel/xl/xl.c:706:9: error: expected '}' before string constant
> xen/lowlevel/xl/xl.c: In function 'initxl':
> xen/lowlevel/xl/xl.c:761:43: error: expected ')' before string
> constant
> xen/lowlevel/xl/xl.c:761:43: error: too few arguments to function
> 'PyErr_NewException'
> /usr/include/python2.7/pyerrors.h:223:24: note: declared here
> error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1
> Build failed 0x100
> make[1]: *** [test] Error 1
> make[1]: Leaving directory
> `/var/tmp/portage/portage/app-emulation/xen-4.1.2/work/xen-4.1.2/tools/python'
> make: *** [test] Error 2
> 



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.