Mailing List Archive

Unable to find Python development headers
Hi,

I am trying to cross compile xen-tools for arm32 as mentioned here http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling but i am getting the following error

...
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for python-config... /usr/bin/python-config
checking Python.h usability... no
checking Python.h presence... no
checking for Python.h... no
configure: error: Unable to find Python development headers
...



Regards

Shubham Khandelwal
Re: Unable to find Python development headers [ In reply to ]
I am not an expert in cross-compiling, in fact Ian (still on vacation)
is the one who set it up. I still compile tools natively.

However I can tell you that you don't actually need python, in reality
in order to get the basic system working you only need to compile:

tools/libxc
tools/xenstore
tools/console
tools/libxl


On Thu, 4 Apr 2013, Khandelwal, Shubham wrote:
> Hi,
>
>  
>
> I am trying to cross compile xen-tools for arm32 as mentioned here
> http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling but i am getting the following error
>
>  
>
> …
>
> checking for sys/types.h... yes
>
> checking for sys/stat.h... yes
>
> checking for stdlib.h... yes
>
> checking for string.h... yes
>
> checking for memory.h... yes
>
> checking for strings.h... yes
>
> checking for inttypes.h... yes
>
> checking for stdint.h... yes
>
> checking for unistd.h... yes
>
> checking for python-config... /usr/bin/python-config
>
> checking Python.h usability... no
>
> checking Python.h presence... no
>
> checking for Python.h... no
>
> configure: error: Unable to find Python development headers
>
> ...
>
>  
>
>  
>
>  
>
> Regards
>
>  
>
> Shubham Khandelwal
>
>  
>
>
>
Re: Unable to find Python development headers [ In reply to ]
On 04/04/2013 11:16 AM, Khandelwal, Shubham wrote:

> Hi,

Hello,

> I am trying to cross compile xen-tools for arm32 as mentioned here
> http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling
> but i am getting the following error
>
>
>
> …
>
> checking for sys/types.h... yes
>
> checking for sys/stat.h... yes
>
> checking for stdlib.h... yes
>
> checking for string.h... yes
>
> checking for memory.h... yes
>
> checking for strings.h... yes
>
> checking for inttypes.h... yes
>
> checking for stdint.h... yes
>
> checking for unistd.h... yes
>
> checking for python-config... /usr/bin/python-config
>
> checking Python.h usability... no
>
> checking Python.h presence... no
>
> checking for Python.h... no
>
> configure: error: Unable to find Python development headers
>
> ...


You need to install libpython2.7-dev:armhf.

Thanks for the reporting, I will add it on the wiki page.

Cheers,

Julien

_______________________________________________
Xen-arm mailing list
Xen-arm@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-arm
Re: Unable to find Python development headers [ In reply to ]
Hi,

Thanks a lot Julien, all the issues are resolved and I am able to cross-compile the tools now.

Regards

Shubham Khandelwal


-----Original Message-----
From: Julien Grall [mailto:julien.grall@citrix.com]
Sent: Thursday, April 04, 2013 8:39 PM
To: Khandelwal, Shubham
Cc: 'xen-arm@lists.xen.org'; Datta, Souvik; xen-devel
Subject: Re: [XenARM] Unable to find Python development headers

On 04/04/2013 11:16 AM, Khandelwal, Shubham wrote:

> Hi,

Hello,

> I am trying to cross compile xen-tools for arm32 as mentioned here
> http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling
> but i am getting the following error
>
>
>
> ...
>
> checking for sys/types.h... yes
>
> checking for sys/stat.h... yes
>
> checking for stdlib.h... yes
>
> checking for string.h... yes
>
> checking for memory.h... yes
>
> checking for strings.h... yes
>
> checking for inttypes.h... yes
>
> checking for stdint.h... yes
>
> checking for unistd.h... yes
>
> checking for python-config... /usr/bin/python-config
>
> checking Python.h usability... no
>
> checking Python.h presence... no
>
> checking for Python.h... no
>
> configure: error: Unable to find Python development headers
>
> ...


You need to install libpython2.7-dev:armhf.

Thanks for the reporting, I will add it on the wiki page.

Cheers,

Julien

_______________________________________________
Xen-arm mailing list
Xen-arm@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-arm
Re: [Xen-devel] Unable to find Python development headers [ In reply to ]
On Thu, 2013-04-04 at 16:09 +0100, Julien Grall wrote:
> You need to install libpython2.7-dev:armhf.
>
> Thanks for the reporting, I will add it on the wiki page.

Thanks. Longer term we should look at making the python stuff a build
time option and perhaps disable it by default for ARM.

(perhaps this can happen as part of deprecating xend further)



_______________________________________________
Xen-arm mailing list
Xen-arm@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-arm
Re: [Xen-devel] Unable to find Python development headers [ In reply to ]
On Wed, 2013-04-10 at 12:27 +0100, Ian Campbell wrote:
> On Thu, 2013-04-04 at 16:09 +0100, Julien Grall wrote:
> > You need to install libpython2.7-dev:armhf.
> >
> > Thanks for the reporting, I will add it on the wiki page.
>
> Thanks. Longer term we should look at making the python stuff a build
> time option and perhaps disable it by default for ARM.

In the meantime I've just pushed this patch of mine which I posted
before I went away but which was in the tree referenced by the wiki
page:

commit 2a6068822dea6429201f6f44e229663ba7858c27
Author: Ian Campbell <ian.campbell@citrix.com>
Date: Fri Mar 15 13:15:45 2013 +0000

tools: only check for Python devel tools if not cross-compiling.

tools/python and tools/pygrub are already skipped in tools/Makefile when
cross-compiling, so no point in checking for the prerequisites either.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>

I think this means the requirement for libpython2.7-dev:armhf could in
principal be dropped but it's probably harmless. (I've just noticed the
64-bit section says armhf everywhere it should say arm64...)

Ian.


_______________________________________________
Xen-arm mailing list
Xen-arm@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-arm