Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-compiling python:3.5.x fails with "Parser/pgen: Parser/pgen: cannot execute binary file" #71073

Closed
PeterL2 mannequin opened this issue Apr 29, 2016 · 5 comments
Closed
Labels
build The build process and cross-build

Comments

@PeterL2
Copy link
Mannequin

PeterL2 mannequin commented Apr 29, 2016

BPO 26886
Nosy @moreati, @yan12125
Files
  • python-3.5-crosscompile.patch: A patch for python-3.5.x to enable cross-compiling
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2016-04-29.19:30:20.318>
    created_at = <Date 2016-04-29.16:29:35.254>
    labels = ['build']
    title = 'Cross-compiling python:3.5.x  fails with "Parser/pgen: Parser/pgen: cannot execute binary file"'
    updated_at = <Date 2016-04-29.19:30:20.316>
    user = 'https://bugs.python.org/PeterL2'

    bugs.python.org fields:

    activity = <Date 2016-04-29.19:30:20.316>
    actor = 'Peter L2'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-04-29.19:30:20.318>
    closer = 'Peter L2'
    components = ['Cross-Build']
    creation = <Date 2016-04-29.16:29:35.254>
    creator = 'Peter L2'
    dependencies = []
    files = ['42654']
    hgrepos = []
    issue_num = 26886
    keywords = ['patch']
    message_count = 5.0
    messages = ['264508', '264510', '264512', '264515', '264517']
    nosy_count = 3.0
    nosy_names = ['Alex.Willmer', 'yan12125', 'Peter L2']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = None
    status = 'closed'
    superseder = None
    type = 'compile error'
    url = 'https://bugs.python.org/issue26886'
    versions = ['Python 3.5']

    @PeterL2
    Copy link
    Mannequin Author

    PeterL2 mannequin commented Apr 29, 2016

    Cross-compiling python-3.5.x fails with "Parser/pgen: Parser/pgen: cannot execute binary file" (CBUILD="x86_64-pc-linux-gnu" and CHOST="armv7a-hardfloat-linux-gnueabi").

    python-3.5.x requires "pgen" and "_freeze_importlib" to be compiled and executed at build time. Otherwise, it fails with "Parser/pgen: Parser/pgen: cannot execute binary file".

    @PeterL2 PeterL2 mannequin added build The build process and cross-build labels Apr 29, 2016
    @PeterL2
    Copy link
    Mannequin Author

    PeterL2 mannequin commented Apr 29, 2016

    Originally posted:
    https://bugs.gentoo.org/show_bug.cgi?id=581304

    @yan12125
    Copy link
    Mannequin

    yan12125 mannequin commented Apr 29, 2016

    You may need this patch: https://hg.python.org/cpython/rev/0f7a299c6d50

    @PeterL2
    Copy link
    Mannequin Author

    PeterL2 mannequin commented Apr 29, 2016

    Hmmm. Solves half the problem. Still fails when trying to run "_freeze_importlib".

    This works though:
    https://hg.python.org/cpython/rev/66e40df31fac

    @PeterL2
    Copy link
    Mannequin Author

    PeterL2 mannequin commented Apr 29, 2016

    Gonna close it since it seems to be related to

    http://bugs.python.org/issue22359

    and solved with

    https://hg.python.org/cpython/rev/66e40df31fac

    @PeterL2 PeterL2 mannequin closed this as completed Apr 29, 2016
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    build The build process and cross-build
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants