Mailing List Archive

Error while building Xen
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

Please let me know how to fix the issue.
Thank you,
Deepthi


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.
Re: Error while building Xen [ In reply to ]
Hi Deepthi,

> On 5 Feb 2021, at 06:56, Deepthi M. <Deepthi.M@Ltts.com> 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
> 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.
Re: Error while building Xen [ In reply to ]
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

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

- 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


Thank you,
Deepthi
________________________________
From: Bertrand Marquis <Bertrand.Marquis@arm.com>
Sent: Thursday, February 11, 2021 4:49 PM
To: Deepthi M. <Deepthi.M@Ltts.com>
Cc: xen-users@lists.xenproject.org <xen-users@lists.xenproject.org>; Pelluru VamsiKrishna <Pelluru.VamsiKrishna@Ltts.com>
Subject: Re: Error while building Xen

Hi Deepthi,

> On 5 Feb 2021, at 06:56, Deepthi M. <Deepthi.M@Ltts.com> 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.
Re: Error while building Xen [ In reply to ]
Hi Deepthi,

> On 11 Feb 2021, at 11:40, Deepthi M. <Deepthi.M@Ltts.com> 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@arm.com>
> Sent: Thursday, February 11, 2021 4:49 PM
> To: Deepthi M. <Deepthi.M@Ltts.com>
> Cc: xen-users@lists.xenproject.org <xen-users@lists.xenproject.org>; Pelluru VamsiKrishna <Pelluru.VamsiKrishna@Ltts.com>
> Subject: Re: Error while building Xen
>
> Hi Deepthi,
>
> > On 5 Feb 2021, at 06:56, Deepthi M. <Deepthi.M@Ltts.com> 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>
Re: Error while building Xen [ In reply to ]
Hi Bertrand,

I switched all the meta layers to Rocko but meta-demo/meta-rcar-gen3-xen is master branch. I got the following error.

user@user-OptiPlex-7010:~/build/build$ bitbake core-image-weston
Parsing recipes: 100% |#########################################################################################################| Time: 0:01:45
Parsing of 2104 .bb files complete (0 cached, 2104 parsed). 2925 targets, 91 skipped, 3 masked, 0 errors.
ERROR: No recipes available for:
/home/user/build/meta-demo/meta-rcar-gen3-xen/recipes-kernel/linux/linux-renesas_4.9.bbappend

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Thank you,
Deepthi
________________________________
From: Bertrand Marquis <Bertrand.Marquis@arm.com>
Sent: Thursday, February 11, 2021 5:36 PM
To: Deepthi M. <Deepthi.M@Ltts.com>
Cc: xen-users@lists.xenproject.org <xen-users@lists.xenproject.org>; Pelluru VamsiKrishna <Pelluru.VamsiKrishna@Ltts.com>
Subject: Re: Error while building Xen

Hi Deepthi,

> On 11 Feb 2021, at 11:40, Deepthi M. <Deepthi.M@Ltts.com> 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://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.xenproject.org%2Fwiki%2FXen_ARM_with_Virtualization_Extensions%2FSalvator-X&amp;data=04%7C01%7CDeepthi.M%40ltts.com%7C87e14a7748614f199b6e08d8ce857b44%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637486420581774632%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=93VkIgXWUGA9hTX%2BQp0AFcaA%2BILuDjagm1MtWDpBy6U%3D&amp;reserved=0

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://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Felinux.org%2FR-Car%2FBoards%2FYocto-Gen3%2Fv4.7.0&amp;data=04%7C01%7CDeepthi.M%40ltts.com%7C87e14a7748614f199b6e08d8ce857b44%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637486420581774632%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=OlLFQd3LzaKtkgHpn4n9PxCsum0MG2wMzD3AprOkzgQ%3D&amp;reserved=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://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.yoctoproject.org%2Fcgit%2Fcgit.cgi%2Fmeta-virtualization%2Ftree%2Frecipes-extended%2Fxen%2Ffiles%2F0001-python-pygrub-pass-DISTUTILS-xen-4.14.patch&amp;data=04%7C01%7CDeepthi.M%40ltts.com%7C87e14a7748614f199b6e08d8ce857b44%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637486420581774632%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=j%2FFqFJpy%2FrxM%2BHp0UkzIcZqKwpngJ5liyUv8K2Es6HQ%3D&amp;reserved=0

