New submission from Chih-Hsuan Yen <yan16037...@hotmail.com.tw>:

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 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

----------
components: Build
messages: 317424
nosy: benjamin.peterson, yan12125
priority: normal
severity: normal
status: open
title: libffi detection via pkg-config is broken
type: compile error
versions: Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33619>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to