kivy / python-for-android

Turn your Python application into an Android APK
https://python-for-android.readthedocs.io
MIT License
8.32k stars 1.84k forks source link

App build failing on MacOS #1647

Closed OptimusGREEN closed 5 years ago

OptimusGREEN commented 5 years ago

Versions

Description

App fails to build and seems to error out at the "doing some hacky stuff" point.

buildozer.spec

Command:

buildozer android debug

Spec file:

[app]

#########################################################
#     Python2
#
requirements = python2,kivy==1.10.1,pyopenssl,openssl,urllib3,android,pyjnius,dropbox,requests==2.20.0,chardet,certifi,idna

#
#     Python3
#
#requirements = python3,kivy==1.10.1,pyopenssl,openssl,urllib3,android,pyjnius,dropbox,requests==2.20.0,chardet,certifi,idna
#########################################################

# SHORTCUTS

#########################################################

#     API 19

#android.api = 19
#android.ndk = 16b

#########################################################

#     API 27

android.api = 27
android.gradle_dependencies = "com.android.support:support-compat:26.0.0-alpha1", 'com.android.support:support-fragment:26.0.0-alpha1', 'com.android.support:appcompat-v7:26.0.0-alpha1'
android.add_src = ~/Development/Git/ogleavetracker/optileave/libs/java/*.java
android.add_jars = ./libs/java/*.jar

#########################################################

android.permissions = WRITE_EXTERNAL_STORAGE, INTERNET
android.minapi = 21
android.sdk = 23
android.ndk = 17c
#android.ndk_api = 21
android.ndk_path = ~/Development/Android/NDK/android-ndk-r17c

# (list) Java classes to add as activities to the manifest.
#android.add_activites = com.example.ExampleActivity

#p4a.source_dir = /Users/john/Development/Git/python-for-android/
#android.gradle_dependencies = 'com.google.android.gms:play-services-ads:11.0.4','com.android.support:appcompat-v7:25.3.1'
#android.gradle_dependencies = 'com.google.android.gms:play-services-ads:15.0.0','com.android.support:appcompat-v7:26.1.0'

# Official KivMob
#p4a.source_dir = /Users/john/Development/python-for-android-admob
#p4a.bootstrap = sdl2-admob

#########################################################

# (str) Title of your application
title = OptiLEAVE

# (str) Package name
package.name = optileave.premium

# (str) Package domain (needed for android/ios packaging)
package.domain = com.optimusgreen

# (str) Source code where the main.py live
source.dir = .

# (list) Source files to include (let empty to include all the files)
source.include_exts = py,png,jpg,kv,atlas,ttf

# (list) List of inclusions using pattern matching
#source.include_patterns = assets/*,images/*.png

# (list) Source files to exclude (let empty to not exclude anything)
#source.exclude_exts = spec

# (list) List of directory to exclude (let empty to not exclude anything)
#source.exclude_dirs = tests, bin

# (list) List of exclusions using pattern matching
#source.exclude_patterns = license,images/*/*.jpg

# (str) Application versioning (method 1)
#version = 0.1.6

# (str) Application versioning (method 2)
version.regex = app_version_code = ['"](.*)['"]
version.filename = %(source.dir)s/libs/modules/strings.py

# (list) Application requirements
# comma seperated e.g. requirements = sqlite3,kivy
#requirements = kivy==1.10.1,android
#requirements = kivy==1.10.1,android,python3crystax==3.6

# (str) Custom source folders for requirements
# Sets custom source for any requirements with recipes
# requirements.source.kivy = ../../kivy

# (list) Garden requirements
# garden_requirements = navigationdrawer

# (str) Presplash of the application
presplash.filename = %(source.dir)s/art/splash.png

# (str) Icon of the application
icon.filename = %(source.dir)s/art/icon.png

# (str) Supported orientation (one of landscape, portrait or all)
orientation = portrait

# (list) List of service to declare
#services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY

#
# OSX Specific
#

#
# author = © Copyright Info

# change the major version of python used by the app
#osx.python_version = 3

# Kivy version to use
#osx.kivy_version = 1.10.1

#
# Android specific
#

# (bool) Indicate if the application should be fullscreen or not
fullscreen = 0

# (string) Presplash background color (for new android toolchain)
# Supported formats are: #RRGGBB #AARRGGBB or one of the following names:
# red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray,
# darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,
# olive, purple, silver, teal.
#android.presplash_color = #FFFFFF

# (list) Permissions
#android.permissions = INTERNET, ACCESS_NETWORK_STATE, READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE

# (int) Android API to use
#android.api = 27

# (int) Minimum API required
#android.minapi = 19

# (int) Android SDK version to use
#android.sdk = 23

# (str) Android NDK version to use
#android.ndk = 10.3.2

# (int) Android NDK API to use (optional). This is the minimum API your app will support.
#android.ndk_api = 19

# (bool) Use --private data storage (True) or --dir public storage (False)
#android.private_storage = True

# (str) Android NDK directory (if empty, it will be automatically downloaded.)
#android.ndk_path = ~/Development/NDK/crystax-ndk-10.3.2
#android.ndk_path = ~/Development/NDK/android-ndk-r16b

# (str) Android SDK directory (if empty, it will be automatically downloaded.)
#android.sdk_path =

# (str) ANT directory (if empty, it will be automatically downloaded.)
#android.ant_path =

# (bool) If True, then skip trying to update the Android sdk
# This can be useful to avoid excess Internet downloads or save time
# when an update is due and you just want to test/build your package
# android.skip_update = False

# (str) Android entry point, default is ok for Kivy-based app
#android.entrypoint = org.renpy.android.PythonActivity

# (list) Pattern to whitelist for the whole project
#android.whitelist =

# (str) Path to a custom whitelist file
#android.whitelist_src =

# (str) Path to a custom blacklist file
#android.blacklist_src =

# (list) List of Java .jar files to add to the libs so that pyjnius can access
# their classes. Don't add jars that you do not need, since extra jars can slow
# down the build process. Allows wildcards matching, for example:
# OUYA-ODK/libs/*.jar
#android.add_jars = foo.jar,bar.jar,path/to/more/*.jar

# (list) List of Java files to add to the android project (can be java or a
# directory containing the files)
#android.add_src =

# (list) Android AAR archives to add (currently works only with sdl2_gradle
# bootstrap)
#android.add_aars =

# (list) Gradle dependencies to add (currently works only with sdl2_gradle
# bootstrap)
#android.gradle_dependencies =

# (str) python-for-android branch to use, defaults to stable
p4a.branch = master

# (str) OUYA Console category. Should be one of GAME or APP
# If you leave this blank, OUYA support will not be enabled
#android.ouya.category = GAME

# (str) Filename of OUYA Console icon. It must be a 732x412 png image.
#android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png

# (str) XML file to include as an intent filters in <activity> tag
#android.manifest.intent_filters =

# (list) Android additionnal libraries to copy into libs/armeabi
#android.add_libs_armeabi = libs/android/*.so
#android.add_libs_armeabi_v7a = libs/android-v7/*.so
#android.add_libs_x86 = libs/android-x86/*.so
#android.add_libs_mips = libs/android-mips/*.so

# (bool) Indicate whether the screen should stay on
# Don't forget to add the WAKE_LOCK permission if you set this to True
#android.wakelock = False

# (list) Android application meta-data to set (key=value format)
#android.meta_data =

# (list) Android library project to add (will be added in the
# project.properties automatically.)
#android.library_references =

# (str) Android logcat filters to use
android.logcat_filters = *:S python:V

# (bool) Copy library instead of making a libpymodules.so
#android.copy_libs = 1

# (str) The Android arch to build for, choices: armeabi-v7a, arm64-v8a, x86
android.arch = armeabi-v7a

# (str) launchMode to set for the main activity
#android.manifest.launch_mode = standard

#
# Python for android (p4a) specific
#

# (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
#p4a.source_dir = /Users/john/Development/python-for-android-master

# (str) The directory in which python-for-android should look for your own build recipes (if any)
#p4a.local_recipes =

# (str) Filename to the hook for p4a
#p4a.hook =

# (str) Bootstrap to use for android builds
# p4a.bootstrap = sdl2

#
# iOS specific
#

# (str) Path to a custom kivy-ios folder
#ios.kivy_ios_dir = ~/Development/kivy-ios

# (str) Name of the certificate to use for signing the debug version
# Get a list of available identities: buildozer ios list_identities
#ios.codesign.debug = "iPhone Developer: <lastname> <firstname> (<hexstring>)"

# (str) Name of the certificate to use for signing the release version
#ios.codesign.release = %(ios.codesign.debug)s

[buildozer]

# (int) Log level (0 = error only, 1 = info, 2 = debug (with command output))
log_level = 2

# (int) Display warning if buildozer is run as root (0 = False, 1 = True)
warn_on_root = 1

# (str) Path to build artifact storage, absolute or relative to spec file
# build_dir = ./.buildozer

# (str) Path to build output (i.e. .apk, .ipa) storage
# bin_dir = ./bin

#    -----------------------------------------------------------------------------
#    List as sections
#
#    You can define all the "list" as [section:key].
#    Each line will be considered as a option to the list.
#    Let's take [app] / source.exclude_patterns.
#    Instead of doing:
#
#[app]
#source.exclude_patterns = license,data/audio/*.wav,data/images/original/*
#
#    This can be translated into:
#
#[app:source.exclude_patterns]
#license
#data/audio/*.wav
#data/images/original/*
#

#    -----------------------------------------------------------------------------
#    Profiles
#
#    You can extend section / key with a profile
#    For example, you want to deploy a demo version of your application without
#    HD content. You could first change the title to add "(demo)" in the name
#    and extend the excluded directories to remove the HD content.
#
#[app@demo]
#title = My Application (demo)
#
#[app:source.exclude_patterns@demo]
#images/hd/*
#
#    Then, invoke the command line with the "demo" profile:
#
#buildozer --profile demo android debug

Logs

It wouldn't let me paste even one of the logs as too long.

Python 2 error here: https://paste.city/129

Python 3 error here: https://paste.city/128

inclement commented 5 years ago

Thanks for the clear report. Looks like the issue is /Users/john/Development/Android/NDK/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lpython2.7. I'm not sure what has caused this, maybe we have some missing -L argument on macOS somehow.

I'm trying this buildozer.spec locally just in case it's reproducible, but I've been doing successful builds all day so I'm not too hopeful.

inclement commented 5 years ago

Yep, confirmed that I can't reproduce this locally using the same buildozer.spec. I think this is a macOS bug.

OptimusGREEN commented 5 years ago

That's unfortunate, I may need to set up (reluctantly) a VM to get a build done in the mean time. That in itself will likely have me bald lol.

Well my fingers are crossed for a quick and easy fix 🤞

Thanks for checking it out 👍

inclement commented 5 years ago

I'm semi-optimistic that it will be fixed quickly, it just needs someone who can reproduce it to look into it.

OptimusGREEN commented 5 years ago

Ok so I though I'd give ndk r16b a go as that's what I've used successfully in the past.

The build still fails but its a different error. I have no idea if this confuses matter more or helps narrow it down but below is the logs

python 2 - https://paste.city/133

python 3 - https://paste.city/132

config.log (assuming this is the one as I could only find 2 and the other one had exit code 0) - https://paste.city/134

AndreMiras commented 5 years ago

Yes that config.log has the relevant info, see:

configure:3968: checking whether the C compiler works
configure:3990: /Users/john/Development/Android/NDK/android-ndk-r16b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -target armv7a-none-linux-androideabi -gcc-toolchain /Users/john/Development/Android/NDK/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64  -fPIC --sysroot=/Users/john/Development/Android/NDK/android-ndk-r16b/sysroot -D__ANDROID_API__=21 -isystem /Users/john/Development/Android/NDK/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi -I/Users/john/Development/Android/NDK/android-ndk-r16b/sysroot/usr/include  -fPIC --sysroot=/Users/john/Development/Android/NDK/android-ndk-r16b/sysroot -D__ANDROID_API__=21 -isystem /Users/john/Development/Android/NDK/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi -I/Users/john/Development/Android/NDK/android-ndk-r16b/sysroot/usr/include -I/Users/john/Development/Git/ogleavetracker/optileave/.buildozer/android/platform/build/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1/include -I/Users/john/Development/Git/ogleavetracker/optileave/.buildozer/android/platform/build/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1/include/internal -I/Users/john/Development/Git/ogleavetracker/optileave/.buildozer/android/platform/build/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1/include/openssl  --sysroot=/Users/john/Development/Android/NDK/android-ndk-r16b/platforms/android-21/arch-arm -L/Users/john/Development/Android/NDK/android-ndk-r16b/platforms/android-21/arch-arm/usr/lib -L/Users/john/Development/Android/NDK/android-ndk-r16b/platforms/android-21/arch-arm/usr/lib -L/Users/john/Development/Git/ogleavetracker/optileave/.buildozer/android/platform/build/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1 conftest.c  -lcrypto1.1 -lssl1.1 >&5
/Users/john/Development/Git/ogleavetracker/optileave/.buildozer/android/platform/build/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1/libcrypto1.1.so: error: undefined reference to '__atomic_fetch_add_4'
/Users/john/Development/Git/ogleavetracker/optileave/.buildozer/android/platform/build/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1/libcrypto1.1.so: error: undefined reference to '__atomic_fetch_sub_4'
/Users/john/Development/Git/ogleavetracker/optileave/.buildozer/android/platform/build/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1/libcrypto1.1.so: error: undefined reference to '__atomic_store'
/Users/john/Development/Git/ogleavetracker/optileave/.buildozer/android/platform/build/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1/libcrypto1.1.so: error: undefined reference to '__atomic_load'
/Users/john/Development/Git/ogleavetracker/optileave/.buildozer/android/platform/build/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1/libcrypto1.1.so: error: undefined reference to '__atomic_is_lock_free'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

So it looks like you're missing the lib atomic. Could you try to link it then with -latomic. I know the static lib is provided in the r17c ndk at least. So yes try to link it. Sorry I don't have an osx laptop to test more.

OptimusGREEN commented 5 years ago

its not something I've done before, how would I go about that? I'm just using buildozer android debug

Unfortunately my skills extend to some python :)