Cheers
Bertrand

>
>
> Thank you,
> Deepthi
> From: Bertrand Marquis <Bertrand.Marquis@arm.com>
> Sent: Thursday, February 11, 2021 4:49 PM
> To: Deepthi M. <Deepthi.M@Ltts.com>
> Cc: xen-users@lists.xenproject.org <xen-users@lists.xenproject.org>; Pelluru VamsiKrishna <Pelluru.VamsiKrishna@Ltts.com>
> Subject: Re: Error while building Xen
>
> Hi Deepthi,
>
> > On 5 Feb 2021, at 06:56, Deepthi M. <Deepthi.M@Ltts.com> 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%7C87e14a7748614f199b6e08d8ce857b44%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637486420581774632%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=4PogkihITi7467D6sCOMOMz2Na2d4wlUelOqxYxR%2F70%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%7C87e14a7748614f199b6e08d8ce857b44%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637486420581784628%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=EdjKj4LUFN0MIxq4FG1o581Kxg82yzAsZm5f4My%2BiJY%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
> https://ind01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ltts.com%2F&amp;data=04%7C01%7CDeepthi.M%40ltts.com%7C87e14a7748614f199b6e08d8ce857b44%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637486420581784628%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=EdjKj4LUFN0MIxq4FG1o581Kxg82yzAsZm5f4My%2BiJY%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%7C87e14a7748614f199b6e08d8ce857b44%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637486420581784628%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=EdjKj4LUFN0MIxq4FG1o581Kxg82yzAsZm5f4My%2BiJY%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.
> <local.conf>


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.
Re: Error while building Xen [ In reply to ]
Hi Deepthi,


> On 12 Feb 2021, at 13:01, Deepthi M. <Deepthi.M@Ltts.com> wrote:
>
> Hi Bertrand,
>
> I switched all the meta layers to Rocko but meta-demo/meta-rcar-gen3-xen is master branch. I got the following error.
>
> user@user-OptiPlex-7010:~/build/build$ bitbake core-image-weston
> Parsing recipes: 100% |#########################################################################################################| Time: 0:01:45
> Parsing of 2104 .bb files complete (0 cached, 2104 parsed). 2925 targets, 91 skipped, 3 masked, 0 errors.
> ERROR: No recipes available for:
> /home/user/build/meta-demo/meta-rcar-gen3-xen/recipes-kernel/linux/linux-renesas_4.9.bbappend
>
> Summary: There was 1 ERROR message shown, returning a non-zero exit code.

It seems your meta-demo is dependent on an older kernel version.

You should try to contact the maintainer of this meta-demo layer or you will have to either try to:
- remove this bbappend as it could be that it is not needed anymore
- port the things it does to the current version of the linux-renesas

Cheers
Bertrand

