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

android: cross-compilation of extension module links to the wrong python library #71071

Closed
xdegaye mannequin opened this issue Apr 29, 2016 · 3 comments
Closed

android: cross-compilation of extension module links to the wrong python library #71071

xdegaye mannequin opened this issue Apr 29, 2016 · 3 comments
Labels
build The build process and cross-build

Comments

@xdegaye
Copy link
Mannequin

xdegaye mannequin commented Apr 29, 2016

BPO 26884
Nosy @merwok, @xdegaye, @dstufft, @moreati
Files
  • build.patch
  • 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-06-04.22:44:37.131>
    created_at = <Date 2016-04-29.10:32:10.927>
    labels = ['build']
    title = 'android: cross-compilation of extension module links to the wrong python library'
    updated_at = <Date 2016-06-04.22:44:37.130>
    user = 'https://github.com/xdegaye'

    bugs.python.org fields:

    activity = <Date 2016-06-04.22:44:37.130>
    actor = 'doko'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-06-04.22:44:37.131>
    closer = 'doko'
    components = ['Cross-Build']
    creation = <Date 2016-04-29.10:32:10.927>
    creator = 'xdegaye'
    dependencies = []
    files = ['42650']
    hgrepos = []
    issue_num = 26884
    keywords = ['patch']
    message_count = 3.0
    messages = ['264484', '265340', '267337']
    nosy_count = 5.0
    nosy_names = ['eric.araujo', 'xdegaye', 'python-dev', 'dstufft', 'Alex.Willmer']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'compile error'
    url = 'https://bugs.python.org/issue26884'
    versions = ['Python 3.6']

    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented Apr 29, 2016

    configure of the cross compilation is run with '--enable-shared --with-pydebug'.

    The cross-compilation fails attempting to link the extension module objects with a non existing libpython3.6m instead of libpython3.6dm, when the native python that is used to run setup.py had not been configured with --with-pydebug.

    The attached patch fixes this problem.

    @xdegaye xdegaye mannequin added build The build process and cross-build labels Apr 29, 2016
    @xdegaye xdegaye mannequin changed the title cross-compilation of extension module links to the wrong python library android: cross-compilation of extension module links to the wrong python library May 3, 2016
    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented May 11, 2016

    Another description of the problem:

    • On the build system, the native python (in one of the search directories of PATH) has been built without --with-pydebug.
    • The cross-compilation is done on this build system with --with-pydebug.
    • The cross-compilation of all the Python extension modules fails with:
      /bin/ld: error: cannot find -lpython3.6m
      collect2: error: ld returned 1 exit status

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jun 4, 2016

    New changeset d00837de03d7 by doko in branch '3.5':

    @doko42 doko42 closed this as completed Jun 4, 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

    1 participant