Title: libffi detection via pkg-config is broken
Type: compile error Stage: resolved
Components: Build Versions: Python 3.8
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: barry, benjamin.peterson, yan12125
Priority: normal Keywords: patch

Created on 2018-05-23 16:34 by yan12125, last changed 2018-05-24 06:37 by benjamin.peterson. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 7075 merged yan12125, 2018-05-23 17:04
Messages (2)
msg317424 - (view) Author: Chih-Hsuan Yen (yan12125) * Date: 2018-05-23 16:34
The cause is that ./configure contains unexpanded m4 macro PKG_PROG_PKG_CONFIG:

For unknown reasons, after GH-6850 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 GH-6850
msg317537 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2018-05-24 06:37
New changeset 03c0d2e1f272c7c6df5f6066a6abc222ff61073a by Benjamin Peterson (Chih-Hsuan Yen) in branch 'master':
closes bpo-33619: Fix libffi detection by regenerating ./configure (GH-7075)
Date User Action Args
2018-05-24 06:37:17benjamin.petersonsetstatus: open -> closed
resolution: fixed
messages: + msg317537

stage: patch review -> resolved
2018-05-23 18:13:24barrysetnosy: + barry
2018-05-23 17:04:34yan12125setkeywords: + patch
stage: patch review
pull_requests: + pull_request6706
2018-05-23 16:34:24yan12125create