>
> Thank you,
> Deepthi
> From: Bertrand Marquis <Bertrand.Marquis@arm.com>
> Sent: Thursday, February 11, 2021 5:36 PM
> To: Deepthi M. <Deepthi.M@Ltts.com>
> Cc: xen-users@lists.xenproject.org <xen-users@lists.xenproject.org>; Pelluru VamsiKrishna <Pelluru.VamsiKrishna@Ltts.com>
> Subject: Re: Error while building Xen
>
> Hi Deepthi,
>
> > On 11 Feb 2021, at 11:40, Deepthi M. <Deepthi.M@Ltts.com> 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://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.xenproject.org%2Fwiki%2FXen_ARM_with_Virtualization_Extensions%2FSalvator-X&amp;data=04%7C01%7CDeepthi.M%40ltts.com%7C87e14a7748614f199b6e08d8ce857b44%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637486420581774632%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=93VkIgXWUGA9hTX%2BQp0AFcaA%2BILuDjagm1MtWDpBy6U%3D&amp;reserved=0
>
> 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://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Felinux.org%2FR-Car%2FBoards%2FYocto-Gen3%2Fv4.7.0&amp;data=04%7C01%7CDeepthi.M%40ltts.com%7C87e14a7748614f199b6e08d8ce857b44%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637486420581774632%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=OlLFQd3LzaKtkgHpn4n9PxCsum0MG2wMzD3AprOkzgQ%3D&amp;reserved=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://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.yoctoproject.org%2Fcgit%2Fcgit.cgi%2Fmeta-virtualization%2Ftree%2Frecipes-extended%2Fxen%2Ffiles%2F0001-python-pygrub-pass-DISTUTILS-xen-4.14.patch&amp;data=04%7C01%7CDeepthi.M%40ltts.com%7C87e14a7748614f199b6e08d8ce857b44%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637486420581774632%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=j%2FFqFJpy%2FrxM%2BHp0UkzIcZqKwpngJ5liyUv8K2Es6HQ%3D&amp;reserved=0
>
> Cheers
> Bertrand
>
> >
> >
> > Thank you,
> > Deepthi
> > From: Bertrand Marquis <Bertrand.Marquis@arm.com>
> > Sent: Thursday, February 11, 2021 4:49 PM
> > To: Deepthi M. <Deepthi.M@Ltts.com>
> > Cc: xen-users@lists.xenproject.org <xen-users@lists.xenproject.org>; Pelluru VamsiKrishna <Pelluru.VamsiKrishna@Ltts.com>
> > Subject: Re: Error while building Xen
> >
> > Hi Deepthi,
> >
> > > On 5 Feb 2021, at 06:56, Deepthi M. <Deepthi.M@Ltts.com> 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%7C87e14a7748614f199b6e08d8ce857b44%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637486420581774632%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=4PogkihITi7467D6sCOMOMz2Na2d4wlUelOqxYxR%2F70%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%7C87e14a7748614f199b6e08d8ce857b44%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637486420581784628%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=EdjKj4LUFN0MIxq4FG1o581Kxg82yzAsZm5f4My%2BiJY%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
> > https://ind01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ltts.com%2F&amp;data=04%7C01%7CDeepthi.M%40ltts.com%7C87e14a7748614f199b6e08d8ce857b44%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637486420581784628%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=EdjKj4LUFN0MIxq4FG1o581Kxg82yzAsZm5f4My%2BiJY%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%7C87e14a7748614f199b6e08d8ce857b44%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637486420581784628%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=EdjKj4LUFN0MIxq4FG1o581Kxg82yzAsZm5f4My%2BiJY%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.
> > <local.conf>
>
> 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.
Re: Error while building Xen [ In reply to ]
Hello Bertrand,

As per your suggestion I removed .bbappend and my build is going on.

Thank you,
Deepthi


________________________________
From: Bertrand Marquis <Bertrand.Marquis@arm.com>
Sent: Friday, February 12, 2021 6:41 PM
To: Deepthi M. <Deepthi.M@Ltts.com>
Cc: xen-users@lists.xenproject.org <xen-users@lists.xenproject.org>; Pelluru VamsiKrishna <Pelluru.VamsiKrishna@Ltts.com>
Subject: Re: Error while building Xen

Hi Deepthi,


> On 12 Feb 2021, at 13:01, Deepthi M. <Deepthi.M@Ltts.com> wrote:
>
> Hi Bertrand,
>
> I switched all the meta layers to Rocko but meta-demo/meta-rcar-gen3-xen is master branch. I got the following error.
>
> user@user-OptiPlex-7010:~/build/build$ bitbake core-image-weston
> Parsing recipes: 100% |#########################################################################################################| Time: 0:01:45
> Parsing of 2104 .bb files complete (0 cached, 2104 parsed). 2925 targets, 91 skipped, 3 masked, 0 errors.
> ERROR: No recipes available for:
> /home/user/build/meta-demo/meta-rcar-gen3-xen/recipes-kernel/linux/linux-renesas_4.9.bbappend
>
> Summary: There was 1 ERROR message shown, returning a non-zero exit code.

It seems your meta-demo is dependent on an older kernel version.

You should try to contact the maintainer of this meta-demo layer or you will have to either try to:
- remove this bbappend as it could be that it is not needed anymore
- port the things it does to the current version of the linux-renesas

