When building a Python 3.14 project for Android using Buildozer and python-for-android(develop), two separate compilation failures occur:
-
_remote_debugging_module fails
The module fails to compile because search_linux_map_for_section is undeclared:
/Modules/_remote_debugging_module.c:31: error: call to undeclared function 'search_linux_map_for_section'
/Modules/_remote_debugging_module.c:814: error: call to undeclared function 'search_linux_map_for_section'
This prevents the Python core from building properly for Android.
-
SDL2 bootstrap fails (pyconfig.h not found)
After _remote_debugging_module compilation fails, attempting to build (buildozer -v --stacktrace --scan android debug deploy run) results in:
In file included from start.c:3:
Python.h:14:10: fatal error: 'pyconfig.h' file not found
14 | #include "pyconfig.h"
| ^~~~~~~~~~~~
This appears to be caused by the SDL2 bootstrap not locating Python 3.14 headers correctly.
Steps to reproduce:
- Create a Buildozer project with Python 3.14 requirement.
- Run:
- Observe compilation errors for
_remote_debugging_module and start.c.
Environment:
- OS: Linux
- Buildozer version: latest (from pip)
- python-for-android: latest (from GitHub)
- Python version: 3.14
- NDK: r29
- SDK: Android API 36
- Target architectures:
arm64-v8a, armeabi-v7a
Additional context:
- No modifications or patches were applied to Python, Buildozer, or the bootstrap.
- Both issues seem to stem from incomplete support for Python 3.14 in SDL2 bootstrap and
_remote_debugging_module.
Request:
- Guidance or updates to
python-for-android and SDL2 bootstrap to support Python 3.14 on Android.
- Fix or workaround for
_remote_debugging_module compilation errors.
- Ensure SDL2 bootstrap can locate Python headers like
pyconfig.h for Python 3.14 builds.
When building a Python 3.14 project for Android using Buildozer and
python-for-android(develop), two separate compilation failures occur:_remote_debugging_modulefailsThe module fails to compile because
search_linux_map_for_sectionis undeclared:This prevents the Python core from building properly for Android.
SDL2 bootstrap fails (
pyconfig.hnot found)After
_remote_debugging_modulecompilation fails, attempting to build (buildozer -v --stacktrace --scan android debug deploy run) results in:This appears to be caused by the SDL2 bootstrap not locating Python 3.14 headers correctly.
Steps to reproduce:
_remote_debugging_moduleandstart.c.Environment:
arm64-v8a,armeabi-v7aAdditional context:
_remote_debugging_module.Request:
python-for-androidand SDL2 bootstrap to support Python 3.14 on Android._remote_debugging_modulecompilation errors.pyconfig.hfor Python 3.14 builds.