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

Re: Error while building Xen


  • To: Deepthi M. <Deepthi.M@xxxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Thu, 11 Feb 2021 12:06:07 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p+l3S9Ws4PulgASZxo7nzwmsqb6i1L0nL2PbvaBYkoc=; b=OFX1cXu515EO5fjqpzuS+XsvaWNT2b7GqTETw0Fy2MZSD8cRQ1y0BLQxk5lV8JP4ZigwzJGVN6um2Ok0a5W65oC/RdQvl/W9IbZyAxV3xOtVAlMd0MhLYeuNfwIzLp9JM/Zn2jaqc4vN7cOppQOSxQE4H2ESdjMOTiSCs3UBuCmIoo1x4+EMQ6P8VOfGt8r8lEglJ3jQRWFSTNzvOCo+PhqbgLZZ1iII5lJ/o8P4qR9W9LMXZE01T8HxF/sWk//a6A2kehEbXcVChh6xAgUdE1F4rGthTaE8F0l1zjO2sf3uOWqGowsO/sd4U5e5kdkf+LJ0q7+rP8dlG6NOpIcWLQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bJmjnE1/WFNvdcfvJPg7x6TTjqoaVtc7mSJ64uRnSbkkN74HVuAG2zukVjlrqDM2fGjPPIALf3d4ox2EkKwyYZgazo2zB9OYCLimIj8hdnWeuXjCJKnsRpRP2HIkbV//UtkhC2ajwKSh1+3U5A678kRynY3uAM+Vi6DY1rBV0IAtGzeTe9MuhGNL17PqJNqcG0b+k/LK2aDo5Nt9LJfT8DtFYqX0QOD5ybRUzv2PggyTyIfycM3FYfmR/fCSRlJIMFKM1aiuD73M1yBCY2mwmdf68RTTLXhSuiTAOKJerjJqc9NTImeaNjMk884nbOLCHn0UFDKjRtlo/TZuZ2ImSg==
  • Authentication-results-original: Ltts.com; dkim=none (message not signed) header.d=none;Ltts.com; dmarc=none action=none header.from=arm.com;
  • Cc: "xen-users@xxxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxxx>, Pelluru VamsiKrishna <Pelluru.VamsiKrishna@xxxxxxxx>
  • Delivery-date: Thu, 11 Feb 2021 12:06:57 +0000
  • List-id: Xen user discussion <xen-users.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: Ltts.com; dkim=none (message not signed) header.d=none;Ltts.com; dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHW+4uAsZ6jkEYxj0+EtD1UXa6EjapS2G+AgAAAzIeAAAw7AA==
  • Thread-topic: Error while building Xen

Hi Deepthi,

> On 11 Feb 2021, at 11:40, Deepthi M. <Deepthi.M@xxxxxxxx> wrote:
> 
> Hi Bertrand,
> 
> Thank you for the reply.
> 
> It seems that you host python is used instead of the one compiled by Yocto.
> 
> With python2.7 also we are facing the same issue
> 
> - which version of Yocto you are using
>     poky-2.1.2

This is a very old release (4 to 5 years old) and it is not supported anymore.

> 
> - what layers you included
>   meta-virtualization
>  Reference link: 
> https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/Salvator-X

Since this was written it could really be that Renesas updated their support so 
you might try to check an newer version of the gen3 support:
https://elinux.org/R-Car/Boards/Yocto-Gen3/v4.7.0

and use the corresponding version of meta-virtualization.

> 
> - what parameters did you set in your local.conf
>    Please find the attached local.conf for your reference
>   
> - what image you are building ?
>   core-image-weston
> 
> when executing pygrub we are getting the below error:
> Traceback (most recent call last):
>    File "/usr/lib/xen/bin/pygrub", line 20, in <module>
>      import xen.lowlevel.xc
> ImportError: No module named xen.lowlevel.xc

There are some patches for pygrub on meta-virtualization master that you might 
want to look at:
https://git.yoctoproject.org/cgit/cgit.cgi/meta-virtualization/tree/recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen-4.14.patch

Cheers
Bertrand

> 
> 
> Thank you,
> Deepthi
> From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
> Sent: Thursday, February 11, 2021 4:49 PM
> To: Deepthi M. <Deepthi.M@xxxxxxxx>
> Cc: xen-users@xxxxxxxxxxxxxxxxxxxx <xen-users@xxxxxxxxxxxxxxxxxxxx>; Pelluru 
> VamsiKrishna <Pelluru.VamsiKrishna@xxxxxxxx>
> Subject: Re: Error while building Xen
>  
> Hi Deepthi,
> 
> > On 5 Feb 2021, at 06:56, Deepthi M. <Deepthi.M@xxxxxxxx> wrote:
> > 
> > Hi all,
> > 
> > I am trying to build Xen in Yocto environment for Renesas R-car salvator-xs 
> > board I am getting the following error
> > 
> > | cc1: error: include location "/usr/local/include/python3.9" is unsafe for 
> > cross-compilation [-Werror=poison-system-directories] | cc1: all warnings 
> > being treated as errors | error: command 
> > '/home/user/xenrcar/build/build/tmp/sysroots/x86_64-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc'
> >  failed with exit code 1 | Makefile:23: recipe for target 'install' failed 
> > | make[4]: *** [install] Error 1 | make[4]: Leaving directory 
> > '/home/user/xenrcar/build/build/tmp/work/aarch64-poky-linux/xen/unstable+gitAUTOINC+5e7aa90440-r0/git/tools/python
> > 
> 
> It seems that you host python is used instead of the one compiled by Yocto.
> 
> Could you tell me:
> - which version of Yocto you are using
> - what layers you included
> - what parameters did you set in your local.conf
> - what image you are building ?
> 
> Cheers
> Bertrand
> 
> > Please let me know how to fix the issue.
> > Thank you,
> > Deepthi
> > 
> > L&T Technology Services Ltd
> > https://ind01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ltts.com%2F&amp;data=04%7C01%7CDeepthi.M%40ltts.com%7C5b87349f4a9e45bfbd3608d8ce7efd6a%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637486392111439122%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=H4ODxnAnH5j4UY7gxoYVsggbwvLuwm1KrMAeLzdRd2I%3D&amp;reserved=0
> > L&T Technology Services Limited (LTTS) is committed to safeguard your data 
> > privacy. For more information to view our commitment towards data privacy 
> > under GDPR, please visit the privacy policy on our website 
> > https://ind01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ltts.com%2F&amp;data=04%7C01%7CDeepthi.M%40ltts.com%7C5b87349f4a9e45bfbd3608d8ce7efd6a%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637486392111439122%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=H4ODxnAnH5j4UY7gxoYVsggbwvLuwm1KrMAeLzdRd2I%3D&amp;reserved=0.
> >  This Email may contain confidential or privileged information for the 
> > intended recipient (s). If you are not the intended recipient, please do 
> > not use or disseminate the information, notify the sender and delete it 
> > from your system.
> 
> L&T Technology Services Ltd
> www.LTTS.com
> L&T Technology Services Limited (LTTS) is committed to safeguard your data 
> privacy. For more information to view our commitment towards data privacy 
> under GDPR, please visit the privacy policy on our website www.Ltts.com. This 
> Email may contain confidential or privileged information for the intended 
> recipient (s). If you are not the intended recipient, please do not use or 
> disseminate the information, notify the sender and delete it from your system.
> <local.conf>




 


Rackspace

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