[issue39221] Cross compiled python installed wrong version of lib2to3/Grammar pickle

2021-07-16 Thread Andrew Aladjev
Andrew Aladjev added the comment: Hello. I've received more problems with pickle generation, reviewed source code, invented better bike for solving it. So I can provide full description of this issue and reduce other developers time on debugging. Problem: 1. Martin v. Löwis introduced

[issue22724] byte-compile fails for cross-builds

2020-01-21 Thread Andrew Aladjev
Andrew Aladjev added the comment: I've made a quick test of all patches provided. All patches have failed to fix it. The problem is more heavy than it looks like. Please look at the following code: PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM

[issue22724] byte-compile fails for cross-builds

2020-01-21 Thread Andrew Aladjev
Andrew Aladjev added the comment: Hello. I've provided a double recompilation workaround in the following gentoo bug https://bugs.gentoo.org/705970. You can use it for now if you don't want to wait until this issue will be fixed. I will try patches provided by people in this issue today's

[issue22724] byte-compile fails for cross-builds

2020-01-21 Thread Andrew Aladjev
Change by Andrew Aladjev : -- nosy: +puchenyaka ___ Python tracker <https://bugs.python.org/issue22724> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39399] Cross compilation using different libc is broken

2020-01-21 Thread Andrew Aladjev
Andrew Aladjev added the comment: Hello, it seems like issue 22724 is completely the same. Let's discuss solutions there. Thank you. -- ___ Python tracker <https://bugs.python.org/issue39

[issue39399] Cross compilation using different libc is broken

2020-01-20 Thread Andrew Aladjev
New submission from Andrew Aladjev : Hello. I am implementing python cross compilation using "x86_64-pc-linux-musl" toolchain: "x86_64-pc-linux-musl-emerge -v1 python:3.6". Please see the following build log https://gist.github.com/andrew-aladev/e10fa5a8151ffb3c5782edd64

[issue39221] Cross compiled python installed wrong version of lib2to3/Grammar pickle

2020-01-05 Thread Andrew Aladjev
Andrew Aladjev added the comment: For now I've created a workaround - just removed python version from pickle generator. For my current container it works perfect. -- keywords: +patch Added file: https://bugs.python.org/file48828/remove_python_version_from_pickle.patch

[issue39221] Cross compiled python installed wrong version of lib2to3/Grammar pickle

2020-01-05 Thread Andrew Aladjev
Andrew Aladjev added the comment: This is build.log: https://gist.githubusercontent.com/andrew-aladev/f36e8e754278e4fad50ff13238326f7a/raw/245a72e8bd0fb3dc6e4185ec757b2d3ab59d5861/gistfile1.txt We can see that python installed "Grammar3.6.9.final.0.pickle" instead of "Gramma

[issue39221] Cross compiled python installed wrong version of lib2to3/Grammar pickle

2020-01-05 Thread Andrew Aladjev
New submission from Andrew Aladjev : Please see the following gentoo bug https://bugs.gentoo.org/704816 https://github.com/python/cpython/blob/master/Lib/lib2to3/pgen2/driver.py#L110 > head + tail + ".".join(map(str, sys.version_info)) + ".pickle" I've tried "pri