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

libffi detection via pkg-config is broken #77800

Closed
yan12125 mannequin opened this issue May 23, 2018 · 2 comments
Closed

libffi detection via pkg-config is broken #77800

yan12125 mannequin opened this issue May 23, 2018 · 2 comments
Labels
3.8 only security fixes build The build process and cross-build

Comments

@yan12125
Copy link
Mannequin

yan12125 mannequin commented May 23, 2018

BPO 33619
Nosy @warsaw, @benjaminp, @yan12125
PRs
  • bpo-33619: Fix libffi detection by regenerating ./configure #7075
  • 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 2018-05-24.06:37:17.713>
    created_at = <Date 2018-05-23.16:34:24.904>
    labels = ['build', '3.8']
    title = 'libffi detection via pkg-config is broken'
    updated_at = <Date 2018-05-24.06:37:17.712>
    user = 'https://github.com/yan12125'

    bugs.python.org fields:

    activity = <Date 2018-05-24.06:37:17.712>
    actor = 'benjamin.peterson'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-05-24.06:37:17.713>
    closer = 'benjamin.peterson'
    components = ['Build']
    creation = <Date 2018-05-23.16:34:24.904>
    creator = 'yan12125'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 33619
    keywords = ['patch']
    message_count = 2.0
    messages = ['317424', '317537']
    nosy_count = 3.0
    nosy_names = ['barry', 'benjamin.peterson', 'yan12125']
    pr_nums = ['7075']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'compile error'
    url = 'https://bugs.python.org/issue33619'
    versions = ['Python 3.8']

    @yan12125
    Copy link
    Mannequin Author

    yan12125 mannequin commented May 23, 2018

    The cause is that ./configure contains unexpanded m4 macro PKG_PROG_PKG_CONFIG:

    https://github.com/python/cpython/blob/3055c94/configure#L9909

    For unknown reasons, after #51099 the PKG_PROG_PKG_CONFIG macro is removed from aclocal.m4, and thus the macro is kept unexpanded in ./configure. As a result, $PKG_CONFIG is not correctly set, libffi can't be detected and thus _ctypes fails to build.

    Run autoreconf again fixes the issue on my machine. I have pkg-config 0.29.2-1, autoconf 2.69-4 and automake 1.15.1-1 on Arch Linux.

    cc the author of #51099

    @yan12125 yan12125 mannequin added 3.8 only security fixes build The build process and cross-build labels May 23, 2018
    @benjaminp
    Copy link
    Contributor

    New changeset 03c0d2e by Benjamin Peterson (Chih-Hsuan Yen) in branch 'master':
    closes bpo-33619: Fix libffi detection by regenerating ./configure (GH-7075)
    03c0d2e

    @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
    3.8 only security fixes build The build process and cross-build
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant