[yocto] Error cross-building python 3.5.2

Matthew Clark linux.matthew at gmail.com
Fri Jun 1 12:55:07 PDT 2018


As a followup to my question, it might have helped to include some more
details... ^_^;;;

poky.sumo/meta/recipes-devtools/python/python3_3.5.5.bb:do_compile

As near as I can tell, the command below is running the /usr/bin/python
version from my host system, which is 2.7.15rc1, so that might explain the
error.   I don't understand why it's calling that version since I thought
all the leading "PYTHON*" environment variables were to have Yocto use the
one built in the 3.5.5 folder?

Matt


On Fri, Jun 1, 2018 at 3:36 PM, Matthew Clark <linux.matthew at gmail.com>
wrote:

> I'm trying to build yocto for two different ARM boards using a rocko and a
> sumo distro, but am running into the same problem:
>
>
> PYTHON_PROJECT_BASE=/home/mclark/Code/Yocto/ODroid/
> build/tmp/work/aarch64-poky-linux/python3/3.5.5-r1.0/build \
> _PYTHON_HOST_PLATFORM=linux-aarch64  PYTHONPATH=\
> /home/mclark/Code/Yocto/ODroid/build/tmp/work/aarch64-
> poky-linux/python3/3.5.5-r1.0/recipe-sysroot-native/usr/lib/
> python3.5/lib-dynload/:
> /home/mclark/Code/Yocto/ODroid/build/tmp/work/aarch64-
> poky-linux/python3/3.5.5-r1.0/build/build/lib.linux-aarch64-3.5:\
> /home/mclark/Code/Yocto/ODroid/build/tmp/work/aarch64-
> poky-linux/python3/3.5.5-r1.0/Python-3.5.5/Lib:\
> /home/mclark/Code/Yocto/ODroid/build/tmp/work/aarch64-
> poky-linux/python3/3.5.5-r1.0/Python-3.5.5/Lib/plat-linux \
> python -S -m sysconfig --generate-posix-vars
>
> Traceback (most recent call last):
>   File "/home/mclark/Code/Yocto/ODroid/build/tmp/work/aarch64-
> poky-linux/python3/3.5.5-r1.0/Python-3.5.5/Lib/encodings/__init__.py",
> line 31, in <module>
>     import codecs
>   File "/home/mclark/Code/Yocto/ODroid/build/tmp/work/aarch64-
> poky-linux/python3/3.5.5-r1.0/Python-3.5.5/Lib/codecs.py", line 95
>     *, _is_text_encoding=None):
>      ^
> SyntaxError: invalid syntax
>
> I've not been able to to identify a solid lead on why this is bailing, but
> its blocking my builds.  Does anyone one know why it's crapping here?
>
> Matt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180601/0e9f6660/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log.do_compile.zip
Type: application/x-zip-compressed
Size: 5649 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180601/0e9f6660/attachment.bin>


More information about the yocto mailing list