AndreMiras commented 5 years ago

Ahah sure I can understand, that's how I started hacking around in p4a. Well it's not easy to help without testing it myself, but I would give it a try by editing pythonforandroid/recipes/openssl/__init__.py and adding the -latomic flag in link_libs_flags(). If you're using buildozer, most likely the file is in .buildozer/android/platform/python-for-android-new-toolchain/pythonforandroid/recipes/openssl/__init__.py So that could be a bit hacky, but I would start this way. Other things I recommend is to read about compilation process understanding how the phases how working, including the linking one. And if that doesn't work, you may want to put some breakpoints to the code or enable debug output, to try to see what actual command line is being execute to tweak it yourself from the shell. Good luck :four_leaf_clover: !

OptimusGREEN commented 5 years ago

I tried that with no joy.

to be honest I think its probably not worth while looking into the error on the 16b ndk as the 17c is newer and recommended.

so hopefully someone with the knowledge has a Mac lol.

mattrunchey commented 5 years ago

I've been bashing my head against the same issue today. Haven't figured it out, but maybe some info would be relevant to someone else here.

The exact command that is failing is in the [INFO]: Building sdl2 for armeabi-v7a section:

Matts-Macbook-Pro:kivytools mrunchey$ /Users/mrunchey/.buildozer/android/platform/android-ndk-r17c/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ -Wl,-soname,libmain.so -shared --sysroot=/Users/mrunchey/.buildozer/android/platform/android-ndk-r17c/platforms/android-21/arch-arm /Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/obj/local/armeabi-v7a/objs/main/__/__/SDL/src/main/android/SDL_android_main.o /Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/obj/local/armeabi-v7a/objs/main/start.o -lgcc -Wl,--exclude-libs,libgcc.a -latomic -Wl,--exclude-libs,libatomic.a /Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/obj/local/armeabi-v7a/libSDL2.so  -gcc-toolchain /Users/mrunchey/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 -no-canonical-prefixes -target armv7-none-linux-androideabi21 -Wl,--fix-cortex-a8 -L/Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/android-build -Wl,--build-id -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--warn-shared-textrel -Wl,--fatal-warnings   -L/Users/mrunchey/.buildozer/android/platform/android-ndk-r17c/platforms/android-21/arch-arm/usr/lib -lGLESv1_CM -lGLESv2 -llog -lpython3.7m -lstdc++ -lc -lm -o /Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/obj/local/armeabi-v7a/libmain.so
/Users/mrunchey/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lpython3.7m
/Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/jni/application/src/start.c:51: error: undefined reference to 'PyModule_Create2'
/Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/jni/application/src/start.c:158: error: undefined reference to 'Py_SetProgramName'
/Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/jni/application/src/start.c:164: error: undefined reference to 'PyImport_AppendInittab'
/Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/jni/application/src/start.c:197: error: undefined reference to 'Py_DecodeLocale'
/Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/jni/application/src/start.c:198: error: undefined reference to 'Py_SetPath'
/Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/jni/application/src/start.c:209: error: undefined reference to 'Py_Initialize'
/Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/jni/application/src/start.c:226: error: undefined reference to 'PyEval_InitThreads'
/Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/jni/application/src/start.c:232: error: undefined reference to 'PyRun_SimpleStringFlags'
/Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/jni/application/src/start.c:238: error: undefined reference to 'PyRun_SimpleStringFlags'
/Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/jni/application/src/start.c:244: error: undefined reference to 'PyRun_SimpleStringFlags'
/Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/jni/application/src/start.c:260: error: undefined reference to 'PyRun_SimpleStringFlags'
/Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/jni/application/src/start.c:370: error: undefined reference to 'PyRun_SimpleFileExFlags'
/Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/jni/application/src/start.c:373: error: undefined reference to 'PyErr_Occurred'
/Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/jni/application/src/start.c:375: error: undefined reference to 'PyErr_Print'
/Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/jni/application/src/start.c:376: error: undefined reference to 'PySys_GetObject'
/Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/jni/application/src/start.c:377: error: undefined reference to 'PyFile_WriteString'
/Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/jni/application/src/start.c:379: error: undefined reference to 'PyErr_Clear'
/Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/jni/application/src/start.c:406: error: undefined reference to 'Py_FinalizeEx'
/Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/jni/application/src/start.c:35: error: undefined reference to '_PyArg_ParseTuple_SizeT'
/Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/jni/application/src/start.c:0: error: undefined reference to '_Py_NoneStruct'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

I tried to manually augment the command by adding a link to the place I knew my python static lib to exist: -L/usr/local/lib/libpython3.7m.a

I validated that the library actually had matching references to the undefined references, i.e.

(kivypy3) Matts-Macbook-Pro:kivytools mrunchey$ nm -C  /usr/local/lib/libpython3.7m.a | grep PyRun_SimpleStringFlags
00000000000d42fd T _PyRun_SimpleStringFlags

(However, the names don't seem to match exactly -- note the underscore)

I'm trying to roll back and see if a previous build step is pulling in a different step that didn't link correctly but haven't quite found it yet, and I haven't figured out where I can manually inject an extra LDFLAG to see if that would even push me past this.

There's another breadcrumb if I scroll back to the actual place in the compilation that failed,

  STDOUT:
Android NDK: WARNING:/Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/jni/application/src/Android.mk:main: non-system libraries in linker flags: -lpython3.7m    
Android NDK:     This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES    
Android NDK:     or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the    
Android NDK:     current module    
/Users/mrunchey/.buildozer/android/platform/android-ndk-r17c/build/core/build-binary.mk:688: Android NDK: Module main depends on undefined modules: python_shared 

Which suggests I may want to look at another NDK version, as this one may just be bugged. So I modified my buildozer.spec file to specify some other version, i went with r18b, downloaded it, unzipped it, and changed my local path. Swing and a miss. Can't use r19 easily, it seems, but can't seem to find a viable ndk compiler. I've also tried r16, r17, and r15 to the same effect.

Will update if I get any further.

inclement commented 5 years ago

I tried to manually augment the command by adding a link to the place I knew my python static lib to exist: -L/usr/local/lib/libpython3.7m.a

This is actually not the way forward, you need to -L the directory containing the libpython3.7m.so built by python-for-android. Would you be able to paste the command that python-for-android ran to result in this error? I'd like to see what it specifies, and would also be good if you could check what's in the -L directories there.

There's another breadcrumb if I scroll back to the actual place in the compilation that failed,

Also just to note, this is okay and doesn't matter, no version of the NDK will give any different message as far as I know.

inclement commented 5 years ago

Is anyone able to try @opacam's possible fix at https://github.com/kivy/python-for-android/pull/1682?

mattrunchey commented 5 years ago

@inclement I will try it.

mattrunchey commented 5 years ago

Does not seem to resolve. I cloned that fork and pip install -e . from the fix-macos-patches branch, and changed p4a.source = python-for-android (relative path to where i was running buildozer) and p4a.branch = fix-macos-patches. The failure is the same in locating my python env and the stacktrace indicates that the correct python-for-android local code was used ---

/Users/mrunchey/.buildozer/android/platform/android-ndk-r17c/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ -Wl,-soname,libmain.so -shared --sysroot=/Users/mrunchey/.buildozer/android/platform/android-ndk-r17c/platforms/android-21/arch-arm /Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/obj/local/armeabi-v7a/objs/main/__/__/SDL/src/main/android/SDL_android_main.o /Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/obj/local/armeabi-v7a/objs/main/start.o -lgcc -Wl,--exclude-libs,libgcc.a -latomic -Wl,--exclude-libs,libatomic.a /Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/obj/local/armeabi-v7a/libSDL2.so  -gcc-toolchain /Users/mrunchey/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 -no-canonical-prefixes -target armv7-none-linux-androideabi21 -Wl,--fix-cortex-a8 -L/Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/other_builds/python3-libffi/armeabi-v7a__ndk_target_21/python3/android-build -Wl,--build-id -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--warn-shared-textrel -Wl,--fatal-warnings   -L/Users/mrunchey/.buildozer/android/platform/android-ndk-r17c/platforms/android-21/arch-arm/usr/lib -lGLESv1_CM -lGLESv2 -llog -lpython3.7m -lstdc++ -lc -lm -o /Users/mrunchey/gitrepos/kivytools/.buildozer/android/platform/build/build/bootstrap_builds/sdl2/obj/local/armeabi-v7a/libmain.so
/Users/mrunchey/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lpython3.7m

...

  STDERR:

Traceback (most recent call last):                                                                                                                  
  File "/usr/local/Cellar/python@2/2.7.15_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/local/Cellar/python@2/2.7.15_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/Users/mrunchey/gitrepos/kivytools/python-for-android/pythonforandroid/toolchain.py", line 1057, in <module>
    main()
  File "/Users/mrunchey/gitrepos/kivytools/python-for-android/pythonforandroid/toolchain.py", line 1051, in main
    ToolchainCL()
  File "/Users/mrunchey/gitrepos/kivytools/python-for-android/pythonforandroid/toolchain.py", line 560, in __init__
    getattr(self, args.subparser_name.replace('-', '_'))(args)
  File "/Users/mrunchey/gitrepos/kivytools/python-for-android/pythonforandroid/toolchain.py", line 151, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/Users/mrunchey/gitrepos/kivytools/python-for-android/pythonforandroid/toolchain.py", line 192, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx)
  File "pythonforandroid/build.py", line 565, in build_recipes
  File "/Users/mrunchey/gitrepos/kivytools/python-for-android/pythonforandroid/recipes/sdl2/__init__.py", line 28, in build_arch
    shprint(sh.ndk_build, "V=1", _env=env)
  File "pythonforandroid/logger.py", line 178, in shprint
  File "/Users/mrunchey/kivydev/lib/python2.7/site-packages/sh.py", line 863, in next
    self.wait()
  File "/Users/mrunchey/kivydev/lib/python2.7/site-packages/sh.py", line 792, in wait
    self.handle_command_exit_code(exit_code)
  File "/Users/mrunchey/kivydev/lib/python2.7/site-packages/sh.py", line 815, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_2: 

Attempted on requirements=python2 with the same error.

OptimusGREEN commented 5 years ago

@inclement Didn't work here either. only had time to try py2 unfortunately., will try py3 later https://paste.city/143

opacam commented 5 years ago

@optimusGREEN, thanks for the testing and to post the full log...but i don't think that your last test help us in this linking problem...I've been reviewing your log and I think that the patch I added in the pr is not applied in your last test...

Your log should contain this words: Applying patch patches/fix-configure-darwin.patch...and are not in there...

...I checked the p4a's patching code and it seems right to me ( https://github.com/kivy/python-for-android/blob/master/pythonforandroid/patching.py#L16-L23 )...and it has been there for a while...and still applies to linux platform...:thinking::

If you are absolutely certain that you made the test right, please...can you give us the result of the python's command I mention above? If not, please...can you test it again and make sure that you use the changed files in the pull request?

OptimusGREEN commented 5 years ago

Hi, I'll give it another go later tonight but what I actually did was copy pasted the 5 or so files in your pr to a fresh download of master. I've not sussed out how to test pr's the proper way lol.

Feel free to advise 🤪

ps: os.uname()[0] does indeed return 'Darwin'

OptimusGREEN commented 5 years ago

@opacam I've done it properly this time I think. found out how to add a pr in gitkraken.

Applying patch patches/fix-configure-darwin.patch is in both logs but unfortunately I get the same error as before.

py2 - https://paste.city/146 py3 - https://paste.city/147

Feel free to give me a shout if you need me to do anything else.

mark-kreider commented 5 years ago

Kivy Python to Android Issue

3/3/2019

I running to the same issue described above where ld cannot find python3.7m. I am including only the log messages with errors or warnings when running this command:

$ buildozer android debug

==============================================================================================

My Environment:

Macbook Pro 2017

15:11 $ sw_vers ProductName: Mac OS X ProductVersion: 10.13.6 BuildVersion: 17G5019

15:13 $ python Python 2.7.15 (default, Feb 12 2019, 12:27:02) [GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.5)] on darwin Type "help", "copyright", "credits" or "license" for more information.

