Repository navigation
.pc for Android contains invalid syntax #138800
Copy link
Copy link
Closed
Labels
OS-androidbuildThe build process and cross-buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Activity
- addedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
on Sep 11, 2025 cc @mhsmith
- addedbuildThe build process and cross-buildThe build process and cross-build
on Sep 11, 2025 Thanks for the report. I guess
$(BLDLIBRARY)should probably be replaced with-lpython3.14. However, I'm not currently aware of anyone who uses the .pc file on Android, so I won't pick this up this myself just now.Fair enough, I've hackily worked this around downstream now.
- added 7 commits that reference this issue
on Sep 23, 2025 This affects any package using Meson, which uses pkgconfig to detect Python, so I'll implement a workaround in cibuildwheel.
Example error:
FAILED: numpy/_core/_struct_ufunc_tests.cpython-313-aarch64-linux-android.so /Users/msmith/Library/Android/sdk/ndk/27.3.13750724/toolchains/llvm/prebuilt/darwin-x86_64/bin/aarch64-linux-android24-clang -o numpy/_core/_struct_ufunc_tests.cpython-313-aarch64-linux-android.so numpy/_core/_struct_ufunc_tests.cpython-313-aarch64-linux-android.so.p/src_umath__struct_ufunc_tests.c.o -L/private/var/folders/2t/th8vxc813_gcch7lkh1sbbmc0000gp/T/cibw-run-5ef4oo3_/cp313-android_arm64_v8a/python/prefix/lib -I/private/var/folders/2t/th8vxc813_gcch7lkh1sbbmc0000gp/T/cibw-run-5ef4oo3_/cp313-android_arm64_v8a/python/prefix/include -Wl,--as-needed -Wl,--allow-shlib-undefined -Wl,-O1 -shared -fPIC -lm -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,-z,max-page-size=16384 -Wl,--no-undefined -D__BIONIC_NO_PAGE_SIZE_MACRO -DNDEBUG -O3 -Wall '$(BLDLIBRARY)' clang: error: no such file or directory: '$(BLDLIBRARY)'Reacted by Christoph Reiter48 remaining items
- added 2 commits that reference this issue
on Apr 10, 2026 - added a commit that references this issue
on May 11, 2026 - added a commit that references this issue
on Jun 10, 2026 Thanks @freakboy3742 @thunder-coding !
Metadata
Metadata
Assignees
Labels
OS-androidbuildThe build process and cross-buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Bug report
Bug description:
Looking at the Android build here: https://www.python.org/downloads/android/
The .pc files look like this:
The "Libs:" line contains some autotools internals instead of the library name resulting in linker errors like:
Might be related to #115780
Disclaimer: The main reason I'm reporting this is that it also breaks the Cygwin build in the same way, but that's not a supported platform, so this is the next best thing. i.e. I've not actually tested on Android.
CPython versions tested on:
3.13
Operating systems tested on:
Windows
Linked PRs