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-devel

Re: [Xen-devel] test structure missing files

To: Windows Live <johneed@xxxxxxxxxxx>
Subject: Re: [Xen-devel] test structure missing files
From: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Date: Tue, 25 Oct 2011 21:38:06 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 25 Oct 2011 13:38:37 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <COL119-W5023765948EB6ED67658CCA8EC0@xxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Citrix Systems, Inc.
References: <COL119-W5023765948EB6ED67658CCA8EC0@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>