15:16 $ python3 Python 3.7.2 (default, Feb 12 2019, 08:16:38) [Clang 10.0.0 (clang-1000.11.45.5)] on darwin Type "help", "copyright", "credits" or "license" for more information.

import kivy [INFO ] [Logger ] Record log in /Users/mark/.kivy/logs/kivy_19-03-03_0.txt [INFO ] [Kivy ] v1.10.1 [INFO ] [Python ] v3.7.2 (default, Feb 12 2019, 08:16:38) [Clang 10.0.0 (clang-1000.11.45.5)]

15:18 $ Kivy3 Python 3.6.5 (default, Jun 18 2018, 16:36:13) [GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.1)] on darwin Type "help", "copyright", "credits" or "license" for more information.

16:02 $ which python3.7m /usr/local/bin/python3.7m

==============================================================================================

Building with one Python file, main.py, from the kivy.org YouTube tutorial 2:

kivy.org Tutorial 2: Building an android apk

https://www.youtube.com/watch?v=t8N_8WkALdE&list=PLdNh1e1kmiPP4YApJm8ENK2yMlwF1_edq&index=2

#

Scatter allows drag and drop without any additional programming

#

Building an Android App

# # # from kivy.app import App from kivy.uix.scatter import Scatter from kivy.uix.label import Label from kivy.uix.floatlayout import FloatLayout

class TutorialApp(App): def build(self): f = FloatLayout() s = Scatter() label = Label(text="Hello!", font_size=150) f.add_widget(s) s.add_widget(label) return f

if name == 'main': TutorialApp().run()

==============================================================================================

buildozer.spec file in same directory as main.py:

[app]

(str) Title of your application

title = Test Kivy App 1

(str) Package name

package.name = testkivy1

(str) Package domain (needed for android/ios packaging)

package.domain = org.test

(str) Source code where the main.py live

source.dir = .

(list) Source files to include (let empty to include all the files)

source.include_exts = py,png,jpg,kv,atlas

(list) List of inclusions using pattern matching

source.include_patterns = assets/,images/.png

(list) Source files to exclude (let empty to not exclude anything)

source.exclude_exts = spec

(list) List of directory to exclude (let empty to not exclude anything)

source.exclude_dirs = tests, bin

(list) List of exclusions using pattern matching

source.exclude_patterns = license,images//.jpg

(str) Application versioning (method 1)

version = 1.0

(str) Application versioning (method 2)

version.regex = version = '"['"]

version.filename = %(source.dir)s/main.py

(list) Application requirements

comma separated e.g. requirements = sqlite3,kivy

requirements = python3,kivy

(str) Custom source folders for requirements

Sets custom source for any requirements with recipes

requirements.source.kivy = ../../kivy

(list) Garden requirements

garden_requirements =

(str) Presplash of the application

presplash.filename = %(source.dir)s/data/presplash.png

(str) Icon of the application

icon.filename = %(source.dir)s/data/icon.png

(str) Supported orientation (one of landscape, sensorLandscape, portrait or all)

orientation = all

(list) List of service to declare

services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY

#

OSX Specific

#

#

author = © Copyright Info

change the major version of python used by the app

osx.python_version = 3

Kivy version to use

osx.kivy_version = 1.10.1

#

Android specific

#

(bool) Indicate if the application should be fullscreen or not

fullscreen = 1

(string) Presplash background color (for new android toolchain)

Supported formats are: #RRGGBB #AARRGGBB or one of the following names:

red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray,

darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,

olive, purple, silver, teal.

android.presplash_color = #FFFFFF

(list) Permissions

android.permissions = INTERNET

(int) Target Android API, should be as high as possible.

android.api = 27

(int) Minimum API your APK will support.

android.minapi = 21

(int) Android SDK version to use

android.sdk = 20

(str) Android NDK version to use

android.ndk = 17c

(int) Android NDK API to use. This is the minimum API your app will support, it should usually match android.minapi.

android.ndk_api = 21

(bool) Use --private data storage (True) or --dir public storage (False)

android.private_storage = True

(str) Android NDK directory (if empty, it will be automatically downloaded.)

android.ndk_path =

(str) Android SDK directory (if empty, it will be automatically downloaded.)

android.sdk_path =

(str) ANT directory (if empty, it will be automatically downloaded.)

android.ant_path =

(bool) If True, then skip trying to update the Android sdk

This can be useful to avoid excess Internet downloads or save time

when an update is due and you just want to test/build your package

android.skip_update = False

(bool) If True, then automatically accept SDK license

agreements. This is intended for automation only. If set to False,

the default, you will be shown the license when first running

buildozer.

android.accept_sdk_license = False

(str) Android entry point, default is ok for Kivy-based app

android.entrypoint = org.renpy.android.PythonActivity

(list) Pattern to whitelist for the whole project

android.whitelist =

(str) Path to a custom whitelist file

android.whitelist_src =

(str) Path to a custom blacklist file

android.blacklist_src =

(list) List of Java .jar files to add to the libs so that pyjnius can access

their classes. Don't add jars that you do not need, since extra jars can slow

down the build process. Allows wildcards matching, for example:

