Skip to content

Buildozer not compiling when selecting minAPI 34 or 35 #1931

@francescopelizza-omega

Description

@francescopelizza-omega

Google is going to block any app that will not be updated on API and minapi 35 by 31st of August.

So i moved on buildozer to compile from minapi 33 (which works) wo API 35 (either 34) and buildozer crashes. I tried manually to solve issues with the freetype and docwriter packages (the two packages giving problems), but still no chance to work. I manually installed docwriter, removed and installed again freetype, anyway compiling with target API 35 and minapi 33 works just smooth and fine. If minapi gets raised above 33, I always get the same compiling error.

So what's the matter?

Does Buildozer needs an upgrade? I do have 1.5.0 (the latest so far).

I will pase the message error here. Thanks

[INFO]: Configure args are:
---host=aarch64-linux-android
---with-zlib=yes
---disable-static
---with-png=no
---without-bzip2
---with-harfbuzz=no
---prefix=/home/phoenix/buildozer_builds/bldz_remnutrition/android/platform/build-arm64-v8a/build/other_builds/freetype/arm64-v8a__ndk_target_35/freetype
---enable-shared
[INFO]: -> directory context /home/phoenix/buildozer_builds/bldz_remnutrition/android/platform/build-arm64-v8a/build/other_builds/freetype/arm64-v8a__ndk_target_35/freetype
[DEBUG]: -> running configure --host=aarch64-linux-android --with-zlib=yes --disable-static --with-png=no --without-bzip2 --with-harfbuzz=no --prefix=/home/phoenix/buildozer_builds/bldz_remnutrition/android/platform/build-arm64-v8a/build/other_builds/freetype/arm64-v8a__ndk_target_35/freetype --enable-shared
[DEBUG]:
[DEBUG]: FreeType build system -- automatic system detection
[DEBUG]:
[DEBUG]: The following settings are used:
[DEBUG]:
[DEBUG]: platform unix
[DEBUG]: compiler /home/phoenix/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target aarch64-linux-android35 -fomit-frame-pointer -march=armv8-a -fPIC
[DEBUG]: configuration directory ./builds/unix
[DEBUG]: configuration rules ./builds/unix/unix.mk
[DEBUG]:
[DEBUG]: If this does not correspond to your system or settings please remove the file
[DEBUG]: [config.mk](http://config.mk/)' from this directory then read the INSTALL file for help. [DEBUG]: [DEBUG]: Otherwise, simply type make -j32' again to build the library,
[DEBUG]: or make -j32 refdoc' to build the API reference (this needs python >= 2.6). [DEBUG]: [DEBUG]: cd builds/unix; \ [DEBUG]: ./configure '--host=aarch64-linux-android' '--with-zlib=yes' '--disable-static' '--with-png=no' '--without-bzip2' '--with-harfbuzz=no' '--prefix=/home/phoenix/buildozer_builds/bldz_remnutrition/android/platform/build-arm64-v8a/build/other_builds/freetype/arm64-v8a__ndk_target_35/freetype' '--enable-shared' [DEBUG]: checking build system type... x86_64-pc-linux-gnu [DEBUG]: checking host system type... aarch64-unknown-linux-android [DEBUG]: checking for aarch64-linux-android-gcc... /home/phoenix/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target aarch64-linux-android35 -fomit-frame-pointer -march=armv8-a -fPIC [DEBUG]: checking whether the C compiler works... no [DEBUG]: configure: error: in /home/phoenix/buildozer_builds/bldz_remnutrition/android/platform/build-arm64-v8a/build/other_builds/freetype/arm64-v8a__ndk_target_35/freetype/builds/unix':
[DEBUG]: configure: error: C compiler cannot create executables
[DEBUG]: See `config.log' for more details
[DEBUG]: make: *** [builds/unix/detect.mk:91: setup] Error 77
Exception in thread background thread for pid 172790:
Traceback (most recent call last):
File "/usr/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
self.run()
File "/usr/lib/python3.12/threading.py", line 1010, in run
self._target(*self._args, **self._kwargs)
File "/home/phoenix/kivy/buildozer_0.11/lib/python3.12/site-packages/sh.py", line 1642, in wrap
fn(*rgs, **kwargs)
File "/home/phoenix/kivy/buildozer_0.11/lib/python3.12/site-packages/sh.py", line 2647, in background_thread
handle_exit_code(exit_code)
File "/home/phoenix/kivy/buildozer_0.11/lib/python3.12/site-packages/sh.py", line 2338, in fn
return self.command.handle_command_exit_code(exit_code)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/phoenix/kivy/buildozer_0.11/lib/python3.12/site-packages/sh.py", line 823, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_2:

RAN: /home/phoenix/buildozer_builds/bldz_remnutrition/android/platform/build-arm64-v8a/build/other_builds/freetype/arm64-v8a__ndk_target_35/freetype/configure --host=aarch64-linux-android --with-zlib=yes --disable-static --with-png=no --without-bzip2 --with-harfbuzz=no --prefix=/home/phoenix/buildozer_builds/bldz_remnutrition/android/platform/build-arm64-v8a/build/other_builds/freetype/arm64-v8a__ndk_target_35/freetype --enable-shared

STDOUT:

FreeType build system -- automatic system detection

The following settings are used:

platform unix
compiler /home/phoenix/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target aarch64-linux-android35 -fomit-frame-pointer -march=armv8-a -fPIC
configuration directory ./builds/unix
configuration rules ./builds/unix/unix.mk

If this does not correspond to your system or settings please remove the file
`config.mk' from this directory then read the INSTALL file for help.

Otherwise, simply type make -j32' again to build the library, or make -j32 refdoc' to build the API reference (this needs python >= 2.6).

cd builds/unix;
./configure '--host=aarch64-linux-android' '--with-zlib=yes' '--disable-static' '--with-png=no' '--without-bzip2' '--with-harfbuzz=no' '--prefix=/home/phoenix/buildozer_builds/bldz_remnutrition/android/platform/build-arm64-v8a/build/other_builds/freetype/arm64-v8a__ndk_target_35/freetype' '--enable-shared'
checking build system type... x86_64-pc-linux-gnu
checking host system type... aarch64-unknown-linux-android
checking for aarch64-linux-android-gcc... /home/phoenix/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target aarch64-linux-android35 -fomit-frame-pointer -march=armv8-a -fPIC
checking whether the C compiler works... no
configure: error: in /home/phoenix/buildozer_builds/bldz_remnutrition/android/platform/build-arm64-v8a/build/other_builds/freetype/arm64-v8a__ndk_target_35/freetype/builds/unix': configure: error: C compiler cannot create executables See config.log' for more details
make: *** [builds/unix/detect.mk:91: setup] Error 77

STDERR:

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/home/phoenix/buildozer_builds/bldz_remnutrition/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1246, in
main()
File "/home/phoenix/buildozer_builds/bldz_remnutrition/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
ToolchainCL()
File "/home/phoenix/buildozer_builds/bldz_remnutrition/android/platform/python-for-android/pythonforandroid/toolchain.py", line 677, in init
getattr(self, command)(args)
File "/home/phoenix/buildozer_builds/bldz_remnutrition/android/platform/python-for-android/pythonforandroid/toolchain.py", line 104, in wrapper_func
build_dist_from_args(ctx, dist, args)
File "/home/phoenix/buildozer_builds/bldz_remnutrition/android/platform/python-for-android/pythonforandroid/toolchain.py", line 163, in build_dist_from_args
build_recipes(build_order, python_modules, ctx,
File "/home/phoenix/buildozer_builds/bldz_remnutrition/android/platform/python-for-android/pythonforandroid/build.py", line 504, in build_recipes
recipe.build_arch(arch)
File "/home/phoenix/buildozer_builds/bldz_remnutrition/android/platform/python-for-android/pythonforandroid/recipes/freetype/init.py", line 114, in build_arch
shprint(configure, *config_args, _env=env)
File "/home/phoenix/buildozer_builds/bldz_remnutrition/android/platform/python-for-android/pythonforandroid/logger.py", line 167, in shprint
for line in output:
File "/home/phoenix/kivy/buildozer_0.11/lib/python3.12/site-packages/sh.py", line 879, in next
self.wait()
File "/home/phoenix/kivy/buildozer_0.11/lib/python3.12/site-packages/sh.py", line 796, in wait
self.handle_command_exit_code(exit_code)
File "/home/phoenix/kivy/buildozer_0.11/lib/python3.12/site-packages/sh.py", line 823, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_2:

RAN: /home/phoenix/buildozer_builds/bldz_remnutrition/android/platform/build-arm64-v8a/build/other_builds/freetype/arm64-v8a__ndk_target_35/freetype/configure --host=aarch64-linux-android --with-zlib=yes --disable-static --with-png=no --without-bzip2 --with-harfbuzz=no --prefix=/home/phoenix/buildozer_builds/bldz_remnutrition/android/platform/build-arm64-v8a/build/other_builds/freetype/arm64-v8a__ndk_target_35/freetype --enable-shared

STDOUT:

FreeType build system -- automatic system detection

The following settings are used:

platform unix
compiler /home/phoenix/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target aarch64-linux-android35 -fomit-frame-pointer -march=armv8-a -fPIC
configuration directory ./builds/unix
configuration rules ./builds/unix/unix.mk

If this does not correspond to your system or settings please remove the file
`config.mk' from this directory then read the INSTALL file for help.

Otherwise, simply type make -j32' again to build the library, or make -j32 refdoc' to build the API reference (this needs python >= 2.6).

cd builds/unix;
./configure '--host=aarch64-linux-android' '--with-zlib=yes' '--disable-static' '--with-png=no' '--without-bzip2' '--with-harfbuzz=no' '--prefix=/home/phoenix/buildozer_builds/bldz_remnutrition/android/platform/build-arm64-v8a/build/other_builds/freetype/arm64-v8a__ndk_target_35/freetype' '--enable-shared'
checking build system type... x86_64-pc-linux-gnu
checking host system type... aarch64-unknown-linux-android
checking for aarch64-linux-android-gcc... /home/phoenix/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target aarch64-linux-android35 -fomit-frame-pointer -march=armv8-a -fPIC
checking whether the C compiler works... no
configure: error: in /home/phoenix/buildozer_builds/bldz_remnutrition/android/platform/build-arm64-v8a/build/other_builds/freetype/arm64-v8a__ndk_target_35/freetype/builds/unix': configure: error: C compiler cannot create executables See config.log' for more details
make: *** [builds/unix/detect.mk:91: setup] Error 77

STDERR:

Command failed: ['/home/phoenix/kivy/buildozer_0.11/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=REM_Nutrition', '--bootstrap=sdl2', '--requirements=python3,kivy==2.3.1,certifi,plyer,pillow,pytz,pyjnius,android,android-notify', '--arch=arm64-v8a', '--copy-libs', '--color=always', '--storage-dir=/home/phoenix/buildozer_builds/bldz_remnutrition/android/platform/build-arm64-v8a', '--ndk-api=35', '--use-setup-py', '--debug']

ENVIRONMENT:

SHELL = '/bin/bash'

SESSION_MANAGER = 'local/godfather:@/tmp/.ICE-unix/4972,unix/godfather:/tmp/.ICE-unix/4972'

QT_ACCESSIBILITY = '1'

P4A_RELEASE_KEYSTORE_PASSWD = ''

COLORTERM = 'truecolor'

XDG_CONFIG_DIRS = '/etc/xdg/xdg-ubuntu:/etc/xdg'

XDG_MENU_PREFIX = 'gnome-'

GNOME_DESKTOP_SESSION_ID = 'this-is-deprecated'

LC_ADDRESS = 'it_IT.UTF-8'

GNOME_SHELL_SESSION_MODE = 'ubuntu'

LC_NAME = 'it_IT.UTF-8'

SSH_AUTH_SOCK = '/run/user/1000/keyring/ssh'

MEMORY_PRESSURE_WRITE = 'c29tZSAyMDAwMDAgMjAwMDAwMAA='

P4A_RELEASE_KEYALIAS = 'skytronix'

XMODIFIERS = '@im=ibus'

DESKTOP_SESSION = 'ubuntu'

LC_MONETARY = 'it_IT.UTF-8'

GTK_MODULES = 'gail:atk-bridge'

DBUS_STARTER_BUS_TYPE = 'session'

PWD = '/home/phoenix/apps/rem-nutrition-kivy'

LOGNAME = 'phoenix'

XDG_SESSION_DESKTOP = 'ubuntu'

XDG_SESSION_TYPE = 'x11'

GPG_AGENT_INFO = '/run/user/1000/gnupg/S.gpg-agent:0:1'

SYSTEMD_EXEC_PID = '4972'

P4A_RELEASE_KEYALIAS_PASSWD = ''

XAUTHORITY = '/run/user/1000/gdm/Xauthority'

WINDOWPATH = '2'

HOME = '/home/phoenix'

USERNAME = 'phoenix'

LC_PAPER = 'it_IT.UTF-8'

LANG = 'en_US.UTF-8'

LS_COLORS = 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arc=01;31:.arj=01;31:.taz=01;31:.lha=01;31:.lz4=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.tzo=01;31:.t7z=01;31:.zip=01;31:.z=01;31:.dz=01;31:.gz=01;31:.lrz=01;31:.lz=01;31:.lzo=01;31:.xz=01;31:.zst=01;31:.tzst=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.alz=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.cab=01;31:.wim=01;31:.swm=01;31:.dwm=01;31:.esd=01;31:.avif=01;35:.jpg=01;35:.jpeg=01;35:.mjpg=01;35:.mjpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.webp=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.m4a=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.oga=00;36:.opus=00;36:.spx=00;36:.xspf=00;36:~=00;90:#=00;90:.bak=00;90:.crdownload=00;90:.dpkg-dist=00;90:.dpkg-new=00;90:.dpkg-old=00;90:.dpkg-tmp=00;90:.old=00;90:.orig=00;90:.part=00;90:.rej=00;90:.rpmnew=00;90:.rpmorig=00;90:.rpmsave=00;90:.swp=00;90:.tmp=00;90:.ucf-dist=00;90:.ucf-new=00;90:*.ucf-old=00;90:'

XDG_CURRENT_DESKTOP = 'ubuntu:GNOME'

VIRTUAL_ENV = '/home/phoenix/kivy/buildozer_0.11'

MEMORY_PRESSURE_WATCH = '/sys/fs/cgroup/user.slice/user-1000.slice/[email protected]/app.slice/app-gnome\x2dsession\x2dmanager.slice/[email protected]/memory.pressure'

VTE_VERSION = '7600'

GNOME_TERMINAL_SCREEN = '/org/gnome/Terminal/screen/dc861b11_7241_4d8e_826a_6a4755cc8cd7'

LESSCLOSE = '/usr/bin/lesspipe %s %s'

XDG_SESSION_CLASS = 'user'

TERM = 'xterm-256color'

LC_IDENTIFICATION = 'it_IT.UTF-8'

P4A_RELEASE_KEYSTORE = '/home/phoenix/keystores/skytronix.keystore'

LESSOPEN = '| /usr/bin/lesspipe %s'

USER = 'phoenix'

GNOME_TERMINAL_SERVICE = ':1.101'

DISPLAY = ':1'

SHLVL = '1'

GSM_SKIP_SSH_AGENT_WORKAROUND = 'true'

LC_TELEPHONE = 'it_IT.UTF-8'

QT_IM_MODULE = 'ibus'

LC_MEASUREMENT = 'it_IT.UTF-8'

DBUS_STARTER_ADDRESS = 'unix:path=/run/user/1000/bus,guid=49f7a10244e9bba2246250c868662b2e'

VIRTUAL_ENV_PROMPT = '(buildozer_0.11) '

XDG_RUNTIME_DIR = '/run/user/1000'

PS1 = ('(buildozer_0.11) \[\e]0;\u@\h: '

'\w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ')

DEBUGINFOD_URLS = 'https://debuginfod.ubuntu.com/ '

LC_TIME = 'it_IT.UTF-8'

XDG_DATA_DIRS = '/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop'

PATH = '/home/phoenix/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/phoenix/kivy/buildozer_0.11/bin:/home/phoenix/Software/google-cloud-sdk/bin:/home/phoenix/Software/qe-7.3.1/bin:/home/phoenix/ALPHA/PyGUI/REM/:/home/phoenix/ALPHA/PyGUI/Prova/:/home/phoenix/ALPHA/KUBRIC:/home/phoenix/KRYPTOS/analytics:/home/phoenix/ALPHA/ANALYTICS:/home/phoenix/ALPHA/SHELL:/home/phoenix/ALPHA/MATHE:/home/phoenix/ALPHA/ALPHA:/home/phoenix/ALPHA/OMEGA:/home/phoenix/.cargo/bin:/home/phoenix/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/phoenix/.local/share/JetBrains/Toolbox/scripts:/home/phoenix/.local/bin/'

GDMSESSION = 'ubuntu'

DBUS_SESSION_BUS_ADDRESS = 'unix:path=/run/user/1000/bus,guid=49f7a10244e9bba2246250c868662b2e'

LC_NUMERIC = 'it_IT.UTF-8'

_ = '/home/phoenix/kivy/buildozer_0.11/bin/buildozer'

PACKAGES_PATH = '/home/phoenix/.buildozer/android/packages'

ANDROIDSDK = '/home/phoenix/.buildozer/android/platform/android-sdk'

ANDROIDNDK = '/home/phoenix/.buildozer/android/platform/android-ndk-r25b'

ANDROIDAPI = '36'

ANDROIDMINAPI = '35'

Buildozer failed to execute the last command

The error might be hidden in the log above this error

Please read the full log, and search for it before

raising an issue with buildozer itself.

In case of a bug report, please add a full log with log_level = 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions