question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pillow's recipe problem in aab generation

See original GitHub issue

Hi, in first I’d thank you all for the development of this tool and @misl6 for the recent implementation about .aab package! I tried and had success building the aab file from @misl6 p4a’s and buildozer’s branch.

But I only could get success by removing the Pillow from the requirements of buildozer.spec. I thing there’s something with Pillow recipe or I’m doing wrong the implementation. I’m passed the bug related by @Guhan-SenSam about opencv.

I’m using Kivymd and it kind of depends of pillow. ‘’‘’ [INFO]: <- directory context /home/ros/APP_MD_ADS/python-for-android [INFO]: Building Pillow for armeabi-v7a [INFO]: Pillow apparently isn’t already in site-packages [INFO]: Building compiled components in Pillow [WARNING]: ndk_platform is deprecated and should be avoided in new recipes [INFO]: -> directory context /home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/Pillow/armeabi-v7a__ndk_target_21/Pillow [DEBUG]: -> running python3 setup.py build_ext -v [DEBUG]: running build_ext [DEBUG]: building ‘PIL._imaging’ extension [DEBUG]: creating build [DEBUG]: building ‘PIL._imagingft’ extension [DEBUG]: building 'PIL.imagingmath’ extension [DEBUG]: building 'PIL.imagingmorph’ extension [DEBUG]: creating build/temp.linux-x86_64-3.8 [DEBUG]: creating build/temp.linux-x86_64-3.8 [DEBUG]: creating build/temp.linux-x86_64-3.8 [DEBUG]: creating build/temp.linux-x86_64-3.8/src [DEBUG]: creating build/temp.linux-x86_64-3.8/src [DEBUG]: /home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/png/armeabi-v7a__ndk_target_21/png -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/harfbuzz-freetype/armeabi-v7a__ndk_target_21/harfbuzz -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/harfbuzz-freetype/armeabi-v7a__ndk_target_21/harfbuzz/src -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/freetype/armeabi-v7a__ndk_target_21/freetype/include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/jpeg/armeabi-v7a__ndk_target_21/jpeg -I/home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -lm -DANDROID -D__ANDROID_API=21 -I/home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/gastospessoais/armeabi-v7a/include/python3.8 -fPIC -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/Pillow/armeabi-v7a__ndk_target_21/Pillow/src/libImaging -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/jpeg/armeabi-v7a__ndk_target_21/jpeg -I/usr/include/openjpeg-2.3 -I/usr/include/x86_64-linux-gnu -I/home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/freetype/armeabi-v7a__ndk_target_21/freetype/include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/png/armeabi-v7a__ndk_target_21/png -I/home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi -I/usr/local/include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build -c src/imagingmath.c -o build/temp.linux-x86_64-3.8/src/imagingmath.o [DEBUG]: /home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/png/armeabi-v7a__ndk_target_21/png -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/harfbuzz-freetype/armeabi-v7a__ndk_target_21/harfbuzz -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/harfbuzz-freetype/armeabi-v7a__ndk_target_21/harfbuzz/src -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/freetype/armeabi-v7a__ndk_target_21/freetype/include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/jpeg/armeabi-v7a__ndk_target_21/jpeg -I/home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -lm -DANDROID -D__ANDROID_API=21 -I/home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/gastospessoais/armeabi-v7a/include/python3.8 -fPIC -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/Pillow/armeabi-v7a__ndk_target_21/Pillow/src/libImaging -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/jpeg/armeabi-v7a__ndk_target_21/jpeg -I/usr/include/openjpeg-2.3 -I/usr/include/x86_64-linux-gnu -I/home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/freetype/armeabi-v7a__ndk_target_21/freetype/include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/png/armeabi-v7a__ndk_target_21/png -I/home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi -I/usr/local/include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build -c src/imagingft.c -o build/temp.linux-x86_64-3.8/src/imagingft.o [DEBUG]: /home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/png/armeabi-v7a__ndk_target_21/png -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/harfbuzz-freetype/armeabi-v7a__ndk_target_21/harfbuzz -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/harfbuzz-freetype/armeabi-v7a__ndk_target_21/harfbuzz/src -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/freetype/armeabi-v7a__ndk_target_21/freetype/include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/jpeg/armeabi-v7a__ndk_target_21/jpeg -I/home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -lm -DANDROID -D__ANDROID_API=21 -I/home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/gastospessoais/armeabi-v7a/include/python3.8 -fPIC -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/Pillow/armeabi-v7a__ndk_target_21/Pillow/src/libImaging -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/jpeg/armeabi-v7a__ndk_target_21/jpeg -I/usr/include/openjpeg-2.3 -I/usr/include/x86_64-linux-gnu -I/home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/freetype/armeabi-v7a__ndk_target_21/freetype/include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/png/armeabi-v7a__ndk_target_21/png -I/home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi -I/usr/local/include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build -c src/imagingmorph.c -o build/temp.linux-x86_64-3.8/src/imagingmorph.o [DEBUG]: creating build/temp.linux-x86_64-3.8/src/libImaging [DEBUG]: /home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/png/armeabi-v7a__ndk_target_21/png -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/harfbuzz-freetype/armeabi-v7a__ndk_target_21/harfbuzz -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/harfbuzz-freetype/armeabi-v7a__ndk_target_21/harfbuzz/src -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/freetype/armeabi-v7a__ndk_target_21/freetype/include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/jpeg/armeabi-v7a__ndk_target_21/jpeg -I/home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -lm -DANDROID -D__ANDROID_API=21 -I/home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/gastospessoais/armeabi-v7a/include/python3.8 -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DPILLOW_VERSION=“7.0.0” -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/Pillow/armeabi-v7a__ndk_target_21/Pillow/src/libImaging -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/jpeg/armeabi-v7a__ndk_target_21/jpeg -I/usr/include/openjpeg-2.3 -I/usr/include/x86_64-linux-gnu -I/home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/freetype/armeabi-v7a__ndk_target_21/freetype/include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/png/armeabi-v7a__ndk_target_21/png -I/home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/arm-linux-androideabi -I/usr/local/include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Include -I/home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build -c src/_imaging.c -o build/temp.linux-x86_64-3.8/src/_imaging.o [DEBUG]: clang: warning: -lm: ‘linker’ input unused [-Wunused-command-line-argument] [DEBUG]: clang: warning: -lm: ‘linker’ input unused [-Wunused-command-line-argument] [DEBUG]: clang: warning: -lm: ‘linker’ input unused [-Wunused-command-line-argument] [DEBUG]: clang: warning: -lm: ‘linker’ input unused [-Wunused-command-line-argument] [DEBUG]: In file included from src/_imagingmath.c:16: [DEBUG]: In file included from /home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include/Python.h:11: [DEBUG]: In file included from /home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/8.0.2/include/limits.h:37: [DEBUG]: In file included from /home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/limits.h:38: [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:41:6: error: function-like macro [DEBUG]: ‘__GNUC_PREREQ’ is not defined [DEBUG]: # if __GNUC_PREREQ (4, 6) && !defined _LIBC [DEBUG]: ^ [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:54:30: error: function-like macro [DEBUG]: ‘__GNUC_PREREQ’ is not defined [DEBUG]: # if !defined __cplusplus && __GNUC_PREREQ (3, 3) [DEBUG]: ^ [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:60:30: error: function-like macro [DEBUG]: ‘__GNUC_PREREQ’ is not defined [DEBUG]: # if defined __cplusplus && __GNUC_PREREQ (2,8) [DEBUG]: ^ [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:126:5: error: function-like macro [DEBUG]: ‘__GNUC_PREREQ’ is not defined [DEBUG]: #if __GNUC_PREREQ (4,3) [DEBUG]: ^ [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:207:5: error: function-like macro [DEBUG]: ‘__GNUC_PREREQ’ is not defined [DEBUG]: #if __GNUC_PREREQ (2,96) [DEBUG]: ^ [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:215:5: error: function-like macro [DEBUG]: ‘__GNUC_PREREQ’ is not defined [DEBUG]: #if __GNUC_PREREQ (4, 3) [DEBUG]: ^ [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:225:5: error: function-like macro [DEBUG]: ‘__GNUC_PREREQ’ is not defined [DEBUG]: #if __GNUC_PREREQ (2,96) [DEBUG]: ^ [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:232:5: error: function-like macro [DEBUG]: ‘__GNUC_PREREQ’ is not defined [DEBUG]: #if __GNUC_PREREQ (2,5) [DEBUG]: ^ [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:241:5: error: function-like macro [DEBUG]: ‘__GNUC_PREREQ’ is not defined [DEBUG]: #if __GNUC_PREREQ (3,1) [DEBUG]: ^ [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:250:5: error: function-like macro [DEBUG]: ‘__GNUC_PREREQ’ is not defined [DEBUG]: #if __GNUC_PREREQ (3,2) [DEBUG]: ^ [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:259:5: error: function-like macro [DEBUG]: ‘__GNUC_PREREQ’ is not defined [DEBUG]: #if __GNUC_PREREQ (4,5)
[DEBUG]: ^ [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:273:5: error: function-like macro [DEBUG]: ‘__GNUC_PREREQ’ is In file included from notsrc/_imagingmorph.c :defined14 [DEBUG]: : [DEBUG]: In file included from /home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include/Python.h:11: [DEBUG]: In file included from /home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/8.0.2/include/limits.h#if __GNUC_PREREQ (2,8): [DEBUG]: 37 ^: [DEBUG]:
[DEBUG]: In file included from /home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/limits.h:/usr/include/x86_64-linux-gnu/sys/cdefs.h38:283: [DEBUG]: :/usr/include/x86_64-linux-gnu/sys/cdefs.h5::41 :error6: :function-like errormacro: [DEBUG]: function-like ‘__GNUC_PREREQ’macro [DEBUG]: is ‘__GNUC_PREREQ’not isdefined [DEBUG]: not defined [DEBUG]: #if __GNUC_PREREQ (2,97) [DEBUG]: ^ [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:292:5: error: # if __GNUC_PREREQ (4, 6) && !defined _LIBCfunction-like [DEBUG]: ^macro [DEBUG]:
[DEBUG]: ‘__GNUC_PREREQ’ is not /usr/include/x86_64-linux-gnu/sys/cdefs.hdefined: [DEBUG]: 54:30: error#if __GNUC_PREREQ (3,3): [DEBUG]: function-like ^ [DEBUG]: macro [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h’__GNUC_PREREQ’: 300is: 5not: definederror [DEBUG]: : function-like macro [DEBUG]: ‘__GNUC_PREREQ’ is not defined [DEBUG]: # if !defined __cplusplus && __GNUC_PREREQ (3, 3) [DEBUG]: ^ [DEBUG]: #if __GNUC_PREREQ (3,4) [DEBUG]: ^ [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:60/usr/include/x86_64-linux-gnu/sys/cdefs.h::30314:: 5error:: function-likeerror : macrofunction-like [DEBUG]: macro’__GNUC_PREREQ’ [DEBUG]: is’__GNUC_PREREQ’ notis definednot [DEBUG]: defined [DEBUG]: #if __GNUC_PREREQ (3,2) [DEBUG]: ^ [DEBUG]: # if defined __cplusplus && __GNUC_PREREQ (2,8) [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h ^: [DEBUG]: 327:5: error: function-like macro [DEBUG]: ‘__GNUC_PREREQ’ is not defined [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:#if __GNUC_PREREQ (4,3)126 [DEBUG]: : ^5 [DEBUG]: : error: /usr/include/x86_64-linux-gnu/sys/cdefs.hfunction-like: 342macro: [DEBUG]: 30 :‘__GNUC_PREREQ’ erroris: function-likenot macrodefined [DEBUG]:
[DEBUG]: ‘__GNUC_PREREQ’ is not defined [DEBUG]: #if __GNUC_PREREQ (4,3) [DEBUG]: ^ [DEBUG]: #if (!defined __cplusplus || __GNUC_PREREQ (4,3)
[DEBUG]: ^ [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:361:5: error: function-like macro [DEBUG]: ‘__GNUC_PREREQ’ is/usr/include/x86_64-linux-gnu/sys/cdefs.h :not207 :defined5 [DEBUG]: : error: function-like macro#if __GNUC_PREREQ (4,3) [DEBUG]:
[DEBUG]: ^‘__GNUC_PREREQ’ [DEBUG]: is notfatal error In file included from : src/_imagingft.cdefined:too [DEBUG]: 22 : [DEBUG]: manyIn file included from /home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include/Python.herrors: 11emitted,: [DEBUG]: In file included from #if __GNUC_PREREQ (2,96)stopping/home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/8.0.2/include/limits.h [DEBUG]: : ^now37 [DEBUG]: : [DEBUG]: [-ferror-limit=]In file included from [DEBUG]: /home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/limits.h/usr/include/x86_64-linux-gnu/sys/cdefs.h::38215: [DEBUG]: :/usr/include/x86_64-linux-gnu/sys/cdefs.h5::41 :error6: :function-like errormacro: [DEBUG]: function-like ‘__GNUC_PREREQ’macro [DEBUG]: is ‘__GNUC_PREREQ’not isdefined [DEBUG]: not defined [DEBUG]: #if __GNUC_PREREQ (4, 3) [DEBUG]: ^ [DEBUG]: # if __GNUC_PREREQ (4, 6) && !defined _LIBC [DEBUG]: ^ [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:54:30: error: function-like/usr/include/x86_64-linux-gnu/sys/cdefs.h :macro225 [DEBUG]: : 5’__GNUC_PREREQ’: iserror : notfunction-like definedmacro [DEBUG]:
[DEBUG]: ‘__GNUC_PREREQ’ is not defined [DEBUG]: # if !defined __cplusplus && __GNUC_PREREQ (3, 3) [DEBUG]: ^ [DEBUG]: #if __GNUC_PREREQ (2,96) [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h ^: [DEBUG]: 60:30: error/usr/include/x86_64-linux-gnu/sys/cdefs.h: :function-like232 :macro5 [DEBUG]: : ‘__GNUC_PREREQ’error : isfunction-like notmacro [DEBUG]: defined [DEBUG]: ‘__GNUC_PREREQ’ is not defined [DEBUG]: #if __GNUC_PREREQ (2,5)# if defined __cplusplus && __GNUC_PREREQ (2,8) [DEBUG]:
[DEBUG]: ^ ^ [DEBUG]:
[DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:241:5: error: function-like macro [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h’__GNUC_PREREQ’: 126is: 5not: definederror [DEBUG]: : function-like macro [DEBUG]: ‘__GNUC_PREREQ’#if __GNUC_PREREQ (3,1) [DEBUG]: is ^ [DEBUG]: not defined/usr/include/x86_64-linux-gnu/sys/cdefs.h [DEBUG]: :250:5:#if __GNUC_PREREQ (4,3) [DEBUG]: error ^: [DEBUG]: function-like macro [DEBUG]: ‘__GNUC_PREREQ’ is not defined [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h#if __GNUC_PREREQ (3,2): [DEBUG]: 207 ^: [DEBUG]: 5: error: function-like/usr/include/x86_64-linux-gnu/sys/cdefs.h :macro259 [DEBUG]: : 5’__GNUC_PREREQ’: iserror : notfunction-like definedmacro [DEBUG]:
[DEBUG]: ‘__GNUC_PREREQ’ is not defined [DEBUG]: #if __GNUC_PREREQ (2,96) [DEBUG]: ^ [DEBUG]: #if __GNUC_PREREQ (4,5)
[DEBUG]: ^ [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:273:5: error: function-like macro [DEBUG]: ‘__GNUC_PREREQ’ /usr/include/x86_64-linux-gnu/sys/cdefs.his: 215not: 5defined: [DEBUG]: error: function-like macro [DEBUG]: #if __GNUC_PREREQ (2,8) [DEBUG]: ‘__GNUC_PREREQ’ ^ [DEBUG]: is not/usr/include/x86_64-linux-gnu/sys/cdefs.h :defined283 [DEBUG]: :5: error: function-like #if __GNUC_PREREQ (4, 3)macro [DEBUG]:
[DEBUG]: ^ [DEBUG]: ‘__GNUC_PREREQ’ is not/usr/include/x86_64-linux-gnu/sys/cdefs.h :defined225 [DEBUG]: :5: error: function-like#if __GNUC_PREREQ (2,97) [DEBUG]: macro ^ [DEBUG]:
[DEBUG]: ‘__GNUC_PREREQ’ /usr/include/x86_64-linux-gnu/sys/cdefs.his: 292not: 5defined: [DEBUG]: error: function-like macro#if __GNUC_PREREQ (2,96) [DEBUG]:
[DEBUG]: ^‘__GNUC_PREREQ’ [DEBUG]: is /usr/include/x86_64-linux-gnu/sys/cdefs.hnot: 232defined: [DEBUG]: 5: error: function-like macro [DEBUG]: #if __GNUC_PREREQ (3,3) [DEBUG]: ‘__GNUC_PREREQ’ ^ [DEBUG]: is not/usr/include/x86_64-linux-gnu/sys/cdefs.h :defined300 [DEBUG]: :5: error: function-like#if __GNUC_PREREQ (2,5) [DEBUG]: macro ^ [DEBUG]:
[DEBUG]: ‘__GNUC_PREREQ’ /usr/include/x86_64-linux-gnu/sys/cdefs.his: 241not: 5defined: [DEBUG]: error: function-like macro [DEBUG]: #if __GNUC_PREREQ (3,4)‘__GNUC_PREREQ’ [DEBUG]: ^is [DEBUG]: not defined [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:314:5:#if __GNUC_PREREQ (3,1) [DEBUG]: error ^: [DEBUG]: function-like macro/usr/include/x86_64-linux-gnu/sys/cdefs.h [DEBUG]: : 250’__GNUC_PREREQ’: 5is: noterror : definedfunction-like [DEBUG]: macro [DEBUG]: ‘__GNUC_PREREQ’ is not #if __GNUC_PREREQ (3,2)defined [DEBUG]:
[DEBUG]: ^ [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h#if __GNUC_PREREQ (3,2): [DEBUG]: 327 ^: [DEBUG]: 5:/usr/include/x86_64-linux-gnu/sys/cdefs.h :error259: :function-like5 :macro [DEBUG]: error : ‘__GNUC_PREREQ’function-like ismacro [DEBUG]: not ‘__GNUC_PREREQ’defined [DEBUG]: is not defined [DEBUG]: #if __GNUC_PREREQ (4,3) [DEBUG]: ^ [DEBUG]: #if __GNUC_PREREQ (4,5) /usr/include/x86_64-linux-gnu/sys/cdefs.h [DEBUG]: : ^342 [DEBUG]: :30: /usr/include/x86_64-linux-gnu/sys/cdefs.herror:: 273function-like: 5macro: [DEBUG]: error’__GNUC_PREREQ’: function-likeis macronot [DEBUG]: defined’__GNUC_PREREQ’ [DEBUG]: is not defined [DEBUG]: #if (!defined __cplusplus || __GNUC_PREREQ (4,3) #if __GNUC_PREREQ (2,8) [DEBUG]:
[DEBUG]: ^ ^ [DEBUG]:
[DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:283:/usr/include/x86_64-linux-gnu/sys/cdefs.h5:: 361error:: 5function-like: macroerror [DEBUG]: : function-like’__GNUC_PREREQ’ macrois [DEBUG]: not’__GNUC_PREREQ’ definedis [DEBUG]: not defined [DEBUG]: #if __GNUC_PREREQ (2,97) [DEBUG]: ^ [DEBUG]: #if __GNUC_PREREQ (4,3) [DEBUG]: ^/usr/include/x86_64-linux-gnu/sys/cdefs.h [DEBUG]: :292:5fatal error:: tooerror : manyfunction-like errorsmacro [DEBUG]: emitted, ‘__GNUC_PREREQ’stopping isnow not[-ferror-limit=] [DEBUG]: defined [DEBUG]: #if __GNUC_PREREQ (3,3) [DEBUG]: ^ [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:300:5: error: function-like macro [DEBUG]: ‘__GNUC_PREREQ’ is not defined [DEBUG]: #if __GNUC_PREREQ (3,4) [DEBUG]: ^ [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:314:5: error: function-like macro [DEBUG]: ‘__GNUC_PREREQ’ is not defined [DEBUG]: #if __GNUC_PREREQ (3,2) [DEBUG]: ^ [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:327:5: error: function-like macro [DEBUG]: ‘__GNUC_PREREQ’ is not defined [DEBUG]: #if __GNUC_PREREQ (4,3) [DEBUG]: ^ [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:342:30: error: function-like macro [DEBUG]: ‘__GNUC_PREREQ’ is not defined [DEBUG]: #if (!defined __cplusplus || __GNUC_PREREQ (4,3)
[DEBUG]: ^ [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:361:5: error: function-like macro [DEBUG]: ‘__GNUC_PREREQ’ is not defined [DEBUG]: #if __GNUC_PREREQ (4,3) [DEBUG]: ^ [DEBUG]: fatal error: too many errors emitted, stopping now [-ferror-limit=] [DEBUG]: In file included from src/_imaging.c:75: [DEBUG]: In file included from /home/ros/APP_MD_ADS/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include/Python.h:11: [DEBUG]: In file included from /home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/8.0.2/include/limits.h:37: [DEBUG]: In file included from /home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/limits.h:38: [DEBUG]: /usr/include/x86_64-linux-gnu/sys/cdefs.h:41:6: error: function-like macro’‘’
… repeats it recursively …

At the end : ‘’’ usr/include/x86_64-linux-gnu/sys/cdefs.h:361:5: error: function-like macro ‘__GNUC_PREREQ’ is not defined #if __GNUC_PREREQ (4,3) ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 2020 error errorss generated generated. . 20 errors generated. 20 errors generated. error: command ‘/home/ros/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang’ failed with exit status 1 ‘’’

If I remove Pillow recipe in buildozer.spec the compilation finished like a charm but with the app probably broken.

Some buildozer configs: android.api = 30 android.minapi = 21 android.sdk = 20 android.ndk = 19c

Thanks.

_Originally posted by @mmsprojects in https://github.com/kivy/python-for-android/issues/2467#issuecomment-927204540_

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:17 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
RobertFlattcommented, Oct 25, 2021

fixed the whole issue for me

me too

0reactions
misl6commented, Nov 20, 2021

Fixed via #2516

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to install the .apk generated from .aab due to signing ...
I have created .aab file from Build -> Generate Signed Bundle / APK . While generating .aab I have given all the required...
Read more >
buildozer - PyPI
Problem with "Unpacking sdl2_image" and "Parent module 'pythonforandroid.recipes' not found" #872; buildozer android debug deploy is stuck #870; running ...
Read more >
All About Beer Magazine » Conventional Wisdom
Current Issue Cover ... Lulu, on the cheek good night, lay my head on my pillow—and wake up on stage at the Craft...
Read more >
Roser, Nancy L,, Ed. TITLE Adventuring with Books - ERIC
Those who select books for children have an enviable "problem": choos- ... account of her life, Arizona touches generations of her Appala-.
Read more >
How to get super powers overnight
She went to some trouble to create an algebraic equation that explained the ... I also recommend trying the pillow method for money,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found