OUYA-ODK/libs/*.jar

android.add_jars = foo.jar,bar.jar,path/to/more/*.jar

(list) List of Java files to add to the android project (can be java or a

directory containing the files)

android.add_src =

(list) Android AAR archives to add (currently works only with sdl2_gradle

bootstrap)

android.add_aars =

(list) Gradle dependencies to add (currently works only with sdl2_gradle

bootstrap)

android.gradle_dependencies =

(list) Java classes to add as activities to the manifest.

android.add_activites = com.example.ExampleActivity

(str) python-for-android branch to use, defaults to master

p4a.branch = master

(str) OUYA Console category. Should be one of GAME or APP

If you leave this blank, OUYA support will not be enabled

android.ouya.category = GAME

(str) Filename of OUYA Console icon. It must be a 732x412 png image.

android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png

(str) XML file to include as an intent filters in tag

android.manifest.intent_filters =

(str) launchMode to set for the main activity

android.manifest.launch_mode = standard

(list) Android additional libraries to copy into libs/armeabi

android.add_libs_armeabi = libs/android/*.so

android.add_libs_armeabi_v7a = libs/android-v7/*.so

android.add_libs_x86 = libs/android-x86/*.so

android.add_libs_mips = libs/android-mips/*.so

(bool) Indicate whether the screen should stay on

Don't forget to add the WAKE_LOCK permission if you set this to True

android.wakelock = False

(list) Android application meta-data to set (key=value format)

android.meta_data =

(list) Android library project to add (will be added in the

project.properties automatically.)

android.library_references =

(str) Android logcat filters to use

android.logcat_filters = *:S python:D

(bool) Copy library instead of making a libpymodules.so

android.copy_libs = 1

(str) The Android arch to build for, choices: armeabi-v7a, arm64-v8a, x86

android.arch = armeabi-v7a

#

Python for android (p4a) specific

#

(str) python-for-android git clone directory (if empty, it will be automatically cloned from github)

p4a.source_dir =

(str) The directory in which python-for-android should look for your own build recipes (if any)

p4a.local_recipes =

(str) Filename to the hook for p4a

p4a.hook =

(str) Bootstrap to use for android builds

p4a.bootstrap = sdl2

(int) port number to specify an explicit --port= p4a argument (eg for bootstrap flask)

p4a.port =

#

iOS specific

#

(str) Path to a custom kivy-ios folder

ios.kivy_ios_dir = ../kivy-ios

Alternately, specify the URL and branch of a git checkout:

ios.kivy_ios_url = https://github.com/kivy/kivy-ios ios.kivy_ios_branch = master

Another platform dependency: ios-deploy

Uncomment to use a custom checkout

ios.ios_deploy_dir = ../ios_deploy

Or specify URL and branch

ios.ios_deploy_url = https://github.com/phonegap/ios-deploy ios.ios_deploy_branch = 1.7.0

(str) Name of the certificate to use for signing the debug version

Get a list of available identities: buildozer ios list_identities

ios.codesign.debug = "iPhone Developer: ()"

(str) Name of the certificate to use for signing the release version

ios.codesign.release = %(ios.codesign.debug)s

[buildozer]

(int) Log level (0 = error only, 1 = info, 2 = debug (with command output))

log_level = 2

(int) Display warning if buildozer is run as root (0 = False, 1 = True)

warn_on_root = 1

(str) Path to build artifact storage, absolute or relative to spec file

build_dir = ./.buildozer

(str) Path to build output (i.e. .apk, .ipa) storage

bin_dir = ./bin

-----------------------------------------------------------------------------

List as sections

#

You can define all the "list" as [section:key].

Each line will be considered as a option to the list.

Let's take [app] / source.exclude_patterns.

Instead of doing:

#

[app]

source.exclude_patterns = license,data/audio/.wav,data/images/original/

#

This can be translated into:

#

[app:source.exclude_patterns]

license

data/audio/*.wav

data/images/original/*

#

-----------------------------------------------------------------------------

Profiles

#

You can extend section / key with a profile

For example, you want to deploy a demo version of your application without

HD content. You could first change the title to add "(demo)" in the name

and extend the excluded directories to remove the HD content.

#

[app@demo]

title = My Application (demo)

#

[app:source.exclude_patterns@demo]

images/hd/*

#

Then, invoke the command line with the "demo" profile:

#

buildozer --profile demo android debug

==============================================================================================

15:29 $ buildozer android debug

Check configuration tokens

Ensure build layout

Create directory /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer

Create directory /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/bin

Create directory /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/applibs

Create directory /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform

Create directory /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/app

Check configuration tokens

Read available permissions from api-versions.xml

Preparing build

Check requirements for android

Search for Git (git)

-> found at /usr/local/Cellar/git/2.20.1/bin/git

Search for Cython (cython)

-> found at /usr/local/bin/cython

Search for Java compiler (javac)

-> found at /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/javac

Search for Java keytool (keytool)

-> found at /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/keytool

Install platform

Run 'git clone -b master --single-branch https://github.com/kivy/python-for-android.git python-for-android'

Cwd /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform

Cloning into 'python-for-android'...

Run '/usr/local/opt/python/bin/python3.7 -m pip install -q --user \'appdirs\' \'colorama>=0.3.3\' \'jinja2\' \'six\' \'enum34; python_version<"3.4"\' \'sh>=1.10; sys_platform!="nt"\''

Cwd None

Apache ANT found at /Users/mark/.buildozer/android/platform/apache-ant-1.9.4

Android SDK found at /Users/mark/.buildozer/android/platform/android-sdk

Android NDK found at /Users/mark/.buildozer/android/platform/android-ndk-r17c

Installing/updating SDK platform tools if necessary

Run '/Users/mark/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager tools platform-tools'

Cwd /Users/mark/.buildozer/android/platform/android-sdk

[=======================================] 100% Computing updates...

Run '/Users/mark/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager --update'

Cwd /Users/mark/.buildozer/android/platform/android-sdk

[=======================================] 100% Computing updates...

Updating SDK build tools if necessary

Run '/Users/mark/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager --list'

Cwd /Users/mark/.buildozer/android/platform/android-sdk

Installed packages:=====================] 100% Computing updates...
Path
Version Description Location
build-tools;28.0.3 28.0.3 Android SDK Build-Tools 28.0.3 build-tools/28.0.3/
platform-tools 28.0.1 Android SDK Platform-Tools platform-tools/
platforms;android-27 3 Android SDK Platform 27 platforms/android-27/
tools 26.1.1 Android SDK Tools 26.1.1 tools/
Available Packages: Path Version Description
add-ons;addon-google_apis-google-15 3 Google APIs
add-ons;addon-google_apis-google-16 4 Google APIs
add-ons;addon-google_apis-google-17 4 Google APIs

... sources;android-15 | 2 | Sources for Android 15
sources;android-16 | 2 | Sources for Android 16
sources;android-17 | 1 | Sources for Android 17
sources;android-18 | 1 | Sources for Android 18
sources;android-19 | 2 | Sources for Android 19
... tools | 26.1.1 | Android SDK Tools

Check that aidl can be executed

Search for Aidl

Run '/Users/mark/.buildozer/android/platform/android-sdk/build-tools/28.0.3/aidl'

Cwd None

Downloading platform api target if necessary

Android packages installation done.

Check application requirements

Check garden requirements

Compile platform

Run '/usr/local/opt/python/bin/python3.7 -m pythonforandroid.toolchain create --dist_name=testkivy1 --bootstrap=sdl2 --requirements=python3,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build" --ndk-api=21'

Cwd /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android

/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py:83: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp [INFO]: Will compile for the following archs: armeabi-v7a [INFO]: Found Android API target in $ANDROIDAPI: 27 [INFO]: Available Android APIs are (27) [INFO]: Requested API target 27 is available, continuing. [INFO]: Found NDK dir in $ANDROIDNDK: /Users/mark/.buildozer/android/platform/android-ndk-r17c [INFO]: Found NDK revision 17.2.4988734 [INFO]: Getting NDK API version (i.e. minimum supported API) from user argument [INFO]: Found virtualenv at /usr/local/bin/virtualenv [INFO]: ccache is missing, the build will not be optimized in the future. [INFO]: Found the following toolchain versions: ['4.9'] [INFO]: Picking the latest gcc toolchain, here 4.9 [INFO]: No existing dists meet the given requirements! [INFO]: No dist exists that meets your requirements, so one will be built. [INFO]: Found a single valid recipe set: ['hostpython3', 'libffi', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'six', 'pyjnius', 'android', 'kivy'] [INFO]: The selected bootstrap is sdl2 [INFO]: # Creating dist with sdl2 bootstrap [INFO]: Dist will have name testkivy1 and requirements (python3, kivy) [INFO]: Dist contains the following requirements as recipes: ['hostpython3', 'libffi', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'six', 'pyjnius', 'android', 'kivy'] [INFO]: Dist will also contain modules () installed from pip [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3 [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Recipe build order is ['hostpython3', 'libffi', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'six', 'pyjnius', 'android', 'kivy'] [INFO]: # Downloading recipes [INFO]: Downloading hostpython3 [INFO]: -> running mkdir -p /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/hostpython3 [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/hostpython3 [INFO]: -> running basename https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz [INFO]: -> running rm -f .mark-Python-3.7.1.tgz
[INFO]: Downloading hostpython3 from https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz [INFO]: -> running touch .mark-Python-3.7.1.tgz [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Downloading libffi [INFO]: -> running mkdir -p /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/libffi [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/libffi [INFO]: -> running basename https://github.com/libffi/libffi/archive/v3.2.1.tar.gz [INFO]: -> running rm -f .mark-v3.2.1.tar.gz
[INFO]: Downloading libffi from https://github.com/libffi/libffi/archive/v3.2.1.tar.gz [INFO]: -> running touch .mark-v3.2.1.tar.gz [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Downloading openssl [INFO]: -> running mkdir -p /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/openssl [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/openssl [INFO]: -> running basename https://www.openssl.org/source/openssl-1.1.1.tar.gz [INFO]: -> running rm -f .mark-openssl-1.1.1.tar.gz
[INFO]: Downloading openssl from https://www.openssl.org/source/openssl-1.1.1.tar.gz [INFO]: -> running touch .mark-openssl-1.1.1.tar.gz [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Downloading sdl2_image [INFO]: -> running mkdir -p /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/sdl2_image [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/sdl2_image [INFO]: -> running basename https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.4.tar.gz [INFO]: -> running rm -f .mark-SDL2_image-2.0.4.tar.gz
[INFO]: Downloading sdl2_image from https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.4.tar.gz [INFO]: -> running touch .mark-SDL2_image-2.0.4.tar.gz [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Downloading sdl2_mixer [INFO]: -> running mkdir -p /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/sdl2_mixer [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/sdl2_mixer [INFO]: -> running basename https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.1.tar.gz [INFO]: -> running rm -f .mark-SDL2_mixer-2.0.1.tar.gz
[INFO]: Downloading sdl2_mixer from https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.1.tar.gz [INFO]: -> running touch .mark-SDL2_mixer-2.0.1.tar.gz [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Downloading sdl2_ttf [INFO]: -> running mkdir -p /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/sdl2_ttf [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/sdl2_ttf [INFO]: -> running basename https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz [INFO]: -> running rm -f .mark-SDL2_ttf-2.0.14.tar.gz
[INFO]: Downloading sdl2_ttf from https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz [INFO]: -> running touch .mark-SDL2_ttf-2.0.14.tar.gz [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Downloading sqlite3 [INFO]: -> running mkdir -p /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/sqlite3 [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/sqlite3 [INFO]: -> running basename https://www.sqlite.org/2016/sqlite-amalgamation-3150100.zip [INFO]: -> running rm -f .mark-sqlite-amalgamation-3150100.zip
[INFO]: Downloading sqlite3 from https://www.sqlite.org/2016/sqlite-amalgamation-3150100.zip [INFO]: -> running touch .mark-sqlite-amalgamation-3150100.zip [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Downloading python3 [INFO]: -> running mkdir -p /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/python3 [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/python3 [INFO]: -> running basename https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz [INFO]: -> running rm -f .mark-Python-3.7.1.tgz
[INFO]: Downloading python3 from https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz [INFO]: -> running touch .mark-Python-3.7.1.tgz [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Downloading sdl2 [INFO]: -> running mkdir -p /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/sdl2 [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/sdl2 [INFO]: -> running basename https://www.libsdl.org/release/SDL2-2.0.9.tar.gz [INFO]: -> running rm -f .mark-SDL2-2.0.9.tar.gz
[INFO]: Downloading sdl2 from https://www.libsdl.org/release/SDL2-2.0.9.tar.gz [INFO]: -> running touch .mark-SDL2-2.0.9.tar.gz [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Downloading six [INFO]: -> running mkdir -p /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/six [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/six [INFO]: -> running basename https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz [INFO]: -> running rm -f .mark-six-1.9.0.tar.gz
[INFO]: Downloading six from https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz [INFO]: -> running touch .mark-six-1.9.0.tar.gz [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Downloading pyjnius [INFO]: -> running mkdir -p /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/pyjnius [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/pyjnius [INFO]: -> running basename https://github.com/kivy/pyjnius/archive/1.1.3.zip [INFO]: -> running rm -f .mark-1.1.3.zip
[INFO]: Downloading pyjnius from https://github.com/kivy/pyjnius/archive/1.1.3.zip [INFO]: -> running touch .mark-1.1.3.zip [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Downloading android [INFO]: Skipping android download as no URL is set [INFO]: Downloading kivy [INFO]: -> running mkdir -p /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/kivy [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/packages/kivy [INFO]: -> running basename https://github.com/kivy/kivy/archive/a95d67f.zip [INFO]: -> running rm -f .mark-a95d67f.zip
[INFO]: Downloading kivy from https://github.com/kivy/kivy/archive/a95d67f.zip [INFO]: -> running touch .mark-a95d67f.zip [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: # Building all recipes for arch armeabi-v7a [INFO]: # Unpacking recipes [INFO]: Unpacking hostpython3 for armeabi-v7a [INFO]: -> running basename https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other_builds/hostpython3/desktop [INFO]: -> running mv Python-3.7.1 /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/b...(and 49 more) [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Unpacking libffi for armeabi-v7a [INFO]: -> running basename https://github.com/libffi/libffi/archive/v3.2.1.tar.gz [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other_builds/libffi/armeabi-v7andk_target_21 [INFO]: -> running mv libffi-3.2.1 /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/b...(and 58 more) [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Unpacking openssl for armeabi-v7a [INFO]: -> running basename https://www.openssl.org/source/openssl-1.1.1.tar.gz [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other_builds/openssl/armeabi-v7andk_target_21 [INFO]: -> running mv openssl-1.1.1 /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/...(and 64 more) [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Unpacking sdl2_image for armeabi-v7a [INFO]: -> running basename https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.4.tar.gz [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni [INFO]: -> running mv SDL2_image-2.0.4 /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/bui...(and 53 more) [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Unpacking sdl2_mixer for armeabi-v7a [INFO]: -> running basename https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.1.tar.gz [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni [INFO]: -> running mv SDL2_mixer-2.0.1 /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/bui...(and 53 more) [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Unpacking sdl2_ttf for armeabi-v7a [INFO]: -> running basename https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni [INFO]: -> running mv SDL2_ttf-2.0.14 /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/buil...(and 50 more) [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Unpacking sqlite3 for armeabi-v7a [INFO]: -> running basename https://www.sqlite.org/2016/sqlite-amalgamation-3150100.zip [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other_builds/sqlite3/armeabi-v7andk_target_21 [INFO]: -> running mv sqlite-amalgamation-3150100 /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/p...(and 75 more) [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Unpacking python3 for armeabi-v7a [INFO]: -> running basename https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7andk_target_21 [INFO]: -> running mv Python-3.7.1 /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/b...(and 83 more) [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Unpacking sdl2 for armeabi-v7a [INFO]: -> running basename https://www.libsdl.org/release/SDL2-2.0.9.tar.gz [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni [INFO]: -> running mv SDL2-2.0.9 /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/bui...(and 40 more) [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Unpacking six for armeabi-v7a [INFO]: -> running basename https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other_builds/six-python3/armeabi-v7andk_target_21 [INFO]: -> running mv six-1.9.0 /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/buil...(and 57 more) [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Unpacking pyjnius for armeabi-v7a [INFO]: -> running basename https://github.com/kivy/pyjnius/archive/1.1.3.zip [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other_builds/pyjnius-python3-sdl2/armeabi-v7andk_target_21 [INFO]: -> running mv pyjnius-1.1.3 /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/...(and 74 more) [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: -> running rm -rf /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/othe...(and 64 more) [INFO]: -> running cp -a /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-androi...(and 204 more) [INFO]: Unpacking kivy for armeabi-v7a [INFO]: -> running basename https://github.com/kivy/kivy/archive/a95d67f.zip [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other_builds/kivy-python3-sdl2/armeabi-v7andk_target_21 [INFO]: -> running mv kivy-a95d67fde782cec52f01d4207690fe4070aec4d3 /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.b...(and 100 more) [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: # Prebuilding recipes [INFO]: Prebuilding hostpython3 for armeabi-v7a [INFO]: hostpython3 has no prebuild_armeabi_v7a, skipping [INFO]: Prebuilding libffi for armeabi-v7a [INFO]: libffi has no prebuild_armeabi_v7a, skipping [INFO]: Applying patches for libffi[armeabi-v7a] [INFO]: Applying patch remove-version-info.patch [INFO]: -> running patch -t -d /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build...(and 223 more) [INFO]: Applying patch fix-includedir.patch
[INFO]: -> running patch -t -d /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build...(and 218 more) [INFO]: -> running touch /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other...(and 57 more)
[INFO]: Prebuilding openssl for armeabi-v7a [INFO]: openssl has no prebuild_armeabi_v7a, skipping [INFO]: Prebuilding sdl2_image for armeabi-v7a [INFO]: sdl2_image has no prebuild_armeabi_v7a, skipping [INFO]: Applying patches for sdl2_image[armeabi-v7a] [INFO]: Applying patch toggle_jpg_png_webp.patch [INFO]: -> running patch -t -d /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build...(and 218 more) [INFO]: Applying patch extra_cflags.patch
[INFO]: -> running patch -t -d /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build...(and 211 more) [INFO]: -> running touch /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/boots...(and 48 more)
[INFO]: Prebuilding sdl2_mixer for armeabi-v7a [INFO]: sdl2_mixer has no prebuild_armeabi_v7a, skipping [INFO]: Applying patches for sdl2_mixer[armeabi-v7a] [INFO]: Applying patch toggle_modplug_mikmod_smpeg_ogg.patch [INFO]: -> running patch -t -d /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build...(and 230 more) [INFO]: -> running touch /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/boots...(and 48 more)
[INFO]: Prebuilding sdl2_ttf for armeabi-v7a [INFO]: sdl2_ttf has no prebuild_armeabi_v7a, skipping [INFO]: Prebuilding sqlite3 for armeabi-v7a [INFO]: sqlite3 has no prebuild_armeabi_v7a, skipping [INFO]: Prebuilding python3 for armeabi-v7a [INFO]: python3 has no prebuild_armeabi_v7a, skipping [INFO]: Applying patches for python3[armeabi-v7a] [INFO]: Applying patch patches/fix-ctypes-util-find-library.patch [INFO]: -> running patch -t -d /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build...(and 266 more) [INFO]: -> running touch /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other...(and 82 more)
[INFO]: Prebuilding sdl2 for armeabi-v7a [INFO]: sdl2 has no prebuild_armeabi_v7a, skipping [INFO]: Prebuilding six for armeabi-v7a [INFO]: six has no prebuild_armeabi_v7a, skipping [INFO]: Prebuilding pyjnius for armeabi-v7a [INFO]: pyjnius has no prebuild_armeabi_v7a, skipping [INFO]: Applying patches for pyjnius[armeabi-v7a] [INFO]: Applying patch sdl2_jnienv_getter.patch [INFO]: -> running patch -t -d /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build...(and 238 more) [INFO]: -> running touch /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other...(and 72 more)
[INFO]: Prebuilding android for armeabi-v7a [INFO]: android has no prebuild_armeabi_v7a, skipping [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other_builds/android-python3-sdl2/armeabi-v7a
ndk_target_21/android [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Prebuilding kivy for armeabi-v7a [INFO]: kivy has no prebuild_armeabi_v7a, skipping [INFO]: # Building recipes [INFO]: Building hostpython3 for armeabi-v7a [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other_builds/hostpython3/desktop/hostpython3 [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other_builds/hostpython3/desktop/hostpython3/native-build [INFO]: -> running configure [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other_builds/hostpython3/desktop/hostpython3 [INFO]: -> running cp Modules/Setup.dist /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/b...(and 82 more) [INFO]: -> running make -j 4 -C /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/buil...(and 59 more) [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android
[INFO]: Building libffi for armeabi-v7a [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi [INFO]: -> running autogen.sh [INFO]: -> running autoreconf -vif
[INFO]: -> running configure --host=arm-linux-androideabi --prefix=/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.bu...(and 125 more)
[INFO]: -> running make -j5 libffi.la
working: make: [libffi.la] Error 1 Exception in thread background thread for pid 23673: Traceback (most recent call last): File "/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 917, in _bootstrap_inner self.run() File "/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 865, in run self._target(self._args, self._kwargs) File "/usr/local/lib/python3.7/site-packages/sh.py", line 1540, in wrap fn(*args, **kwargs) File "/usr/local/lib/python3.7/site-packages/sh.py", line 2459, in background_thread handle_exit_code(exit_code) File "/usr/local/lib/python3.7/site-packages/sh.py", line 2157, in fn return self.command.handle_command_exit_code(exit_code) File "/usr/local/lib/python3.7/site-packages/sh.py", line 815, in handle_command_exit_code raise exc sh.ErrorReturnCode_2:

RAN: /usr/bin/make -j5 libffi.la

STDOUT: depbase=echo src/arm/sysv.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||';\ /bin/sh ./libtool --tag=CC --mode=compile arm-linux-androideabi-gcc -DANDROID -fomit-frame-pointer -DANDROID_API__=21 -mandroid -isystem /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -I/Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -isysroot /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/python-installs/testkivy1/include/python3.7 -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -I. -I./include -Iinclude -I./src -DANDROID -fomit-frame-pointer -DANDROID_API=21 -mandroid -isystem /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -I/Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -isysroot /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/python-installs/testkivy1/include/python3.7 -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -MT src/arm/sysv.lo -MD -MP -MF $depbase.Tpo -c -o src/arm/sysv.lo src/arm/sysv.S &&\ mv -f $depbase.Tpo $depbase.Plo ... libtool: compile: arm-linux-androideabi-gcc -DANDROID -fomit-frame-pointer -D__ANDROID_API=21 -mandroid -isystem /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -I/Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -isysroot /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/python-installs/testkivy1/include/python3.7 -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -I. -I./include -Iinclude -I./src -DANDROID -fomit-frame-pointer -D__ANDROID_API__=21 -mandroid -isystem /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -I/Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -isysroot /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/python-installs/testkivy1/include/python3.7 -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -MT src/arm/sysv.lo -MD -MP -MF src/arm/.deps/sysv.Tpo -c src/arm/sysv.S -fPIC -DPIC -o src/arm/.libs/sysv.o src/arm/sysv.S: Assembler messages: src/arm/sysv.S:399: conditional infixes are deprecated in unified syntax ... /Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtbegin_so.o: No such file or directory /Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: fatal error: /Users/mark/.buildozer/android/platform/android-ndk-r17c/platforms/android-21/arch-arm: pread failed: Is a directory collect2: error: ld returned 1 exit status make: *** [libffi.la] Error 1

STDERR:

[INFO]: make libffi.la failed as expected [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other_builds/libffi/armeabi-v7andk_target_21/libffi [INFO]: -> running arm-linux-androideabi-gcc -DANDROID -fomit-frame-pointer -DANDROID_API=21 -mandroid -isystem /Users/mkr...(and 1982 more) [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other_builds/libffi/armeabi-v7andk_target_21/libffi [INFO]: -> running cp /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other_bu...(and 197 more) [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Building openssl for armeabi-v7a [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other_builds/openssl/armeabi-v7andk_target_21/openssl1.1 [INFO]: -> running perl Configure shared no-dso no-asm android-arm -DANDROID_API=21 [INFO]: Applying patch disable-sover.patch
[INFO]: -> running patch -t -d /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build...(and 223 more) [INFO]: -> running make build_libs
[INFO]: -> running cp libssl1.1.so libcrypto1.1.so /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/...(and 59 more)
[INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android [INFO]: Building sdl2_image for armeabi-v7a [INFO]: Building sdl2_mixer for armeabi-v7a [INFO]: Building sdl2_ttf for armeabi-v7a [INFO]: Building sqlite3 for armeabi-v7a [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other_builds/sqlite3/armeabi-v7a__ndk_target_21/sqlite3 [INFO]: -> running ndk-build V=1 APP_PLATFORM=android-21 APP_ABI=armeabi-v7a [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android
[INFO]: Building python3 for armeabi-v7a [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a
ndk_target_21/python3/android-build [WARNING]: Doing some hacky stuff to link properly [INFO]: -> running cp /Users/mark/.buildozer/android/platform/android-ndk-r17c/platforms/android-21/arch-arm/usr/lib/crtbegin_so.o ./ [INFO]: -> running cp /Users/mark/.buildozer/android/platform/android-ndk-r17c/platforms/android-21/arch-arm/usr/lib/crtend_so.o ./ [INFO]: Activating flags for sqlite3 [INFO]: Activating flags for libffi [INFO]: Activating flags for openssl [INFO]: -> running configure --host=arm-linux-androideabi --build=x86_64-apple-darwin17.7.0 --enable-shared --disable-ipv6 ac_c...(and 310 more) [INFO]: <- directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android
[INFO]: Building sdl2 for armeabi-v7a [INFO]: -> directory context /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni [INFO]: -> running ndk-build V=1 working: make: [/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_b...(and 60 more) Exception in thread background thread for pid 44770: Traceback (most recent call last): File "/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 917, in _bootstrap_inner self.run() File "/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 865, in run self._target(self._args, self._kwargs) File "/usr/local/lib/python3.7/site-packages/sh.py", line 1540, in wrap fn(*args, **kwargs) File "/usr/local/lib/python3.7/site-packages/sh.py", line 2459, in background_thread handle_exit_code(exit_code) File "/usr/local/lib/python3.7/site-packages/sh.py", line 2157, in fn return self.command.handle_command_exit_code(exit_code) File "/usr/local/lib/python3.7/site-packages/sh.py", line 815, in handle_command_exit_code raise exc sh.ErrorReturnCode_2:

RAN: /Users/mark/.buildozer/android/platform/android-ndk-r17c/ndk-build V=1

STDOUT: Android NDK: WARNING:/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/Android.mk:main: non-system libraries in linker flags: -lpython3.7m
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
... /Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -MMD -MP -MF /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2/src/render/opengles2/SDL_render_gles2.o.d -gcc-toolchain /Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -g -target armv7-none-linux-androideabi21 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -DNDEBUG -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL/include -I/Users/mark/.buildozer/android/platform/android-ndk-r17c/sources/cxx-stl/system/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL -DANDROID -DGL_GLEXT_PROTOTYPES -D__ANDROID_API__=21 -Wa,--noexecstack -Wformat -Werror=format-security --sysroot /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot -isystem /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -c /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL/src/render/opengles2/SDL_render_gles2.c -o /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2/src/render/opengles2/SDL_render_gles2.o In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL/src/render/opengles2/SDL_render_gles2.c:304: /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL/src/render/opengles2/SDL_gles2funcs.h:58:1: warning: incompatible pointer types assigning to 'void (*)(GLuint, GLsizei, const GLchar , const GLint )' (aka 'void ()(unsigned int, int, const char , const int )') from 'void (GLuint, GLsizei, const GLchar const , const GLint )' (aka 'void (unsigned int, int, const char const , const int *)') [-Wincompatible-pointer-types] SDL_PROC(void, glShaderSource, (GLuint, GLsizei, const GLchar **, const ... ^ ~~~~~~ /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL/src/render/opengles2/SDL_render_gles2.c:293:45: note: expanded from macro 'SDL_PROC'

define SDL_PROC(ret,func,params) data->func=func;

                                        ^~~~~

1 warning generated. [armeabi-v7a] Compile thumb : SDL2 <= SDL_shaders_gles2.c ... /Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -MMD -MP -MF /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_mixer/external/libvorbisidec-1.2.1/mdct.o.d -gcc-toolchain /Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -g -target armv7-none-linux-androideabi21 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -marm -O2 -DNDEBUG -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/timidity -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libogg-1.3.1/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1 -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL/include -I/Users/mark/.buildozer/android/platform/android-ndk-r17c/sources/cxx-stl/system/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer -DANDROID -DWAV_MUSIC -DMID_MUSIC -DUSE_TIMIDITY_MIDI -DOGG_MUSIC -DOGG_USE_TREMOR -DOGG_HEADER="" -D_ARMASSEM -D__ANDROID_API__=21 -Wa,--noexecstack -Wformat -Werror=format-security --sysroot /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot -isystem /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -c /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/mdct.c -o /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_mixer/external/libvorbisidec-1.2.1/mdct.o In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/mdct.c:39: /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/mdct_lookup.h:21:14: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] static const LOOKUP_T sincos_lookup0[1026] = { ^ /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/misc.h:28:20: note: expanded from macro 'LOOKUP_T'

define LOOKUP_T const ogg_int32_t

               ^

In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/mdct.c:39: /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/mdct_lookup.h:282:14: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] static const LOOKUP_T sincos_lookup1[1024] = { ^ /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/misc.h:28:20: note: expanded from macro 'LOOKUP_T'

define LOOKUP_T const ogg_int32_t

               ^

2 warnings generated. [armeabi-v7a] Compile arm : SDL2_mixer <= block.c ... /Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -MMD -MP -MF /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_mixer/external/libvorbisidec-1.2.1/window.o.d -gcc-toolchain /Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -g -target armv7-none-linux-androideabi21 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -marm -O2 -DNDEBUG -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/timidity -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libogg-1.3.1/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1 -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL/include -I/Users/mark/.buildozer/android/platform/android-ndk-r17c/sources/cxx-stl/system/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer -DANDROID -DWAV_MUSIC -DMID_MUSIC -DUSE_TIMIDITY_MIDI -DOGG_MUSIC -DOGG_USE_TREMOR -DOGG_HEADER="" -D_ARMASSEM -D__ANDROID_API__=21 -Wa,--noexecstack -Wformat -Werror=format-security --sysroot /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot -isystem /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -c /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window.c -o /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_mixer/external/libvorbisidec-1.2.1/window.o In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window.c:22: /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window_lookup.h:21:14: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] static const LOOKUP_T vwin64[32] = { ^ /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/misc.h:28:20: note: expanded from macro 'LOOKUP_T'

define LOOKUP_T const ogg_int32_t

               ^

In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window.c:22: /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window_lookup.h:32:14: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] static const LOOKUP_T vwin128[64] = { ^ /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/misc.h:28:20: note: expanded from macro 'LOOKUP_T'

define LOOKUP_T const ogg_int32_t

               ^

In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window.c:22: /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window_lookup.h:51:14: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] static const LOOKUP_T vwin256[128] = { ^ /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/misc.h:28:20: note: expanded from macro 'LOOKUP_T'

define LOOKUP_T const ogg_int32_t

               ^

In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window.c:22: /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window_lookup.h:86:14: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] static const LOOKUP_T vwin512[256] = { ^ /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/misc.h:28:20: note: expanded from macro 'LOOKUP_T'

define LOOKUP_T const ogg_int32_t

               ^

In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window.c:22: /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window_lookup.h:153:14: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] static const LOOKUP_T vwin1024[512] = { ^ /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/misc.h:28:20: note: expanded from macro 'LOOKUP_T'

define LOOKUP_T const ogg_int32_t

               ^

In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window.c:22: /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window_lookup.h:284:14: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] static const LOOKUP_T vwin2048[1024] = { ^ /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/misc.h:28:20: note: expanded from macro 'LOOKUP_T'

define LOOKUP_T const ogg_int32_t

               ^

In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window.c:22: /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window_lookup.h:543:14: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] static const LOOKUP_T vwin4096[2048] = { ^ /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/misc.h:28:20: note: expanded from macro 'LOOKUP_T'

define LOOKUP_T const ogg_int32_t

               ^

In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window.c:22: /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window_lookup.h:1058:14: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] static const LOOKUP_T vwin8192[4096] = { ^ /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/misc.h:28:20: note: expanded from macro 'LOOKUP_T'

define LOOKUP_T const ogg_int32_t

               ^

8 warnings generated. [armeabi-v7a] Compile arm : SDL2_mixer <= synthesis.c ... /Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -MMD -MP -MF /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_ttf/external/freetype-2.4.12/src/base/ftbase.o.d -gcc-toolchain /Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -g -target armv7-none-linux-androideabi21 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -DNDEBUG -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL/include -I/Users/mark/.buildozer/android/platform/android-ndk-r17c/sources/cxx-stl/system/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf -DANDROID -DFT2_BUILD_LIBRARY -D__ANDROID_API__=21 -Wa,--noexecstack -Wformat -Werror=format-security --sysroot /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot -isystem /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -c /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/base/ftbase.c -o /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_ttf/external/freetype-2.4.12/src/base/ftbase.o In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/base/ftbase.c:29: /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/base/ftobjs.c:3313:21: warning: comparison 'FT_ULong' (aka 'unsigned long') > 4294967295 is always false [-Wtautological-constant-compare] if ( charcode > 0xFFFFFFFFUL )


/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/base/ftobjs.c:3401:23: warning: 
      comparison 'FT_ULong' (aka 'unsigned long') > 4294967295 is always false
      [-Wtautological-constant-compare]
        if ( charcode > 0xFFFFFFFFUL )
             ~~~~~~~~ ^ ~~~~~~~~~~~~
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/base/ftobjs.c:3406:30: warning: 
      comparison 'FT_ULong' (aka 'unsigned long') > 4294967295 is always false
      [-Wtautological-constant-compare]
        if ( variantSelector > 0xFFFFFFFFUL )
             ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/base/ftobjs.c:3442:23: warning: 
      comparison 'FT_ULong' (aka 'unsigned long') > 4294967295 is always false
      [-Wtautological-constant-compare]
        if ( charcode > 0xFFFFFFFFUL )
             ~~~~~~~~ ^ ~~~~~~~~~~~~
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/base/ftobjs.c:3447:30: warning: 
      comparison 'FT_ULong' (aka 'unsigned long') > 4294967295 is always false
      [-Wtautological-constant-compare]
        if ( variantSelector > 0xFFFFFFFFUL )
             ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/base/ftobjs.c:3510:23: warning: 
      comparison 'FT_ULong' (aka 'unsigned long') > 4294967295 is always false
      [-Wtautological-constant-compare]
        if ( charcode > 0xFFFFFFFFUL )
             ~~~~~~~~ ^ ~~~~~~~~~~~~
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/base/ftobjs.c:3544:30: warning: 
      comparison 'FT_ULong' (aka 'unsigned long') > 4294967295 is always false
      [-Wtautological-constant-compare]
        if ( variantSelector > 0xFFFFFFFFUL )
             ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
7 warnings generated.
[armeabi-v7a] Compile thumb  : SDL2_ttf <= ftbbox.c
...
/Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -MMD -MP -MF /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_ttf/external/freetype-2.4.12/src/base/ftstroke.o.d -gcc-toolchain /Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -g -target armv7-none-linux-androideabi21 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -DNDEBUG  -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL/include -I/Users/mark/.buildozer/android/platform/android-ndk-r17c/sources/cxx-stl/system/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf   -DANDROID -DFT2_BUILD_LIBRARY -D__ANDROID_API__=21 -Wa,--noexecstack -Wformat -Werror=format-security  --sysroot /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot -isystem /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -c  /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/base/ftstroke.c -o /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_ttf/external/freetype-2.4.12/src/base/ftstroke.o
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/base/ftstroke.c:1955:29: warning: 
      comparison 'FT_StrokerBorder' (aka 'enum FT_StrokerBorder_') > 1 is always
      false [-Wtautological-constant-compare]
    if ( !stroker || border > 1 )
                     ~~~~~~ ^ ~
1 warning generated.
[armeabi-v7a] Compile thumb  : SDL2_ttf <= ftsynth.c
...
/Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -MMD -MP -MF /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_ttf/external/freetype-2.4.12/src/bdf/bdf.o.d -gcc-toolchain /Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -g -target armv7-none-linux-androideabi21 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -DNDEBUG  -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL/include -I/Users/mark/.buildozer/android/platform/android-ndk-r17c/sources/cxx-stl/system/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf   -DANDROID -DFT2_BUILD_LIBRARY -D__ANDROID_API__=21 -Wa,--noexecstack -Wformat -Werror=format-security  --sysroot /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot -isystem /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -c  /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/bdf/bdf.c -o /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_ttf/external/freetype-2.4.12/src/bdf/bdf.o
In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/bdf/bdf.c:31:
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/bdf/bdfdrivr.c:173:19: warning: 
      comparison 'FT_ULong' (aka 'unsigned long') > 4294967295 is always false
      [-Wtautological-constant-compare]
    if ( charcode > 0xFFFFFFFFUL )
         ~~~~~~~~ ^ ~~~~~~~~~~~~
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/bdf/bdfdrivr.c:763:28: warning: 
      comparison 'long' > 2147483647 is always false
      [-Wtautological-constant-compare]
        if ( prop->value.l > 0x7FFFFFFFL || prop->value.l < ( -1 - 0x7FF...
             ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/bdf/bdfdrivr.c:763:59: warning: 
      comparison 'long' < -2147483648 is always false
      [-Wtautological-constant-compare]
  ...( prop->value.l > 0x7FFFFFFFL || prop->value.l < ( -1 - 0x7FFFFFFFL ) )
                                      ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/bdf/bdfdrivr.c:773:29: warning: 
      comparison 'unsigned long' > 4294967295 is always false
      [-Wtautological-constant-compare]
        if ( prop->value.ul > 0xFFFFFFFFUL )
             ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
4 warnings generated.
[armeabi-v7a] Compile thumb  : SDL2_ttf <= ftbzip2.c
...
/Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -MMD -MP -MF /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_ttf/external/freetype-2.4.12/src/pcf/pcf.o.d -gcc-toolchain /Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -g -target armv7-none-linux-androideabi21 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -DNDEBUG  -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL/include -I/Users/mark/.buildozer/android/platform/android-ndk-r17c/sources/cxx-stl/system/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf   -DANDROID -DFT2_BUILD_LIBRARY -D__ANDROID_API__=21 -Wa,--noexecstack -Wformat -Werror=format-security  --sysroot /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot -isystem /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -c  /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/pcf/pcf.c -o /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_ttf/external/freetype-2.4.12/src/pcf/pcf.o
In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/pcf/pcf.c:34:
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/pcf/pcfdrivr.c:180:19: warning: 
      comparison 'FT_ULong' (aka 'unsigned long') > 4294967295 is always false
      [-Wtautological-constant-compare]
    if ( charcode > 0xFFFFFFFFUL )
         ~~~~~~~~ ^ ~~~~~~~~~~~~
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/pcf/pcfdrivr.c:610:28: warning: 
      comparison 'FT_Long' (aka 'long') > 2147483647 is always false
      [-Wtautological-constant-compare]
        if ( prop->value.l > 0x7FFFFFFFL || prop->value.l < ( -1 - 0x7FF...
             ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/pcf/pcfdrivr.c:610:59: warning: 
      comparison 'FT_Long' (aka 'long') < -2147483648 is always false
      [-Wtautological-constant-compare]
  ...( prop->value.l > 0x7FFFFFFFL || prop->value.l < ( -1 - 0x7FFFFFFFL ) )
                                      ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
[armeabi-v7a] Compile thumb  : SDL2_ttf <= pfr.c
...
/Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ -Wl,-soname,libmain.so -shared --sysroot=/Users/mark/.buildozer/android/platform/android-ndk-r17c/platforms/android-21/arch-arm /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/main/__/__/SDL/src/main/android/SDL_android_main.o /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/main/start.o -lgcc -Wl,--exclude-libs,libgcc.a -latomic -Wl,--exclude-libs,libatomic.a /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/libSDL2.so  -gcc-toolchain /Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 -no-canonical-prefixes -target armv7-none-linux-androideabi21 -Wl,--fix-cortex-a8 -L/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3/android-build -Wl,--build-id -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--warn-shared-textrel -Wl,--fatal-warnings   -L/Users/mark/.buildozer/android/platform/android-ndk-r17c/platforms/android-21/arch-arm/usr/lib -lGLESv1_CM -lGLESv2 -llog -lpython3.7m -lstdc++ -lc -lm -o /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/libmain.so

/Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lpython3.7m

/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:51: error: undefined reference to 'PyModule_Create2'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:158: error: undefined reference to 'Py_SetProgramName'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:164: error: undefined reference to 'PyImport_AppendInittab'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:197: error: undefined reference to 'Py_DecodeLocale'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:198: error: undefined reference to 'Py_SetPath'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:209: error: undefined reference to 'Py_Initialize'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:226: error: undefined reference to 'PyEval_InitThreads'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:232: error: undefined reference to 'PyRun_SimpleStringFlags'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:238: error: undefined reference to 'PyRun_SimpleStringFlags'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:244: error: undefined reference to 'PyRun_SimpleStringFlags'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:260: error: undefined reference to 'PyRun_SimpleStringFlags'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:370: error: undefined reference to 'PyRun_SimpleFileExFlags'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:373: error: undefined reference to 'PyErr_Occurred'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:375: error: undefined reference to 'PyErr_Print'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:376: error: undefined reference to 'PySys_GetObject'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:377: error: undefined reference to 'PyFile_WriteString'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:379: error: undefined reference to 'PyErr_Clear'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:406: error: undefined reference to 'Py_FinalizeEx'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:35: error: undefined reference to '_PyArg_ParseTuple_SizeT'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:0: error: undefined reference to '_Py_NoneStruct'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/libmain.so] Error 1

  STDERR:

Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1081, in <module>
    main()
  File "/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1075, in main
    ToolchainCL()
  File "/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 577, in __init__
    getattr(self, args.subparser_name.replace('-', '_'))(args)
  File "/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 151, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 200, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx)
  File "/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 562, in build_recipes
    recipe.build_arch(arch)
  File "/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/sdl2/__init__.py", line 26, in build_arch
    shprint(sh.ndk_build, "V=1", _env=env)
  File "/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/python-for-android/pythonforandroid/logger.py", line 178, in shprint
    for line in output:
  File "/usr/local/lib/python3.7/site-packages/sh.py", line 863, in next
    self.wait()
  File "/usr/local/lib/python3.7/site-packages/sh.py", line 792, in wait
    self.handle_command_exit_code(exit_code)
  File "/usr/local/lib/python3.7/site-packages/sh.py", line 815, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_2: 

  RAN: /Users/mark/.buildozer/android/platform/android-ndk-r17c/ndk-build V=1

  STDOUT:
Android NDK: WARNING:/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/Android.mk:main: non-system libraries in linker flags: -lpython3.7m    
Android NDK:     This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES    
Android NDK:     or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the    
Android NDK:     current module    
...
/Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -MMD -MP -MF /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2/src/render/opengles2/SDL_render_gles2.o.d -gcc-toolchain /Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -g -target armv7-none-linux-androideabi21 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -DNDEBUG  -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL/include -I/Users/mark/.buildozer/android/platform/android-ndk-r17c/sources/cxx-stl/system/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL   -DANDROID -DGL_GLEXT_PROTOTYPES -D__ANDROID_API__=21 -Wa,--noexecstack -Wformat -Werror=format-security  --sysroot /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot -isystem /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -c  /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL/src/render/opengles2/SDL_render_gles2.c -o /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2/src/render/opengles2/SDL_render_gles2.o
In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL/src/render/opengles2/SDL_render_gles2.c:304:
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL/src/render/opengles2/SDL_gles2funcs.h:58:1: warning: 
      incompatible pointer types assigning to 'void (*)(GLuint, GLsizei, const
      GLchar **, const GLint *)' (aka 'void (*)(unsigned int, int, const char
      **, const int *)') from 'void (GLuint, GLsizei, const GLchar *const *,
      const GLint *)' (aka 'void (unsigned int, int, const char *const *, const
      int *)') [-Wincompatible-pointer-types]
SDL_PROC(void, glShaderSource, (GLuint, GLsizei, const GLchar **, const ...
^              ~~~~~~~~~~~~~~
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL/src/render/opengles2/SDL_render_gles2.c:293:45: note: 
      expanded from macro 'SDL_PROC'
#define SDL_PROC(ret,func,params) data->func=func;
                                            ^~~~~
1 warning generated.
[armeabi-v7a] Compile thumb  : SDL2 <= SDL_shaders_gles2.c
...
/Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -MMD -MP -MF /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_mixer/external/libvorbisidec-1.2.1/mdct.o.d -gcc-toolchain /Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -g -target armv7-none-linux-androideabi21 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -marm -O2 -DNDEBUG  -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/timidity -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libogg-1.3.1/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1 -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL/include -I/Users/mark/.buildozer/android/platform/android-ndk-r17c/sources/cxx-stl/system/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer   -DANDROID -DWAV_MUSIC -DMID_MUSIC -DUSE_TIMIDITY_MIDI -DOGG_MUSIC -DOGG_USE_TREMOR -DOGG_HEADER="<ivorbisfile.h>" -D_ARM_ASSEM_ -D__ANDROID_API__=21 -Wa,--noexecstack -Wformat -Werror=format-security  --sysroot /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot -isystem /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -c  /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/mdct.c -o /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_mixer/external/libvorbisidec-1.2.1/mdct.o
In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/mdct.c:39:
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/mdct_lookup.h:21:14: warning: 
      duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
static const LOOKUP_T sincos_lookup0[1026] = {
             ^
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/misc.h:28:20: note: 
      expanded from macro 'LOOKUP_T'
#  define LOOKUP_T const ogg_int32_t
                   ^
In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/mdct.c:39:
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/mdct_lookup.h:282:14: warning: 
      duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
static const LOOKUP_T sincos_lookup1[1024] = {
             ^
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/misc.h:28:20: note: 
      expanded from macro 'LOOKUP_T'
#  define LOOKUP_T const ogg_int32_t
                   ^
2 warnings generated.
[armeabi-v7a] Compile arm    : SDL2_mixer <= block.c
...
/Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -MMD -MP -MF /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_mixer/external/libvorbisidec-1.2.1/window.o.d -gcc-toolchain /Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -g -target armv7-none-linux-androideabi21 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -marm -O2 -DNDEBUG  -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/timidity -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libogg-1.3.1/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1 -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL/include -I/Users/mark/.buildozer/android/platform/android-ndk-r17c/sources/cxx-stl/system/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer   -DANDROID -DWAV_MUSIC -DMID_MUSIC -DUSE_TIMIDITY_MIDI -DOGG_MUSIC -DOGG_USE_TREMOR -DOGG_HEADER="<ivorbisfile.h>" -D_ARM_ASSEM_ -D__ANDROID_API__=21 -Wa,--noexecstack -Wformat -Werror=format-security  --sysroot /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot -isystem /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -c  /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window.c -o /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_mixer/external/libvorbisidec-1.2.1/window.o
In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window.c:22:
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window_lookup.h:21:14: warning: 
      duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
static const LOOKUP_T vwin64[32] = {
             ^
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/misc.h:28:20: note: 
      expanded from macro 'LOOKUP_T'
#  define LOOKUP_T const ogg_int32_t
                   ^
In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window.c:22:
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window_lookup.h:32:14: warning: 
      duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
static const LOOKUP_T vwin128[64] = {
             ^
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/misc.h:28:20: note: 
      expanded from macro 'LOOKUP_T'
#  define LOOKUP_T const ogg_int32_t
                   ^
In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window.c:22:
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window_lookup.h:51:14: warning: 
      duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
static const LOOKUP_T vwin256[128] = {
             ^
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/misc.h:28:20: note: 
      expanded from macro 'LOOKUP_T'
#  define LOOKUP_T const ogg_int32_t
                   ^
In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window.c:22:
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window_lookup.h:86:14: warning: 
      duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
static const LOOKUP_T vwin512[256] = {
             ^
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/misc.h:28:20: note: 
      expanded from macro 'LOOKUP_T'
#  define LOOKUP_T const ogg_int32_t
                   ^
In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window.c:22:
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window_lookup.h:153:14: warning: 
      duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
static const LOOKUP_T vwin1024[512] = {
             ^
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/misc.h:28:20: note: 
      expanded from macro 'LOOKUP_T'
#  define LOOKUP_T const ogg_int32_t
                   ^
In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window.c:22:
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window_lookup.h:284:14: warning: 
      duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
static const LOOKUP_T vwin2048[1024] = {
             ^
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/misc.h:28:20: note: 
      expanded from macro 'LOOKUP_T'
#  define LOOKUP_T const ogg_int32_t
                   ^
In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window.c:22:
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window_lookup.h:543:14: warning: 
      duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
static const LOOKUP_T vwin4096[2048] = {
             ^
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/misc.h:28:20: note: 
      expanded from macro 'LOOKUP_T'
#  define LOOKUP_T const ogg_int32_t
                   ^
In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window.c:22:
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/window_lookup.h:1058:14: warning: 
      duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
static const LOOKUP_T vwin8192[4096] = {
             ^
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_mixer/external/libvorbisidec-1.2.1/misc.h:28:20: note: 
      expanded from macro 'LOOKUP_T'
#  define LOOKUP_T const ogg_int32_t
                   ^
8 warnings generated.
[armeabi-v7a] Compile arm    : SDL2_mixer <= synthesis.c
...
/Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -MMD -MP -MF /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_ttf/external/freetype-2.4.12/src/base/ftbase.o.d -gcc-toolchain /Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -g -target armv7-none-linux-androideabi21 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -DNDEBUG  -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL/include -I/Users/mark/.buildozer/android/platform/android-ndk-r17c/sources/cxx-stl/system/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf   -DANDROID -DFT2_BUILD_LIBRARY -D__ANDROID_API__=21 -Wa,--noexecstack -Wformat -Werror=format-security  --sysroot /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot -isystem /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -c  /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/base/ftbase.c -o /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_ttf/external/freetype-2.4.12/src/base/ftbase.o
In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/base/ftbase.c:29:
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/base/ftobjs.c:3313:21: warning: 
      comparison 'FT_ULong' (aka 'unsigned long') > 4294967295 is always false
      [-Wtautological-constant-compare]
      if ( charcode > 0xFFFFFFFFUL )
           ~~~~~~~~ ^ ~~~~~~~~~~~~
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/base/ftobjs.c:3401:23: warning: 
      comparison 'FT_ULong' (aka 'unsigned long') > 4294967295 is always false
      [-Wtautological-constant-compare]
        if ( charcode > 0xFFFFFFFFUL )
             ~~~~~~~~ ^ ~~~~~~~~~~~~
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/base/ftobjs.c:3406:30: warning: 
      comparison 'FT_ULong' (aka 'unsigned long') > 4294967295 is always false
      [-Wtautological-constant-compare]
        if ( variantSelector > 0xFFFFFFFFUL )
             ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/base/ftobjs.c:3442:23: warning: 
      comparison 'FT_ULong' (aka 'unsigned long') > 4294967295 is always false
      [-Wtautological-constant-compare]
        if ( charcode > 0xFFFFFFFFUL )
             ~~~~~~~~ ^ ~~~~~~~~~~~~
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/base/ftobjs.c:3447:30: warning: 
      comparison 'FT_ULong' (aka 'unsigned long') > 4294967295 is always false
      [-Wtautological-constant-compare]
        if ( variantSelector > 0xFFFFFFFFUL )
             ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/base/ftobjs.c:3510:23: warning: 
      comparison 'FT_ULong' (aka 'unsigned long') > 4294967295 is always false
      [-Wtautological-constant-compare]
        if ( charcode > 0xFFFFFFFFUL )
             ~~~~~~~~ ^ ~~~~~~~~~~~~
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/base/ftobjs.c:3544:30: warning: 
      comparison 'FT_ULong' (aka 'unsigned long') > 4294967295 is always false
      [-Wtautological-constant-compare]
        if ( variantSelector > 0xFFFFFFFFUL )
             ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
7 warnings generated.
[armeabi-v7a] Compile thumb  : SDL2_ttf <= ftbbox.c
...
/Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -MMD -MP -MF /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_ttf/external/freetype-2.4.12/src/base/ftstroke.o.d -gcc-toolchain /Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -g -target armv7-none-linux-androideabi21 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -DNDEBUG  -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL/include -I/Users/mark/.buildozer/android/platform/android-ndk-r17c/sources/cxx-stl/system/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf   -DANDROID -DFT2_BUILD_LIBRARY -D__ANDROID_API__=21 -Wa,--noexecstack -Wformat -Werror=format-security  --sysroot /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot -isystem /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -c  /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/base/ftstroke.c -o /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_ttf/external/freetype-2.4.12/src/base/ftstroke.o
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/base/ftstroke.c:1955:29: warning: 
      comparison 'FT_StrokerBorder' (aka 'enum FT_StrokerBorder_') > 1 is always
      false [-Wtautological-constant-compare]
    if ( !stroker || border > 1 )
                     ~~~~~~ ^ ~
1 warning generated.
[armeabi-v7a] Compile thumb  : SDL2_ttf <= ftsynth.c
...
/Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -MMD -MP -MF /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_ttf/external/freetype-2.4.12/src/bdf/bdf.o.d -gcc-toolchain /Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -g -target armv7-none-linux-androideabi21 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -DNDEBUG  -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL/include -I/Users/mark/.buildozer/android/platform/android-ndk-r17c/sources/cxx-stl/system/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf   -DANDROID -DFT2_BUILD_LIBRARY -D__ANDROID_API__=21 -Wa,--noexecstack -Wformat -Werror=format-security  --sysroot /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot -isystem /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -c  /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/bdf/bdf.c -o /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_ttf/external/freetype-2.4.12/src/bdf/bdf.o
In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/bdf/bdf.c:31:
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/bdf/bdfdrivr.c:173:19: warning: 
      comparison 'FT_ULong' (aka 'unsigned long') > 4294967295 is always false
      [-Wtautological-constant-compare]
    if ( charcode > 0xFFFFFFFFUL )
         ~~~~~~~~ ^ ~~~~~~~~~~~~
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/bdf/bdfdrivr.c:763:28: warning: 
      comparison 'long' > 2147483647 is always false
      [-Wtautological-constant-compare]
        if ( prop->value.l > 0x7FFFFFFFL || prop->value.l < ( -1 - 0x7FF...
             ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/bdf/bdfdrivr.c:763:59: warning: 
      comparison 'long' < -2147483648 is always false
      [-Wtautological-constant-compare]
  ...( prop->value.l > 0x7FFFFFFFL || prop->value.l < ( -1 - 0x7FFFFFFFL ) )
                                      ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/bdf/bdfdrivr.c:773:29: warning: 
      comparison 'unsigned long' > 4294967295 is always false
      [-Wtautological-constant-compare]
        if ( prop->value.ul > 0xFFFFFFFFUL )
             ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
4 warnings generated.
[armeabi-v7a] Compile thumb  : SDL2_ttf <= ftbzip2.c
...
/Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -MMD -MP -MF /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_ttf/external/freetype-2.4.12/src/pcf/pcf.o.d -gcc-toolchain /Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -g -target armv7-none-linux-androideabi21 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -DNDEBUG  -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL/include -I/Users/mark/.buildozer/android/platform/android-ndk-r17c/sources/cxx-stl/system/include -I/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf   -DANDROID -DFT2_BUILD_LIBRARY -D__ANDROID_API__=21 -Wa,--noexecstack -Wformat -Werror=format-security  --sysroot /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot -isystem /Users/mark/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -c  /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/pcf/pcf.c -o /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/SDL2_ttf/external/freetype-2.4.12/src/pcf/pcf.o
In file included from /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/pcf/pcf.c:34:
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/pcf/pcfdrivr.c:180:19: warning: 
      comparison 'FT_ULong' (aka 'unsigned long') > 4294967295 is always false
      [-Wtautological-constant-compare]
    if ( charcode > 0xFFFFFFFFUL )
         ~~~~~~~~ ^ ~~~~~~~~~~~~
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/pcf/pcfdrivr.c:610:28: warning: 
      comparison 'FT_Long' (aka 'long') > 2147483647 is always false
      [-Wtautological-constant-compare]
        if ( prop->value.l > 0x7FFFFFFFL || prop->value.l < ( -1 - 0x7FF...
             ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/SDL2_ttf/external/freetype-2.4.12/src/pcf/pcfdrivr.c:610:59: warning: 
      comparison 'FT_Long' (aka 'long') < -2147483648 is always false
      [-Wtautological-constant-compare]
  ...( prop->value.l > 0x7FFFFFFFL || prop->value.l < ( -1 - 0x7FFFFFFFL ) )
                                      ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
[armeabi-v7a] Compile thumb  : SDL2_ttf <= pfr.c
...
[armeabi-v7a] SharedLibrary  : libmain.so
/Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ -Wl,-soname,libmain.so -shared --sysroot=/Users/mark/.buildozer/android/platform/android-ndk-r17c/platforms/android-21/arch-arm /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/main/__/__/SDL/src/main/android/SDL_android_main.o /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/main/start.o -lgcc -Wl,--exclude-libs,libgcc.a -latomic -Wl,--exclude-libs,libatomic.a /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/libSDL2.so  -gcc-toolchain /Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64 -no-canonical-prefixes -target armv7-none-linux-androideabi21 -Wl,--fix-cortex-a8 -L/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3/android-build -Wl,--build-id -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--warn-shared-textrel -Wl,--fatal-warnings   -L/Users/mark/.buildozer/android/platform/android-ndk-r17c/platforms/android-21/arch-arm/usr/lib -lGLESv1_CM -lGLESv2 -llog -lpython3.7m -lstdc++ -lc -lm -o /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/libmain.so

/Users/mark/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lpython3.7m

/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:51: error: undefined reference to 'PyModule_Create2'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:158: error: undefined reference to 'Py_SetProgramName' /Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:164: error: undefined reference to 'PyImport_AppendInittab'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:197: error: undefined reference to 'Py_DecodeLocale'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:198: error: undefined reference to 'Py_SetPath'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:209: error: undefined reference to 'Py_Initialize'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:226: error: undefined reference to 'PyEval_InitThreads'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:232: error: undefined reference to 'PyRun_SimpleStringFlags'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:238: error: undefined reference to 'PyRun_SimpleStringFlags'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:244: error: undefined reference to 'PyRun_SimpleStringFlags'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:260: error: undefined reference to 'PyRun_SimpleStringFlags'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:370: error: undefined reference to 'PyRun_SimpleFileExFlags'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:373: error: undefined reference to 'PyErr_Occurred'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:375: error: undefined reference to 'PyErr_Print'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:376: error: undefined reference to 'PySys_GetObject'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:377: error: undefined reference to 'PyFile_WriteString'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:379: error: undefined reference to 'PyErr_Clear'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:406: error: undefined reference to 'Py_FinalizeEx'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:35: error: undefined reference to '_PyArg_ParseTuple_SizeT'
/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/jni/application/src/start.c:0: error: undefined reference to '_Py_NoneStruct'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/libmain.so] Error 1

  STDERR:

# Command failed: /usr/local/opt/python/bin/python3.7 -m pythonforandroid.toolchain create --dist_name=testkivy1 --bootstrap=sdl2 --requirements=python3,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/Users/mark/kivy_examples/kivy-org-yt-t2-android-apk/.buildozer/android/platform/build" --ndk-api=21
# 
# 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
OptimusGREEN commented 5 years ago

I don't know if this might be useful. https://github.com/kivy/kivy/issues/6196

iruriksl commented 5 years ago

I am having this issue for more than 2 months earlier and haven't found solution to this. Can anyone guide me (OptimusGREEN,...) to resolve this as I have noe clue of the problem till Earlier it was building fine with ndk 9c.

PFA the logs for reference. buildozer.spec.txt kivy_error_commnty_post_reply.txt