Cheers
Bertrand

>
> Thank you,
> Deepthi
> From: Bertrand Marquis <Bertrand.Marquis@arm.com>
> Sent: Thursday, February 11, 2021 5:36 PM
> To: Deepthi M. <Deepthi.M@Ltts.com>
> Cc: xen-users@lists.xenproject.org <xen-users@lists.xenproject.org>; Pelluru VamsiKrishna <Pelluru.VamsiKrishna@Ltts.com>
> Subject: Re: Error while building Xen
>
> Hi Deepthi,
>
> > On 11 Feb 2021, at 11:40, Deepthi M. <Deepthi.M@Ltts.com> 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://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.xenproject.org%2Fwiki%2FXen_ARM_with_Virtualization_Extensions%2FSalvator-X&amp;data=04%7C01%7CDeepthi.M%40ltts.com%7C24e27bd298794726199908d8cf57d8cc%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637487323514791643%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=KF44ME0A6NvyuqCKKC%2BYjA%2F2ZMtimhrFF1WumNCb74U%3D&amp;reserved=0
>
> 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://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Felinux.org%2FR-Car%2FBoards%2FYocto-Gen3%2Fv4.7.0&amp;data=04%7C01%7CDeepthi.M%40ltts.com%7C24e27bd298794726199908d8cf57d8cc%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637487323514801643%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=OitszwTlxKRLPzgi4bAHNz7Bp1gC31un2SAEpn3WXTA%3D&amp;reserved=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://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.yoctoproject.org%2Fcgit%2Fcgit.cgi%2Fmeta-virtualization%2Ftree%2Frecipes-extended%2Fxen%2Ffiles%2F0001-python-pygrub-pass-DISTUTILS-xen-4.14.patch&amp;data=04%7C01%7CDeepthi.M%40ltts.com%7C24e27bd298794726199908d8cf57d8cc%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637487323514801643%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=BndrhY6QB1553C7IcDdZ1CddWEBMthBEndPwsG0sKtk%3D&amp;reserved=0
>
> Cheers
> Bertrand
>
> >
> >
> > Thank you,
> > Deepthi
> > From: Bertrand Marquis <Bertrand.Marquis@arm.com>
> > Sent: Thursday, February 11, 2021 4:49 PM
> > To: Deepthi M. <Deepthi.M@Ltts.com>
> > Cc: xen-users@lists.xenproject.org <xen-users@lists.xenproject.org>; Pelluru VamsiKrishna <Pelluru.VamsiKrishna@Ltts.com>
> > Subject: Re: Error while building Xen
> >
> > Hi Deepthi,
> >
> > > On 5 Feb 2021, at 06:56, Deepthi M. <Deepthi.M@Ltts.com> 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%7C24e27bd298794726199908d8cf57d8cc%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637487323514801643%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=mDHAaq4%2BAsptf7vtjejZxesQUWcxFXN3WPKu3y%2FG3s8%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%7C24e27bd298794726199908d8cf57d8cc%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637487323514801643%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=mDHAaq4%2BAsptf7vtjejZxesQUWcxFXN3WPKu3y%2FG3s8%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
> > https://ind01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ltts.com%2F&amp;data=04%7C01%7CDeepthi.M%40ltts.com%7C24e27bd298794726199908d8cf57d8cc%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637487323514801643%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=mDHAaq4%2BAsptf7vtjejZxesQUWcxFXN3WPKu3y%2FG3s8%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%7C24e27bd298794726199908d8cf57d8cc%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637487323514801643%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=mDHAaq4%2BAsptf7vtjejZxesQUWcxFXN3WPKu3y%2FG3s8%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.
> > <local.conf>
>
> 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%7C24e27bd298794726199908d8cf57d8cc%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637487323514811635%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=XJ%2FPI72OMQM7QILZ42DpEE8vjcuba8PlvyMBsDEtyx0%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%7C24e27bd298794726199908d8cf57d8cc%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637487323514811635%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=XJ%2FPI72OMQM7QILZ42DpEE8vjcuba8PlvyMBsDEtyx0%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.