Skip to content

wrong version of pybind #3317

Description

@GvozdevLeonid

The MesonRecipe has a non-existent version of pybind == 3.3.0 installed. But the latest version is 3.0.4

https://github.com/kivy/python-for-android/blob/develop/pythonforandroid/recipe.py#L1412

Activity

  1. T-Dynamos commented on May 9, 2026

    @T-Dynamos
    Member

    Yes you are correct, introduced in #3301

    BTW it's just a fallback:

        pybind_version = "3.3.0"
    
    
            if w_type == "pybind11":
                wrapper_name = "pybind11-config"
                include_path = join(self._host_recipe.site_dir, "pybind11/include")
    
                version = None
                try:
                    command = [self._host_recipe.real_hostpython_location, "-c", "import pybind11; print(pybind11.__version__)"]
                    version = subprocess.check_output(command).decode('utf-8').strip()
                except Exception:
                    warning("Unable to get pybind11 version")
                if version is None:
                    version = self.pybind_version

    Does this break anything? yet

  2. GvozdevLeonid commented on May 9, 2026

    @GvozdevLeonid
    ContributorAuthor

    @T-Dynamos
    Could this broke a numpy build?

    I'm getting this error

    ../meson.build:40:22: ERROR: <PythonExternalProgram 'python' -> ['/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_wrappers/python']> is not a valid python or it is missing distutils

    Im using python3.11
    I have also checked that Cython 3.2.4 support this python version

  3. T-Dynamos commented on May 9, 2026

    @T-Dynamos
    Member

    @GvozdevLeonid As you can see meson is picking up a custom python wrapper which is tailored to spoof only a few things and last time I tested it was working on python 3.14.

    Maybe you should send full numpy error (from Building numpy..)

  4. GvozdevLeonid commented on May 9, 2026

    @GvozdevLeonid
    ContributorAuthor
    2026-05-09T01:58:46.5348594Z �[1m[INFO]�[0m:    �[1m�[32mBuilding numpy for arm64-v8a�[0m�[39m
    2026-05-09T01:58:46.5353340Z �[1m[INFO]�[0m:    numpy apparently isn't already in site-packages
    2026-05-09T01:58:46.5358055Z �[1m[INFO]�[0m:    Writing cross file at: /tmp/android.meson.cross
    2026-05-09T01:58:46.5364119Z �[1m�[31m[WARNING]�[39m�[0m: Unable to get pybind11 version
    2026-05-09T01:58:46.5368665Z �[1m�[90m[DEBUG]�[39m�[0m:   Create directory /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_wrappers
    2026-05-09T01:58:46.5394819Z stty: 'standard input': Inappropriate ioctl for device
    2026-05-09T01:58:46.5400612Z �[1m�[90m[DEBUG]�[39m�[0m:   �[90m->�[0m running pip3 install numpy==2.3.0 --ignore-installed --disable-pip-version-check --python-version 3.11.9 --only-binary=:all: --no-deps --platform=android_24_arm64_v8a --platform=android_24_aarch64 --dry-run -q�[0m
    2026-05-09T01:58:47.1075922Z �[1m�[90m[DEBUG]�[39m�[0m:   	�[31mERROR: Could not find a version that satisfies the requirement numpy==2.3.0 (from versions: none)�[0m�[31m
    2026-05-09T01:58:47.1079147Z �[1m�[90m[DEBUG]�[39m�[0m:   	�[0m�[31mERROR: No matching distribution found for numpy==2.3.0�[0m�[31m
    2026-05-09T01:58:47.1458316Z �[1m�[90m[DEBUG]�[39m�[0m:   	�[0m
    2026-05-09T01:58:47.1462151Z Exception in thread background thread for pid 104989:
    2026-05-09T01:58:47.1464128Z Traceback (most recent call last):
    2026-05-09T01:58:47.1467643Z   File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
    2026-05-09T01:58:47.1476470Z     self.run()
    2026-05-09T01:58:47.1477420Z   File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/threading.py", line 982, in run
    2026-05-09T01:58:47.1479242Z     self._target(*self._args, **self._kwargs)
    2026-05-09T01:58:47.1482474Z   File "/home/runner/work/Helios/Helios/.venv/lib/python3.11/site-packages/sh.py", line 1642, in wrap
    2026-05-09T01:58:47.1483322Z     fn(*rgs, **kwargs)
    2026-05-09T01:58:47.1484219Z   File "/home/runner/work/Helios/Helios/.venv/lib/python3.11/site-packages/sh.py", line 2647, in background_thread
    2026-05-09T01:58:47.1485583Z     handle_exit_code(exit_code)
    2026-05-09T01:58:47.1486444Z   File "/home/runner/work/Helios/Helios/.venv/lib/python3.11/site-packages/sh.py", line 2338, in fn
    2026-05-09T01:58:47.1491610Z     return self.command.handle_command_exit_code(exit_code)
    2026-05-09T01:58:47.1492432Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    2026-05-09T01:58:47.1493450Z   File "/home/runner/work/Helios/Helios/.venv/lib/python3.11/site-packages/sh.py", line 823, in handle_command_exit_code
    2026-05-09T01:58:47.1494341Z     raise exc
    2026-05-09T01:58:47.1494896Z sh.ErrorReturnCode_1: 
    2026-05-09T01:58:47.1495126Z 
    2026-05-09T01:58:47.1497655Z   RAN: /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/bin/pip3 install numpy==2.3.0 --ignore-installed --disable-pip-version-check --python-version 3.11.9 --only-binary=:all: --no-deps --platform=android_24_arm64_v8a --platform=android_24_aarch64 --dry-run -q
    2026-05-09T01:58:47.1500063Z 
    2026-05-09T01:58:47.1500179Z   STDOUT:
    2026-05-09T01:58:47.1501101Z �[31mERROR: Could not find a version that satisfies the requirement numpy==2.3.0 (from versions: none)�[0m�[31m
    2026-05-09T01:58:47.1502181Z �[0m�[31mERROR: No matching distribution found for numpy==2.3.0�[0m�[31m
    2026-05-09T01:58:47.1502763Z �[0m
    2026-05-09T01:58:47.1502912Z 
    2026-05-09T01:58:47.1503025Z   STDERR:
    2026-05-09T01:58:47.1503197Z 
    2026-05-09T01:58:47.1530634Z stty: 'standard input': Inappropriate ioctl for device
    2026-05-09T01:58:47.1533615Z �[1m�[90m[DEBUG]�[39m�[0m:   �[90m->�[0m running pip3 install build[virtualenv] pip setuptools patchelf setuptools ninja meson==1.4.0 -q --upgrade�[0m
    2026-05-09T01:58:48.6511569Z �[1m�[90m[DEBUG]�[39m�[0m:   Create directory /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_android_build
    2026-05-09T01:58:48.6515217Z �[1m[INFO]�[0m:    �[36m-> directory context /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy�[39m
    2026-05-09T01:58:48.6534194Z stty: 'standard input': Inappropriate ioctl for device
    2026-05-09T01:58:48.6539298Z �[1m�[90m[DEBUG]�[39m�[0m:   �[90m->�[0m running python -m build --wheel --config-setting builddir=/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_android_build -Csetup-args=-Dblas=auto -Csetup-args=-Dlapack=auto -Csetup-args=-Dallow-noblas=False -Csetup-args=--cross-file -Csetup-args=/tmp/android.meson.cross�[0m
    2026-05-09T01:58:48.7324802Z �[1m�[90m[DEBUG]�[39m�[0m:   	�[1m* Creating isolated environment: venv+pip...�[0m
    2026-05-09T01:58:48.7366165Z �[1m�[90m[DEBUG]�[39m�[0m:   	�[1m* Installing packages in isolated environment:�[0m
    2026-05-09T01:58:48.7369933Z �[1m�[90m[DEBUG]�[39m�[0m:   	  - Cython>=3.0.6
    2026-05-09T01:58:48.7370553Z �[1m�[90m[DEBUG]�[39m�[0m:   	  - meson-python>=0.15.0
    2026-05-09T01:58:49.8681265Z �[1m�[90m[DEBUG]�[39m�[0m:   	�[1m* Getting build dependencies for wheel...�[0m
    2026-05-09T01:58:50.0412141Z �[1m�[90m[DEBUG]�[39m�[0m:   	�[1m* Building wheel...�[0m
    2026-05-09T01:58:50.7528475Z �[1m�[90m[DEBUG]�[39m�[0m:   	�[36m�[1m+ /tmp/build-env-ulwc2b3w/bin/python /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/vendored-meson/meson/meson.py setup /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_android_build -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md -Dblas=auto -Dlapack=auto -Dallow-noblas=False --cross-file /tmp/android.meson.cross --native-file=/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_android_build/meson-python-native-file.ini�[0m
    2026-05-09T01:58:50.9809457Z �[1m�[90m[DEBUG]�[39m�[0m:   	The Meson build system
    2026-05-09T01:58:50.9815715Z �[1m�[90m[DEBUG]�[39m�[0m:   	Version: 1.6.1
    2026-05-09T01:58:50.9817271Z �[1m�[90m[DEBUG]�[39m�[0m:   	Source dir: /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy
    2026-05-09T01:58:50.9819774Z �[1m�[90m[DEBUG]�[39m�[0m:   	Build dir: /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_android_build
    2026-05-09T01:58:50.9821524Z �[1m�[90m[DEBUG]�[39m�[0m:   	Build type: cross build
    2026-05-09T01:58:51.0269232Z �[1m�[90m[DEBUG]�[39m�[0m:   	Project name: NumPy
    2026-05-09T01:58:51.0272404Z �[1m�[90m[DEBUG]�[39m�[0m:   	Project version: 2.3.0
    2026-05-09T01:58:51.2153671Z �[1m�[90m[DEBUG]�[39m�[0m:   	C compiler for the host machine: /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang (clang 19.0.1 "Android (13624864, +pgo, +bolt, +lto, +mlgo, based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)")
    2026-05-09T01:58:51.2158921Z �[1m�[90m[DEBUG]�[39m�[0m:   	C linker for the host machine: /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang ld.lld 19.0.1
    2026-05-09T01:58:51.3591439Z �[1m�[90m[DEBUG]�[39m�[0m:   	C++ compiler for the host machine: /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang++ (clang 19.0.1 "Android (13624864, +pgo, +bolt, +lto, +mlgo, based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)")
    2026-05-09T01:58:51.3598186Z �[1m�[90m[DEBUG]�[39m�[0m:   	C++ linker for the host machine: /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang++ ld.lld 19.0.1
    2026-05-09T01:58:52.5551750Z �[1m�[90m[DEBUG]�[39m�[0m:   	Cython compiler for the host machine: cython (cython 3.2.4)
    2026-05-09T01:58:52.6393511Z �[1m�[90m[DEBUG]�[39m�[0m:   	C compiler for the build machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0")
    2026-05-09T01:58:52.6395533Z �[1m�[90m[DEBUG]�[39m�[0m:   	C linker for the build machine: cc ld.lld 19.0.1
    2026-05-09T01:58:53.2187269Z �[1m�[90m[DEBUG]�[39m�[0m:   	C++ compiler for the build machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0")
    2026-05-09T01:58:53.2190357Z �[1m�[90m[DEBUG]�[39m�[0m:   	C++ linker for the build machine: c++ ld.lld 19.0.1
    2026-05-09T01:58:53.3127954Z �[1m�[90m[DEBUG]�[39m�[0m:   	Cython compiler for the build machine: cython (cython 3.2.4)
    2026-05-09T01:58:53.3474191Z �[1m�[90m[DEBUG]�[39m�[0m:   	Build machine cpu family: x86_64
    2026-05-09T01:58:53.3475854Z �[1m�[90m[DEBUG]�[39m�[0m:   	Build machine cpu: x86_64
    2026-05-09T01:58:53.3478899Z �[1m�[90m[DEBUG]�[39m�[0m:   	Host machine cpu family: aarch64
    2026-05-09T01:58:53.3479605Z �[1m�[90m[DEBUG]�[39m�[0m:   	Host machine cpu: aarch64
    2026-05-09T01:58:53.3480300Z �[1m�[90m[DEBUG]�[39m�[0m:   	Target machine cpu family: aarch64
    2026-05-09T01:58:53.3480988Z �[1m�[90m[DEBUG]�[39m�[0m:   	Target machine cpu: aarch64
    2026-05-09T01:58:53.3927546Z �[1m�[90m[DEBUG]�[39m�[0m:   	
    2026-05-09T01:58:53.3932413Z �[1m�[90m[DEBUG]�[39m�[0m:   	../meson.build:40:22: ERROR: <PythonExternalProgram 'python' -> ['/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_wrappers/python']> is not a valid python or it is missing distutils
    2026-05-09T01:58:53.3934313Z �[1m�[90m[DEBUG]�[39m�[0m:   	
    2026-05-09T01:58:53.3936082Z �[1m�[90m[DEBUG]�[39m�[0m:   	A full log can be found at /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_android_build/meson-logs/meson-log.txt
    2026-05-09T01:58:53.4618902Z �[1m�[90m[DEBUG]�[39m�[0m:   	
    2026-05-09T01:58:53.4622031Z �[1m�[90m[DEBUG]�[39m�[0m:   	�[91mERROR�[0m Backend subprocess exited when trying to invoke build_wheel
    2026-05-09T01:58:53.4745137Z Exception in thread background thread for pid 105019:
    2026-05-09T01:58:53.4748860Z Traceback (most recent call last):
    2026-05-09T01:58:53.4751521Z   File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
    2026-05-09T01:58:53.4752935Z     self.run()
    2026-05-09T01:58:53.4757378Z   File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/threading.py", line 982, in run
    2026-05-09T01:58:53.4775043Z     self._target(*self._args, **self._kwargs)
    2026-05-09T01:58:53.4775948Z   File "/home/runner/work/Helios/Helios/.venv/lib/python3.11/site-packages/sh.py", line 1642, in wrap
    2026-05-09T01:58:53.4776783Z     fn(*rgs, **kwargs)
    2026-05-09T01:58:53.4777598Z   File "/home/runner/work/Helios/Helios/.venv/lib/python3.11/site-packages/sh.py", line 2647, in background_thread
    2026-05-09T01:58:53.4778470Z     handle_exit_code(exit_code)
    2026-05-09T01:58:53.4779263Z   File "/home/runner/work/Helios/Helios/.venv/lib/python3.11/site-packages/sh.py", line 2338, in fn
    2026-05-09T01:58:53.4780210Z     return self.command.handle_command_exit_code(exit_code)
    2026-05-09T01:58:53.4780799Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    2026-05-09T01:58:53.4781803Z   File "/home/runner/work/Helios/Helios/.venv/lib/python3.11/site-packages/sh.py", line 823, in handle_command_exit_code
    2026-05-09T01:58:53.4782760Z     raise exc
    2026-05-09T01:58:53.4783080Z sh.ErrorReturnCode_1: 
    2026-05-09T01:58:53.4783329Z 
    2026-05-09T01:58:53.4787123Z   RAN: /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/bin/python -m build --wheel --config-setting builddir=/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_android_build -Csetup-args=-Dblas=auto -Csetup-args=-Dlapack=auto -Csetup-args=-Dallow-noblas=False -Csetup-args=--cross-file -Csetup-args=/tmp/android.meson.cross
    2026-05-09T01:58:53.4790181Z 
    2026-05-09T01:58:53.4790260Z   STDOUT:
    2026-05-09T01:58:53.4790749Z �[1m* Creating isolated environment: venv+pip...�[0m
    2026-05-09T01:58:53.4791141Z �[1m* Installing packages in isolated environment:�[0m
    2026-05-09T01:58:53.4791680Z   - Cython>=3.0.6
    2026-05-09T01:58:53.4792006Z   - meson-python>=0.15.0
    2026-05-09T01:58:53.4792525Z �[1m* Getting build dependencies for wheel...�[0m
    2026-05-09T01:58:53.4793072Z �[1m* Building wheel...�[0m
    2026-05-09T01:58:53.4800285Z �[36m�[1m+ /tmp/build-env-ulwc2b3w/bin/python /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/vendored-meson/meson/meson.py setup /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_android_build -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md -Dblas=auto -Dlapack=auto -Dallow-noblas=False --cross-file /tmp/android.meson.cross --native-file=/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_android_build/meson-python-native-file.ini�[0m
    2026-05-09T01:58:53.4812070Z The Meson build system
    2026-05-09T01:58:53.4812430Z Version: 1.6.1
    2026-05-09T01:58:53.4813746Z Source dir: /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy
    2026-05-09T01:58:53.4815866Z Build dir: /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_android_build
    2026-05-09T01:58:53.4816975Z Build type: cross build
    2026-05-09T01:58:53.4817185Z Project name: NumPy
    2026-05-09T01:58:53.4817377Z Project version: 2.3.0
    2026-05-09T01:58:53.4819297Z C compiler for the host machine: /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang (clang 19.0.1 "Android (13624864, +pgo, +bolt, +lto, +mlgo, based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)")
    2026-05-09T01:58:53.4823039Z C linker for the host machine: /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang ld.lld 19.0.1
    2026-05-09T01:58:53.4825089Z C++ compiler for the host machine: /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang++ (clang 19.0.1 "Android (13624864, +pgo, +bolt, +lto, +mlgo, based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)")
    2026-05-09T01:58:53.4827872Z C++ linker for the host machine: /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang++ ld.lld 19.0.1
    2026-05-09T01:58:53.4828698Z Cython compiler for the host machine: cython (cython 3.2.4)
    2026-05-09T01:58:53.4829590Z C compiler for the build machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0")
    2026-05-09T01:58:53.4830461Z C linker for the build machine: cc ld.lld 19.0.1
    2026-05-09T01:58:53.4831235Z C++ compiler for the build machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0")
    2026-05-09T01:58:53.4832296Z C++ linker for the build machine: c++ ld.lld 19.0.1
    2026-05-09T01:58:53.4832928Z Cython compiler for the build machine: cython (cython 3.2.4)
    2026-05-09T01:58:53.4833640Z Build machine cpu family: x86_64
    2026-05-09T01:58:53.4834049Z Build machine cpu: x86_64
    2026-05-09T01:58:53.4834409Z Host machine cpu family: aarch64
    2026-05-09T01:58:53.4835106Z Host machine cpu: aarch64
    2026-05-09T01:58:53.4835495Z Target machine cpu family: aarch64
    2026-05-09T01:58:53.4835919Z Target machine cpu: aarch64
    2026-05-09T01:58:53.4836170Z 
    2026-05-09T01:58:53.4838502Z ../meson.build:40:22: ERROR: <PythonExternalProgram 'python' -> ['/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_wrappers/python']> is not a valid python or it is missing distutils
    2026-05-09T01:58:53.4840570Z 
    2026-05-09T01:58:53.4841544Z A full log can be found at /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_android_build/meson-logs/meson-log.txt
    2026-05-09T01:58:53.4842300Z 
    2026-05-09T01:58:53.4842603Z �[91mERROR�[0m Backend subprocess exited when trying to invoke build_wheel
    2026-05-09T01:58:53.4843012Z 
    2026-05-09T01:58:53.4843016Z 
    2026-05-09T01:58:53.4843320Z   STDERR:
    2026-05-09T01:58:53.4843497Z 
    2026-05-09T01:58:53.4843657Z Traceback (most recent call last):
    2026-05-09T01:58:53.4844260Z   File "<frozen runpy>", line 198, in _run_module_as_main
    2026-05-09T01:58:53.4845982Z   File "<frozen runpy>", line 88, in _run_code
    2026-05-09T01:58:53.4847227Z   File "/home/runner/work/Helios/Helios/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1290, in <module>
    2026-05-09T01:58:53.4848409Z     main()
    2026-05-09T01:58:53.4849437Z   File "/home/runner/work/Helios/Helios/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
    2026-05-09T01:58:53.4850554Z     ToolchainCL()
    2026-05-09T01:58:53.4851641Z   File "/home/runner/work/Helios/Helios/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 721, in __init__
    2026-05-09T01:58:53.4852769Z     getattr(self, command)(args)
    2026-05-09T01:58:53.4853892Z   File "/home/runner/work/Helios/Helios/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 104, in wrapper_func
    2026-05-09T01:58:53.4855220Z     build_dist_from_args(ctx, dist, args)
    2026-05-09T01:58:53.4856386Z   File "/home/runner/work/Helios/Helios/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 163, in build_dist_from_args
    2026-05-09T01:58:53.4857564Z     build_recipes(build_order, python_modules, ctx,
    2026-05-09T01:58:53.4858932Z   File "/home/runner/work/Helios/Helios/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 530, in build_recipes
    2026-05-09T01:58:53.4860018Z     recipe.build_arch(arch)
    2026-05-09T01:58:53.4861037Z   File "/home/runner/work/Helios/Helios/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 1590, in build_arch
    2026-05-09T01:58:53.4862075Z     super().build_arch(arch)
    2026-05-09T01:58:53.4863103Z   File "/home/runner/work/Helios/Helios/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 1401, in build_arch
    2026-05-09T01:58:53.4864137Z     shprint(
    2026-05-09T01:58:53.4865241Z   File "/home/runner/work/Helios/Helios/.buildozer/android/platform/python-for-android/pythonforandroid/logger.py", line 174, in shprint
    2026-05-09T01:58:53.4876040Z     for line in output:
    2026-05-09T01:58:53.4876925Z   File "/home/runner/work/Helios/Helios/.venv/lib/python3.11/site-packages/sh.py", line 879, in __next__
    2026-05-09T01:58:53.4877738Z     self.wait()
    2026-05-09T01:58:53.4878383Z   File "/home/runner/work/Helios/Helios/.venv/lib/python3.11/site-packages/sh.py", line 796, in wait
    2026-05-09T01:58:53.4879122Z     self.handle_command_exit_code(exit_code)
    2026-05-09T01:58:53.4880220Z   File "/home/runner/work/Helios/Helios/.venv/lib/python3.11/site-packages/sh.py", line 823, in handle_command_exit_code
    2026-05-09T01:58:53.4881087Z     raise exc
    2026-05-09T01:58:53.4881365Z sh.ErrorReturnCode_1: 
    2026-05-09T01:58:53.4881564Z 
    2026-05-09T01:58:53.4884757Z   RAN: /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/bin/python -m build --wheel --config-setting builddir=/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_android_build -Csetup-args=-Dblas=auto -Csetup-args=-Dlapack=auto -Csetup-args=-Dallow-noblas=False -Csetup-args=--cross-file -Csetup-args=/tmp/android.meson.cross
    2026-05-09T01:58:53.4888038Z 
    2026-05-09T01:58:53.4888141Z   STDOUT:
    2026-05-09T01:58:53.4888632Z �[1m* Creating isolated environment: venv+pip...�[0m
    2026-05-09T01:58:53.4889265Z �[1m* Installing packages in isolated environment:�[0m
    2026-05-09T01:58:53.4889726Z   - Cython>=3.0.6
    2026-05-09T01:58:53.4890029Z   - meson-python>=0.15.0
    2026-05-09T01:58:53.4890479Z �[1m* Getting build dependencies for wheel...�[0m
    2026-05-09T01:58:53.4890976Z �[1m* Building wheel...�[0m
    2026-05-09T01:58:53.4906253Z �[36m�[1m+ /tmp/build-env-ulwc2b3w/bin/python /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/vendored-meson/meson/meson.py setup /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_android_build -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md -Dblas=auto -Dlapack=auto -Dallow-noblas=False --cross-file /tmp/android.meson.cross --native-file=/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_android_build/meson-python-native-file.ini�[0m
    2026-05-09T01:58:53.4911582Z The Meson build system
    2026-05-09T01:58:53.4911889Z Version: 1.6.1
    2026-05-09T01:58:53.4912804Z Source dir: /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy
    2026-05-09T01:58:53.4914509Z Build dir: /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_android_build
    2026-05-09T01:58:53.4915784Z Build type: cross build
    2026-05-09T01:58:53.4916113Z Project name: NumPy
    2026-05-09T01:58:53.4916418Z Project version: 2.3.0
    2026-05-09T01:58:53.4918756Z C compiler for the host machine: /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang (clang 19.0.1 "Android (13624864, +pgo, +bolt, +lto, +mlgo, based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)")
    2026-05-09T01:58:53.4921861Z C linker for the host machine: /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang ld.lld 19.0.1
    2026-05-09T01:58:53.4924913Z C++ compiler for the host machine: /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang++ (clang 19.0.1 "Android (13624864, +pgo, +bolt, +lto, +mlgo, based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)")
    2026-05-09T01:58:53.4927763Z C++ linker for the host machine: /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang++ ld.lld 19.0.1
    2026-05-09T01:58:53.4929001Z Cython compiler for the host machine: cython (cython 3.2.4)
    2026-05-09T01:58:53.4929675Z C compiler for the build machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0")
    2026-05-09T01:58:53.4930467Z C linker for the build machine: cc ld.lld 19.0.1
    2026-05-09T01:58:53.4931116Z C++ compiler for the build machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0")
    2026-05-09T01:58:53.4931786Z C++ linker for the build machine: c++ ld.lld 19.0.1
    2026-05-09T01:58:53.4932315Z Cython compiler for the build machine: cython (cython 3.2.4)
    2026-05-09T01:58:53.4932807Z Build machine cpu family: x86_64
    2026-05-09T01:58:53.4933152Z Build machine cpu: x86_64
    2026-05-09T01:58:53.4933462Z Host machine cpu family: aarch64
    2026-05-09T01:58:53.4933793Z Host machine cpu: aarch64
    2026-05-09T01:58:53.4934200Z Target machine cpu family: aarch64
    2026-05-09T01:58:53.4934545Z Target machine cpu: aarch64
    2026-05-09T01:58:53.4934905Z 
    2026-05-09T01:58:53.4936258Z ../meson.build:40:22: ERROR: <PythonExternalProgram 'python' -> ['/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_wrappers/python']> is not a valid python or it is missing distutils
    2026-05-09T01:58:53.4937743Z 
    2026-05-09T01:58:53.4938704Z A full log can be found at /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_android_build/meson-logs/meson-log.txt
    

    these logs? or do you need logs from numpy/p4a_android_build/meson-logs/meson-log.txt?

  5. T-Dynamos commented on May 9, 2026

    @T-Dynamos
    Member

    Ah yes also logs from numpy/p4a_android_build/meson-logs/meson-log.txt if possible.

  6. GvozdevLeonid commented on May 9, 2026

    @GvozdevLeonid
    ContributorAuthor

    @T-Dynamos

    Build started at 2026-05-09T12:41:07.721073
    Main binary: /tmp/build-env-wngzb8re/bin/python
    Build Options: -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md -Dblas=auto -Dlapack=auto -Dallow-noblas=False --cross-file=/tmp/android.meson.cross --native-file=/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_android_build/meson-python-native-file.ini
    Python system: Linux
    The Meson build system
    Version: 1.6.1
    Source dir: /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy
    Build dir: /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_android_build
    Build type: cross build
    Running command: /tmp/build-env-wngzb8re/bin/python /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/numpy/_build_utils/gitversion.py
    --- stdout ---
    2.3.0
    
    --- stderr ---
    
    
    Project name: NumPy
    Project version: 2.3.0
    -----------
    Detecting compiler via: `/home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang --version` -> 0
    stdout:
    Android (13624864, +pgo, +bolt, +lto, +mlgo, based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)
    Target: aarch64-unknown-linux-android24
    Thread model: posix
    InstalledDir: /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin
    -----------
    Running command: -x c -E -dM -
    -----
    -----------
    Detecting linker via: `/home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang -Wl,--version -L/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/libs_collections/Helios/arm64-v8a -L/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_24/python3/android-build -lpython3.11` -> 0
    stdout:
    LLD 19.0.1 (compatible with GNU linkers)
    -----------
    -----------
    Detecting LLD linker via: `/home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang -Wl,-v -L/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/libs_collections/Helios/arm64-v8a -L/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_24/python3/android-build -lpython3.11` -> 1
    stdout:
    LLD 19.0.1 (compatible with GNU linkers)
    -----------
    stderr:
    ld.lld: error: undefined symbol: main
    >>> referenced by crtbegin.c
    >>>               /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android/24/crtbegin_dynamic.o:(_start_main)
    >>> referenced by crtbegin.c
    >>>               /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android/24/crtbegin_dynamic.o:(_start_main)
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    -----------
    Sanity testing C compiler: /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang
    Is cross compiler: True.
    Sanity check compiler command line: /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang sanitycheckc.c -o sanitycheckc_cross.exe -target aarch64-linux-android24 -fomit-frame-pointer -march=armv8-a -fPIC -I/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_24/python3/android-build/android-root/include/python3.11 -DANDROID -I/home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_24/python3/android-build/android-root/include/python3.11 -D_FILE_OFFSET_BITS=64 -c
    Sanity check compile stdout:
    
    -----
    Sanity check compile stderr:
    
    -----
    C compiler for the host machine: /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang (clang 19.0.1 "Android (13624864, +pgo, +bolt, +lto, +mlgo, based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)")
    C linker for the host machine: /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang ld.lld 19.0.1
    -----------
    Detecting archiver via: `/home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar --version` -> 0
    stdout:
    LLVM (http://llvm.org/):
      LLVM version 19.0.1 (/mnt/disks/build-disk/src/android/llvm-r530567/out/llvm-project/llvm 97a699bf4812a18fb657c2779f5296a4ab2694d2)
      Optimized build.
    -----------
    -----------
    Detecting compiler via: `/home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang++ --version` -> 0
    stdout:
    Android (13624864, +pgo, +bolt, +lto, +mlgo, based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)
    Target: aarch64-unknown-linux-android24
    Thread model: posix
    InstalledDir: /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin
    -----------
    Running command: -x c++ -E -dM -
    -----
    -----------
    Detecting linker via: `/home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang++ -Wl,--version -L/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/libs_collections/Helios/arm64-v8a -L/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_24/python3/android-build -lpython3.11` -> 0
    stdout:
    LLD 19.0.1 (compatible with GNU linkers)
    -----------
    -----------
    Detecting LLD linker via: `/home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang++ -Wl,-v -L/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/libs_collections/Helios/arm64-v8a -L/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_24/python3/android-build -lpython3.11` -> 1
    stdout:
    LLD 19.0.1 (compatible with GNU linkers)
    -----------
    stderr:
    ld.lld: error: undefined symbol: main
    >>> referenced by crtbegin.c
    >>>               /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android/24/crtbegin_dynamic.o:(_start_main)
    >>> referenced by crtbegin.c
    >>>               /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android/24/crtbegin_dynamic.o:(_start_main)
    clang++: error: linker command failed with exit code 1 (use -v to see invocation)
    -----------
    Sanity testing C++ compiler: /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang++
    Is cross compiler: True.
    Sanity check compiler command line: /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang++ sanitycheckcpp.cc -o sanitycheckcpp_cross.exe -target aarch64-linux-android24 -fomit-frame-pointer -march=armv8-a -fPIC -I/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/libopenblas/arm64-v8a__ndk_target_24/libopenblas/build -DANDROID -I/home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_24/python3/android-build/android-root/include/python3.11 -D_FILE_OFFSET_BITS=64 -c
    Sanity check compile stdout:
    
    -----
    Sanity check compile stderr:
    
    -----
    C++ compiler for the host machine: /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang++ (clang 19.0.1 "Android (13624864, +pgo, +bolt, +lto, +mlgo, based on r530567e) clang version 19.0.1 (https://android.googlesource.com/toolchain/llvm-project 97a699bf4812a18fb657c2779f5296a4ab2694d2)")
    C++ linker for the host machine: /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang++ ld.lld 19.0.1
    -----------
    Detecting compiler via: `cython -V` -> 0
    stdout:
    Cython version 3.2.4
    -----------
    stderr:
    Cython version 3.2.4
    -----------
    Running compile:
    Working directory:  /tmp/tmplamxy_uc
    Code:
    print("hello world")
    -----------
    Command line: `cython /tmp/tmplamxy_uc/testfile.pyx -o /tmp/tmplamxy_uc/output.exe --fast-fail` -> 0
    Cython compiler for the host machine: cython (cython 3.2.4)
    -----------
    Detecting compiler via: `cc --version` -> 0
    stdout:
    cc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0
    Copyright (C) 2021 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    -----------
    Running command: -cpp -x c -E -dM -
    -----
    -----------
    Detecting linker via: `cc -Wl,--version` -> 0
    stdout:
    LLD 19.0.1 (compatible with GNU linkers)
    -----------
    stderr:
    collect2 version 11.4.0
    /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/ld -plugin /usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper -plugin-opt=-fresolution=/tmp/ccfgiCGF.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z now -z relro /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/11/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/11 -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/11/../../.. --version -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/11/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crtn.o
    -----------
    -----------
    Detecting LLD linker via: `cc -Wl,-v` -> 1
    stdout:
    LLD 19.0.1 (compatible with GNU linkers)
    -----------
    stderr:
    collect2 version 11.4.0
    /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/ld -plugin /usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper -plugin-opt=-fresolution=/tmp/ccSvjAup.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z now -z relro /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/11/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/11 -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/11/../../.. -v -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/11/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crtn.o
    ld: error: undefined symbol: main
    >>> referenced by /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/Scrt1.o:(_start)
    collect2: error: ld returned 1 exit status
    -----------
    Sanity testing C compiler: cc
    Is cross compiler: False.
    Sanity check compiler command line: cc sanitycheckc.c -o sanitycheckc.exe -D_FILE_OFFSET_BITS=64
    Sanity check compile stdout:
    
    -----
    Sanity check compile stderr:
    
    -----
    Running test binary command:  /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_android_build/meson-private/sanitycheckc.exe
    C compiler for the build machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0")
    C linker for the build machine: cc ld.lld 19.0.1
    -----------
    Detecting archiver via: `gcc-ar --version` -> 0
    stdout:
    GNU ar (GNU Binutils for Ubuntu) 2.38
    Copyright (C) 2022 Free Software Foundation, Inc.
    This program is free software; you may redistribute it under the terms of
    the GNU General Public License version 3 or (at your option) any later version.
    This program has absolutely no warranty.
    -----------
    -----------
    Detecting compiler via: `c++ --version` -> 0
    stdout:
    c++ (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0
    Copyright (C) 2021 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    -----------
    Running command: -cpp -x c++ -E -dM -
    -----
    -----------
    Detecting linker via: `c++ -Wl,--version` -> 0
    stdout:
    LLD 19.0.1 (compatible with GNU linkers)
    -----------
    stderr:
    collect2 version 11.4.0
    /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/ld -plugin /usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper -plugin-opt=-fresolution=/tmp/ccJMPX9u.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z now -z relro /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/11/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/11 -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/11/../../.. --version -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/11/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crtn.o
    -----------
    -----------
    Detecting LLD linker via: `c++ -Wl,-v` -> 1
    stdout:
    LLD 19.0.1 (compatible with GNU linkers)
    -----------
    stderr:
    collect2 version 11.4.0
    /home/runner/.buildozer/android/platform/android-ndk-r28c/toolchains/llvm/prebuilt/linux-x86_64/bin/ld -plugin /usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper -plugin-opt=-fresolution=/tmp/cciVvKCQ.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z now -z relro /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/11/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/11 -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/11/../../.. -v -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/11/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crtn.o
    ld: error: undefined symbol: main
    >>> referenced by /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/Scrt1.o:(_start)
    collect2: error: ld returned 1 exit status
    -----------
    Sanity testing C++ compiler: c++
    Is cross compiler: False.
    Sanity check compiler command line: c++ sanitycheckcpp.cc -o sanitycheckcpp.exe -D_FILE_OFFSET_BITS=64
    Sanity check compile stdout:
    
    -----
    Sanity check compile stderr:
    
    -----
    Running test binary command:  /home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_android_build/meson-private/sanitycheckcpp.exe
    C++ compiler for the build machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0")
    C++ linker for the build machine: c++ ld.lld 19.0.1
    -----------
    Detecting compiler via: `cython -V` -> 0
    stdout:
    Cython version 3.2.4
    -----------
    stderr:
    Cython version 3.2.4
    -----------
    Using cached compile:
    Cached command line:  cython /tmp/tmplamxy_uc/testfile.pyx -o /tmp/tmplamxy_uc/output.exe --fast-fail 
    
    Code:
     print("hello world")
    Cached compiler stdout:
     
    Cached compiler stderr:
     
    Cython compiler for the build machine: cython (cython 3.2.4)
    Build machine cpu family: x86_64
    Build machine cpu: x86_64
    Host machine cpu family: aarch64
    Host machine cpu: aarch64
    Target machine cpu family: aarch64
    Target machine cpu: aarch64
    Could not introspect Python (['/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_wrappers/python', '/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/vendored-meson/meson/mesonbuild/scripts/python_info.py']): exit code 1
    Program stdout:
    
    
    Program stderr:
    
    Traceback (most recent call last):
      File "/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_wrappers/python", line 80, in <module>
        sys.exit(WHITELIST[name]())
                 ^^^^^^^^^^^^^^^^^
      File "/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_wrappers/python", line 27, in handle_python_info
        sysconfig_file = glob(join(prefix, "lib/python3.14/_sysconfigdata*.py"))[0]
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
    IndexError: list index out of range
    
    
    ../meson.build:40:22: ERROR: <PythonExternalProgram 'python' -> ['/home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/other_builds/numpy/arm64-v8a__ndk_target_24/numpy/p4a_wrappers/python']> is not a valid python or it is missing distutils
    
    

    Yes. The error is visible here. I still don’t understand where to dig. I'll try to figure it out

  7. T-Dynamos commented on May 9, 2026

    @T-Dynamos
    Member
        sysconfig_file = glob(join(prefix, "lib/python3.14/_sysconfigdata*.py"))[0]

    AH I see, I accidentally hard-coded this string: "lib/python3.14/_sysconfigdata*.py" should be 3.11 here instead.

    sysconfig_file = glob(join(prefix, "lib/python3.14/_sysconfigdata*.py"))[0]

    Should be this instead:

        ver_python = f"python{C.PYTHON_MAJOR_VERSION}.{C.PYTHON_MINOR_VERSION}"
    

    @GvozdevLeonid Thanks for the report, if you do get time to fix it consider submitting a PR.

  8. added
    Priority: HighAfter critical issues are fixed, these should be dealt with before any further issues.
    on May 9, 2026
  9. GvozdevLeonid commented on May 9, 2026

    @GvozdevLeonid
    ContributorAuthor

    @T-Dynamos thanks. I will submit pr

  10. added a commit that references this issue on May 9, 2026
    fb85205
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: HighAfter critical issues are fixed, these should be dealt with before any further issues.easy

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions