-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pillow's recipe problem in aab generation #2497
Comments
I got same error. #*** investigation1
`
` ` /home/youtube/.buildozer/android/platform/android-ndk-r19c/platforms/android-21/arch-arm64/usr/lib /home/youtube/.buildozer/android/platform/android-ndk-r19c/sysroot/usr/include On the other hand, in the development version, it was as follows. ` /home/youtube/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/21 /home/youtube/.buildozer/android/platform/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include I changed the include directory to the value of the master version and the compilation succeeded, but it didn't work. #*** I have succeeded in creating a single CPU aab file in the following way. 1)Copy the Pillow binary files created with the master version to the project source directory |
Same error... |
I tested it on a clean CI environment and it's building without any issue. |
@misl6 Yes, tomorrow morning I'll do it ... |
I would like to know how to compile Pillow with develop version. |
changing line 39 and 40 in Pillow recipe init.py file from ndk_lib_dir = arch.ndk_lib_dir
ndk_include_dir = self.ctx.ndk_include_dir to ndk_lib_dir = join(arch.ndk_platform, 'usr', 'lib')
ndk_include_dir = join(self.ctx.ndk_dir, 'sysroot', 'usr', 'include') fixed the whole issue for me |
Thank you very much for your help. I can compile with the patch, but It does not work. It was crash. env['ANDROID_ROOT'] |
@buybuyxyz I would suggest you allow buildozer to download ndk for you instead of using Android studio ndk |
Also being specific with error logs would help |
|
me too |
I may have a couple ideas in mind, but, considering that I'm unable to reproduce the issue on CI or on my docker containers, I need a full log of the p4a run. Can someone help? |
Generally working on one platform does not mean working on all platforms. Here is an example log, ask if you need anything else. |
Thank you @RobertFlatt for the full log file, it helped me so much to investigate the issue. Looks like the issue was present before the AAB edits, but popped out right now due to include paths priority. I created a new PR(#2516) that should fix the issue, while upgrading to a newer Pillow version. Can someone who was encountering the issue test it and post a feedback? |
I tried New PR(#2516) on Ubuntu 20.04 , two cases: arm64-v8a / api 27 / ndk 19c Both successfully built debug apk. Thank you. |
AWWW! Thanks , worked too
|
Fixed via #2516 |
Working with @Cheaterman here, we discovered pkg-config from host system was polluting include path with eg
Here's an output from a "logger wrapper" we wrote for pkg-config to diagnose the issue. |
FYI we commented here since it's the most visible issue talking about |
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 #2467 (comment)
The text was updated successfully, but these errors were encountered: