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="">
> 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="">.
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.