kivy / kivy/python-for-android
protobuf_cpp faild to build for google-generativeai
- Dominant language
- Python
- Stars
- 8.9k
- Forks
- 2k
- Avg merge
- 12h 20m
- Merged PRs (30d)
- 9
Description
### Versions
- Python:3.10
- OS:ubutnu 22
- Kivy:2.3.0
- Cython:0.29
- OpenJDK:8
### Description
Building for google-generativeai
// REPLACE ME: What are you trying to get done, what has happened, what went wrong, and what did you expect?
### buildozer.spec
# (list) List of exclusions using pattern matching
# Do not prefix with './'
#source.exclude_patterns = license,images/*/*.jpg
# (str) Application versioning (method 1)
version = 0.1
# (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,google-ai-generativelanguage,google-api-core,google-api-python-client,google-auth-httplib2,google-generativeai,googleapis-common-protos,grpcio,grpcio-status,proto-plus,uritemplate,google,protobuf_cpp
# (str) Custom source folders for requirements
# Sets custom source for any requirements with recipes
# requirements.source.kivy = ../../kivy
# (str) Presplash of the application
#presplash
Command:
```sh
// REPLACE ME: buildozer command ran? e.g. buildozer android debug
// Keep the triple grave accent (aka backquote/backtick) to have the code formatted
```
Spec file:
```
// REPLACE ME: Paste your buildozer.spec file here
```
### Logs
[DEBUG]: libtool: link: ( cd ".libs" && rm -f "libprotobuf.la" && ln -s "../libprotobuf.la" "libprotobuf.la" )
[INFO]: <- directory context /home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/protobuf_cpp/arm64-v8a__ndk_target_21/protobuf_cpp
[INFO]: <- directory context /home/sahil/app1/.buildozer/android/platform/python-for-android
[INFO]: Installing protobuf_cpp into site-packages
[INFO]: -> directory context /home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/protobuf_cpp/arm64-v8a__ndk_target_21/protobuf_cpp/python
[DEBUG]: -> running python3 setup.py install -O2 --root=/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/python-installs/myapp/arm64-v8a --install-lib=. --cpp_implementation
[DEBUG]: running install
[DEBUG]: running build
[DEBUG]: running build_py
[DEBUG]: Generating google/protobuf/descriptor_pb2.py...
[DEBUG]: Generating google/protobuf/compiler/plugin_pb2.py...
[DEBUG]: Generating google/protobuf/any_pb2.py...
[DEBUG]: Generating google/protobuf/api_pb2.py...
[DEBUG]: Generating google/protobuf/duration_pb2.py...
[DEBUG]: Generating google/protobuf/empty_pb2.py...
[DEBUG]: Generating google/protobuf/field_mask_pb2.py...
[DEBUG]: Generating google/protobuf/source_context_pb2.py...
[DEBUG]: Generating google/protobuf/struct_pb2.py...
[DEBUG]: Generating google/protobuf/timestamp_pb2.py...
[DEBUG]: Generating google/protobuf/type_pb2.py...
[DEBUG]: Generating google/protobuf/wrappers_pb2.py...
[DEBUG]: Generating google/protobuf/any_test_pb2.py...
[DEBUG]: Generating google/protobuf/map_proto2_unittest_pb2.py...
[DEBUG]: Generating google/protobuf/map_unittest_pb2.py...
[DEBUG]: Generating google/protobuf/test_messages_proto3_pb2.py...
[DEBUG]: Generating google/protobuf/test_messages_proto2_pb2.py...
[DEBUG]: Generating google/protobuf/unittest_arena_pb2.py...
[DEBUG]: Generating google/protobuf/unittest_no_arena_pb2.py...
[DEBUG]: Generating google/protobuf/unittest_no_arena_import_pb2.py...
[DEBUG]: Generating google/protobuf/unittest_pb2.py...
[DEBUG]: Generating google/protobuf/unittest_custom_options_pb2.py...
[DEBUG]: Generating google/protobuf/unittest_import_pb2.py...
[DEBUG]: Generating google/protobuf/unittest_import_public_pb2.py...
[DEBUG]: Generating google/protobuf/unittest_mset_pb2.py...
[DEBUG]: Generating google/protobuf/unittest_mset_wire_format_pb2.py...
[DEBUG]: Generating google/protobuf/unittest_no_generic_services_pb2.py...
[DEBUG]: Generating google/protobuf/unittest_proto3_arena_pb2.py...
[DEBUG]: Generating google/protobuf/util/json_format_proto3_pb2.py...
[DEBUG]: Generating google/protobuf/internal/any_test_pb2.py...
[DEBUG]: Generating google/protobuf/internal/descriptor_pool_test1_pb2.py...
[DEBUG]: Generating google/protobuf/internal/descriptor_pool_test2_pb2.py...
[DEBUG]: Generating google/protobuf/internal/factory_test1_pb2.py...
[DEBUG]: Generating google/protobuf/internal/factory_test2_pb2.py...
[DEBUG]: Generating google/protobuf/internal/file_options_test_pb2.py...
[DEBUG]: Generating google/protobuf/internal/import_test_package/inner_pb2.py...
[DEBUG]: Generating google/protobuf/internal/import_test_package/outer_pb2.py...
[DEBUG]: Generating google/protobuf/internal/missing_enum_values_pb2.py...
[DEBUG]: Generating google/protobuf/internal/message_set_extensions_pb2.py...
[DEBUG]: Generating google/protobuf/internal/more_extensions_pb2.py...
[DEBUG]: Generating google/protobuf/internal/more_extensions_dynamic_pb2.py...
[DEBUG]: Generating google/protobuf/internal/more_messages_pb2.py...
[DEBUG]: Generating google/protobuf/internal/no_package_pb2.py...
[DEBUG]: Generating google/protobuf/internal/packed_field_test_pb2.py...
[DEBUG]: Generating google/protobuf/internal/test_bad_identifiers_pb2.py...
[DEBUG]: Generating google/protobuf/pyext/python_pb2.py...
[DEBUG]: creating build
[DEBUG]: creating build/lib.linux-x86_64-3.11
[DEBUG]: creating build/lib.linux-x86_64-3.11/google
[DEBUG]: copying google/__init__.py -> build/lib.linux-x86_64-3.11/google
[DEBUG]: creating build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/unittest_no_generic_services_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/source_context_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/map_unittest_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/wrappers_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/text_format.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/json_format.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/api_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/descriptor_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/proto_builder.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/any_test_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/test_messages_proto3_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/message.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/reflection.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/descriptor_database.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/descriptor.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/any_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/duration_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/unittest_custom_options_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/service_reflection.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/empty_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/unittest_arena_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/message_factory.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/unittest_no_arena_import_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/timestamp_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/unittest_proto3_arena_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/unittest_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/unittest_no_arena_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/map_proto2_unittest_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/struct_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/text_encoding.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/__init__.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/unittest_mset_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/unittest_mset_wire_format_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/unittest_import_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/field_mask_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/test_messages_proto2_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/service.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/unittest_import_public_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/descriptor_pool.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/type_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: copying google/protobuf/symbol_database.py -> build/lib.linux-x86_64-3.11/google/protobuf
[DEBUG]: creating build/lib.linux-x86_64-3.11/google/protobuf/util
[DEBUG]: copying google/protobuf/util/__init__.py -> build/lib.linux-x86_64-3.11/google/protobuf/util
[DEBUG]: copying google/protobuf/util/json_format_proto3_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/util
[DEBUG]: creating build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/no_package_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/well_known_types_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/testing_refleaks.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/enum_type_wrapper.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/more_messages_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/any_test_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/symbol_database_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/proto_builder_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/service_reflection_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/factory_test2_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/json_format_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/containers.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/test_bad_identifiers_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/python_message.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/api_implementation.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/message_set_extensions_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/descriptor_pool_test2_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/test_util.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/factory_test1_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/descriptor_pool_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/wire_format_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/_parameterized.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/packed_field_test_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/descriptor_database_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/message_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/well_known_types.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/more_extensions_dynamic_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/message_listener.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/descriptor_pool_test1_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/descriptor_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/type_checkers.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/__init__.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/missing_enum_values_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/decoder.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/file_options_test_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/unknown_fields_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/wire_format.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/generator_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/message_factory_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/reflection_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/text_format_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/more_extensions_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/encoder.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: copying google/protobuf/internal/text_encoding_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
[DEBUG]: creating build/lib.linux-x86_64-3.11/google/protobuf/pyext
[DEBUG]: copying google/protobuf/pyext/cpp_message.py -> build/lib.linux-x86_64-3.11/google/protobuf/pyext
[DEBUG]: copying google/protobuf/pyext/python_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/pyext
[DEBUG]: copying google/protobuf/pyext/__init__.py -> build/lib.linux-x86_64-3.11/google/protobuf/pyext
[DEBUG]: creating build/lib.linux-x86_64-3.11/google/protobuf/compiler
[DEBUG]: copying google/protobuf/compiler/plugin_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/compiler
[DEBUG]: copying google/protobuf/compiler/__init__.py -> build/lib.linux-x86_64-3.11/google/protobuf/compiler
[DEBUG]: creating build/lib.linux-x86_64-3.11/google/protobuf/internal/import_test_package
[DEBUG]: copying google/protobuf/internal/import_test_package/outer_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal/import_test_package
[DEBUG]: copying google/protobuf/internal/import_test_package/__init__.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal/import_test_package
[DEBUG]: copying google/protobuf/internal/import_test_package/inner_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal/import_test_package
[DEBUG]: Skipping optional fixer: buffer
[DEBUG]: Skipping optional fixer: idioms
[DEBUG]: Skipping optional fixer: set_literal
[DEBUG]: Skipping optional fixer: ws_comma
[DEBUG]: running build_ext
[DEBUG]: building 'google.protobuf.pyext._message' extension
[DEBUG]: creating build/temp.linux-x86_64-3.11
[DEBUG]: creating build/temp.linux-x86_64-3.11/google
[DEBUG]: creating build/temp.linux-x86_64-3.11/google/protobuf
[DEBUG]: creating build/temp.linux-x86_64-3.11/google/protobuf/pyext
[DEBUG]: /home/sahil/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC -I/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include -DANDROID -I/home/sahil/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/python-installs/myapp/arm64-v8a/include/python3.1 -fPIC -I. -I../src -I/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/Include -I/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build -c google/protobuf/pyext/descriptor.cc -o build/temp.linux-x86_64-3.11/google/protobuf/pyext/descriptor.o -Wno-write-strings -Wno-invalid-offsetof -Wno-sign-compare -Wno-shorten-64-to-32
[DEBUG]: google/protobuf/pyext/descriptor.cc:105:18: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
[DEBUG]: frame = frame->f_back;
[DEBUG]: ^
[DEBUG]: /home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of '_frame'
[DEBUG]: typedef struct _frame PyFrameObject;
[DEBUG]: ^
[DEBUG]: google/protobuf/pyext/descriptor.cc:111:12: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
[DEBUG]: if (frame->f_code->co_filename == NULL) {
[DEBUG]: ^
[DEBUG]: /home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of '_frame'
[DEBUG]: typedef struct _frame PyFrameObject;
[DEBUG]: ^
[DEBUG]: google/protobuf/pyext/descriptor.cc:116:37: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
[DEBUG]: if (PyString_AsStringAndSize(frame->f_code->co_filename,
[DEBUG]: ^
[DEBUG]: /home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of '_frame'
[DEBUG]: typedef struct _frame PyFrameObject;
[DEBUG]: ^
[DEBUG]: google/protobuf/pyext/descriptor.cc:116:37: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
[DEBUG]: if (PyString_AsStringAndSize(frame->f_code->co_filename,
[DEBUG]: ^
[DEBUG]: /home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of '_frame'
[DEBUG]: typedef struct _frame PyFrameObject;
[DEBUG]: ^
[DEBUG]: google/protobuf/pyext/descriptor.cc:116:37: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
[DEBUG]: if (PyString_AsStringAndSize(frame->f_code->co_filename,
[DEBUG]: ^
[DEBUG]: /home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of '_frame'
[DEBUG]: typedef struct _frame PyFrameObject;
[DEBUG]: ^
[DEBUG]: google/protobuf/pyext/descriptor.cc:135:12: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
[DEBUG]: if (frame->f_globals != frame->f_locals) {
[DEBUG]: ^
[DEBUG]: /home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of '_frame'
[DEBUG]: typedef struct _frame PyFrameObject;
[DEBUG]: ^
[DEBUG]: google/protobuf/pyext/descriptor.cc:135:32: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
[DEBUG]: if (frame->f_globals != frame->f_locals) {
[DEBUG]: ^
[DEBUG]: /home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of '_frame'
[DEBUG]: typedef struct _frame PyFrameObject;
[DEBUG]: ^
[DEBUG]: google/protobuf/pyext/descriptor.cc:231:7: warning: 'PyEval_CallObjectWithKeywords' is deprecated [-Wdeprecated-declarations]
[DEBUG]: PyEval_CallObject(message_class->AsPyObject(), NULL));
[DEBUG]: ^
[DEBUG]: /home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/ceval.h:34:5: note: expanded from macro 'PyEval_CallObject'
[DEBUG]: PyEval_CallObjectWithKeywords(callable, arg, (PyObject *)NULL)
[DEBUG]: ^
[DEBUG]: /home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/ceval.h:27:1: note: 'PyEval_CallObjectWithKeywords' has been explicitly marked deprecated here
[DEBUG]: Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
[DEBUG]: ^
[DEBUG]: /home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED'
[DEBUG]: #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
[DEBUG]: ^
[DEBUG]: 1 warning and 7 errors generated.
[DEBUG]: error: command '/home/sahil/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang' failed with exit code 1
Exception in thread background thread for pid 82333:
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/home/sahil/.local/lib/python3.10/site-packages/sh.py", line 1641, in wrap
fn(*rgs, **kwargs)
File "/home/sahil/.local/lib/python3.10/site-packages/sh.py", line 2569, in background_thread
handle_exit_code(exit_code)
File "/home/sahil/.local/lib/python3.10/site-packages/sh.py", line 2269, in fn
return self.command.handle_command_exit_code(exit_code)
File "/home/sahil/.local/lib/python3.10/site-packages/sh.py", line 869, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py install -O2 --root=/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/python-installs/myapp/arm64-v8a --install-lib=. --cpp_implementation
STDOUT:
running install
running build
running build_py
Generating google/protobuf/descriptor_pb2.py...
Generating google/protobuf/compiler/plugin_pb2.py...
Generating google/protobuf/any_pb2.py...
Generating google/protobuf/api_pb2.py...
Generating google/protobuf/duration_pb2.py...
Generating google/protobuf/empty_pb2.py...
Generating google/protobuf/field_mask_pb2.py...
Generating google/protobuf/source_context_pb2.py...
Generating google/protobuf/struct_pb2.py...
Generating google/protobuf/timestamp_pb2.py...
Generating google/protobuf/type_pb2.py...
Generating google/protobuf/wrappers_pb2.py...
Generating google/protobuf/any_test_pb2.py...
Generating google/protobuf/map_proto2_unittest_pb2.py...
Generating google/protobuf/map_unittest_pb2.py...
Generating google/protobuf/test_messages_proto3_pb2.py...
Generating google/protobuf/test_messages_proto2_pb2.py...
Generating google/protobuf/unittest_arena_pb2.py...
Generating google/protobuf/unittest_no_arena_pb2.py...
Generating google/protobuf/unittest_no_arena_import_pb2.py...
Generating google/protobuf/unittest_pb2.py...
Generating google/protobuf/unittest_custom_options_pb2.py...
Generating google/protobuf/unittest_import_pb2.py...
Generating google/protobuf/unittest_import_public_pb2.py...
Generating google/protobuf/unittest_mset_pb2.py...
Generating google/protobuf/unittest_mset_wire_format_pb2.py...
Generating google/protobuf/unittest_no_generic_services_pb2.py...
Generating google/protobuf/unittest_proto3_arena_pb2.py...
Generating google/protobuf/util/json_format_proto3_pb2.py...
Generating google/protobuf/internal/any_test_pb2.py...
Generating google/protobuf/internal/descriptor_pool_test1_pb2.py...
Generating google/protobuf/internal/descriptor_pool_test2_pb2.py...
Generating google/protobuf/internal/factory_test1_pb2.py...
Generating google/protobuf/internal/factory_test2_pb2.py...
Generating google/protobuf/internal/file_options_test_pb2.py...
Generating google/protobuf/internal/import_test_package/inner_pb2.py...
Generating google/protobuf/internal/import_test_package/outer_pb2.py...
Generating google/protobuf/internal/missing_enum_values_pb2.py...
Generating google/protobuf/internal/message_set_extensions_pb2.py...
Generating google/protobuf/internal/more_extensions_pb2.py...
Generating google/protobuf/internal/more_extensions_dynamic_pb2.py...
Generating google/protobuf/internal/more_messages_pb2.py...
Generating google/protobuf/internal/no_package_pb2.py...
Generating google/protobuf/internal/packed_field_test_pb2.py...
Generating google/protobuf/internal/test_bad_identifiers_pb2.py...
Generating google/protobuf/pyext/python_pb2.py...
creating build
creating build/lib.linux-x86_64-3.11
creating build/lib.linux-x86_64-3.11/google
copying google/__init__.py -> build/lib.linux-x86_64-3.11/google
creating build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/unittest_no_generic_services_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/source_context_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/map_unittest_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/wrappers_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/text_format.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/json_format.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/api_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/descriptor_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/proto_builder.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/any_test_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/test_messages_proto3_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/message.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/reflection.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/descriptor_database.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/descriptor.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/any_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/duration_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/unittest_custom_options_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/service_reflection.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/empty_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/unittest_arena_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/message_factory.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/unittest_no_arena_import_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/timestamp_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/unittest_proto3_arena_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/unittest_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/unittest_no_arena_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/map_proto2_unittest_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/struct_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/text_encoding.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/__init__.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/unittest_mset_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/unittest_mset_wire_format_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/unittest_import_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/field_mask_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/test_messages_proto2_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/service.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/unittest_import_public_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/descriptor_pool.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/type_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/symbol_database.py -> build/lib.linux-x86_64-3.11/google/protobuf
creating build/lib.linux-x86_64-3.11/google/protobuf/util
copying google/protobuf/util/__init__.py -> build/lib.linux-x86_64-3.11/google/protobuf/util
copying google/protobuf/util/json_format_proto3_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/util
creating build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/no_package_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/well_known_types_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/testing_refleaks.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/enum_type_wrapper.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/more_messages_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/any_test_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/symbol_database_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/proto_builder_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/service_reflection_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/factory_test2_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/json_format_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/containers.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/test_bad_identifiers_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/python_message.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/api_implementation.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/message_set_extensions_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/descriptor_pool_test2_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/test_util.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/factory_test1_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/descriptor_pool_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/wire_format_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/_parameterized.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/packed_field_test_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/descriptor_database_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/message_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/well_known_types.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/more_extensions_dynamic_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/message_listener.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/descriptor_pool_test1_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/descriptor_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/type_checkers.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/__init__.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/missing_enum_values_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/decoder.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/file_options_test_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/unknown_fields_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/wire_format.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/generator_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/message_factory_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/reflection_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/text_format_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/more_extensions_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/encoder.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/text_encoding_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
creating build/lib.linux-x86_64-3.11/google/protobuf/pyext
copying google/protobuf/pyext/cpp_message.py -> build/lib.linux-x86_64-3.11/google/protobuf/pyext
copying google/protobuf/pyext/python_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/pyext
copying google/protobuf/pyext/__init__.py -> build/lib.linux-x86_64-3.11/google/protobuf/pyext
creating build/lib.linux-x86_64-3.11/google/protobuf/compiler
copying google/protobuf/compiler/plugin_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/compiler
copying google/protobuf/compiler/__init__.py -> build/lib.linux-x86_64-3.11/google/protobuf/compiler
creating build/lib.linux-x86_64-3.11/google/protobuf/internal/import_test_package
copying google/protobuf/internal/import_test_package/outer_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal/import_test_package
copying google/protobuf/internal/import_test_package/__init__.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal/import_test_package
copying google/protobuf/internal/import_test_package/inner_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal/import_test_package
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
running build_ext
building 'google.protobuf.pyext._message' extension
creating build/temp.linux-x86_64-3.11
creating build/temp.linux-x86_64-3.11/google
creating build/temp.linux-x86_64-3.11/google/protobuf
creating build/temp.linux-x86_64-3.11/google/protobuf/pyext
/home/sahil/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC -I/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include -DANDROID -I/home/sahil/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/python-installs/myapp/arm64-v8a/include/python3.1 -fPIC -I. -I../src -I/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/Include -I/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build -c google/protobuf/pyext/descriptor.cc -o build/temp.linux-x86_64-3.11/google/protobuf/pyext/descriptor.o -Wno-write-strings -Wno-invalid-offsetof -Wno-sign-compare -Wno-shorten-64-to-32
google/protobuf/pyext/descriptor.cc:105:18: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
frame = frame->f_back;
^
/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
google/protobuf/pyext/descriptor.cc:111:12: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
if (frame->f_code->co_filename == NULL) {
^
/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
google/protobuf/pyext/descriptor.cc:116:37: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
if (PyString_AsStringAndSize(frame->f_code->co_filename,
^
/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
google/protobuf/pyext/descriptor.cc:116:37: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
if (PyString_AsStringAndSize(frame->f_code->co_filename,
^
/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
google/protobuf/pyext/descriptor.cc:116:37: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
if (PyString_AsStringAndSize(frame->f_code->co_filename,
^
/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
google/protobuf/pyext/descriptor.cc:135:12: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
if (frame->f_globals != frame->f_locals) {
^
/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
google/protobuf/pyext/descriptor.cc:135:32: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
if (frame->f_globals != frame->f_locals) {
^
/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
google/protobuf/pyext/descriptor.cc:231:7: warning: 'PyEval_CallObjectWithKeywords' is deprecated [-Wdeprecated-declarations]
PyEval_CallObject(message_class->AsPyObject(), NULL));
^
/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/ceval.h:34:5: note: expanded from macro 'PyEval_CallObject'
PyEval_CallObjectWithKeywords(callable, arg, (PyObject *)NULL)
^
/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/ceval.h:27:1: note: 'PyEval_CallObjectWithKeywords' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
^
/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
1 warning and 7 errors generated.
error: command '/home/sahil/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang' failed with exit code 1
STDERR:
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/sahil/app1/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1256, in
main()
File "/home/sahil/app1/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
ToolchainCL()
File "/home/sahil/app1/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 685, in __init__
getattr(self, command)(args)
File "/home/sahil/app1/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 104, in wrapper_func
build_dist_from_args(ctx, dist, args)
File "/home/sahil/app1/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 163, in build_dist_from_args
build_recipes(build_order, python_modules, ctx,
File "/home/sahil/app1/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 504, in build_recipes
recipe.build_arch(arch)
File "/home/sahil/app1/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/protobuf_cpp/__init__.py", line 97, in build_arch
self.install_python_package(arch)
File "/home/sahil/app1/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/protobuf_cpp/__init__.py", line 118, in install_python_package
shprint(hostpython, 'setup.py', 'install', '-O2',
File "/home/sahil/app1/.buildozer/android/platform/python-for-android/pythonforandroid/logger.py", line 167, in shprint
for line in output:
File "/home/sahil/.local/lib/python3.10/site-packages/sh.py", line 915, in next
self.wait()
File "/home/sahil/.local/lib/python3.10/site-packages/sh.py", line 845, in wait
self.handle_command_exit_code(exit_code)
File "/home/sahil/.local/lib/python3.10/site-packages/sh.py", line 869, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py install -O2 --root=/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/python-installs/myapp/arm64-v8a --install-lib=. --cpp_implementation
STDOUT:
running install
running build
running build_py
Generating google/protobuf/descriptor_pb2.py...
Generating google/protobuf/compiler/plugin_pb2.py...
Generating google/protobuf/any_pb2.py...
Generating google/protobuf/api_pb2.py...
Generating google/protobuf/duration_pb2.py...
Generating google/protobuf/empty_pb2.py...
Generating google/protobuf/field_mask_pb2.py...
Generating google/protobuf/source_context_pb2.py...
Generating google/protobuf/struct_pb2.py...
Generating google/protobuf/timestamp_pb2.py...
Generating google/protobuf/type_pb2.py...
Generating google/protobuf/wrappers_pb2.py...
Generating google/protobuf/any_test_pb2.py...
Generating google/protobuf/map_proto2_unittest_pb2.py...
Generating google/protobuf/map_unittest_pb2.py...
Generating google/protobuf/test_messages_proto3_pb2.py...
Generating google/protobuf/test_messages_proto2_pb2.py...
Generating google/protobuf/unittest_arena_pb2.py...
Generating google/protobuf/unittest_no_arena_pb2.py...
Generating google/protobuf/unittest_no_arena_import_pb2.py...
Generating google/protobuf/unittest_pb2.py...
Generating google/protobuf/unittest_custom_options_pb2.py...
Generating google/protobuf/unittest_import_pb2.py...
Generating google/protobuf/unittest_import_public_pb2.py...
Generating google/protobuf/unittest_mset_pb2.py...
Generating google/protobuf/unittest_mset_wire_format_pb2.py...
Generating google/protobuf/unittest_no_generic_services_pb2.py...
Generating google/protobuf/unittest_proto3_arena_pb2.py...
Generating google/protobuf/util/json_format_proto3_pb2.py...
Generating google/protobuf/internal/any_test_pb2.py...
Generating google/protobuf/internal/descriptor_pool_test1_pb2.py...
Generating google/protobuf/internal/descriptor_pool_test2_pb2.py...
Generating google/protobuf/internal/factory_test1_pb2.py...
Generating google/protobuf/internal/factory_test2_pb2.py...
Generating google/protobuf/internal/file_options_test_pb2.py...
Generating google/protobuf/internal/import_test_package/inner_pb2.py...
Generating google/protobuf/internal/import_test_package/outer_pb2.py...
Generating google/protobuf/internal/missing_enum_values_pb2.py...
Generating google/protobuf/internal/message_set_extensions_pb2.py...
Generating google/protobuf/internal/more_extensions_pb2.py...
Generating google/protobuf/internal/more_extensions_dynamic_pb2.py...
Generating google/protobuf/internal/more_messages_pb2.py...
Generating google/protobuf/internal/no_package_pb2.py...
Generating google/protobuf/internal/packed_field_test_pb2.py...
Generating google/protobuf/internal/test_bad_identifiers_pb2.py...
Generating google/protobuf/pyext/python_pb2.py...
creating build
creating build/lib.linux-x86_64-3.11
creating build/lib.linux-x86_64-3.11/google
copying google/__init__.py -> build/lib.linux-x86_64-3.11/google
creating build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/unittest_no_generic_services_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/source_context_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/map_unittest_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/wrappers_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/text_format.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/json_format.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/api_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/descriptor_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/proto_builder.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/any_test_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/test_messages_proto3_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/message.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/reflection.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/descriptor_database.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/descriptor.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/any_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/duration_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/unittest_custom_options_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/service_reflection.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/empty_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/unittest_arena_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/message_factory.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/unittest_no_arena_import_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/timestamp_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/unittest_proto3_arena_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/unittest_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/unittest_no_arena_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/map_proto2_unittest_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/struct_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/text_encoding.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/__init__.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/unittest_mset_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/unittest_mset_wire_format_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/unittest_import_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/field_mask_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/test_messages_proto2_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/service.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/unittest_import_public_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/descriptor_pool.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/type_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf
copying google/protobuf/symbol_database.py -> build/lib.linux-x86_64-3.11/google/protobuf
creating build/lib.linux-x86_64-3.11/google/protobuf/util
copying google/protobuf/util/__init__.py -> build/lib.linux-x86_64-3.11/google/protobuf/util
copying google/protobuf/util/json_format_proto3_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/util
creating build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/no_package_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/well_known_types_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/testing_refleaks.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/enum_type_wrapper.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/more_messages_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/any_test_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/symbol_database_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/proto_builder_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/service_reflection_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/factory_test2_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/json_format_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/containers.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/test_bad_identifiers_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/python_message.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/api_implementation.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/message_set_extensions_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/descriptor_pool_test2_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/test_util.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/factory_test1_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/descriptor_pool_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/wire_format_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/_parameterized.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/packed_field_test_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/descriptor_database_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/message_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/well_known_types.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/more_extensions_dynamic_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/message_listener.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/descriptor_pool_test1_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/descriptor_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/type_checkers.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/__init__.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/missing_enum_values_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/decoder.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/file_options_test_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/unknown_fields_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/wire_format.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/generator_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/message_factory_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/reflection_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/text_format_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/more_extensions_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/encoder.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
copying google/protobuf/internal/text_encoding_test.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal
creating build/lib.linux-x86_64-3.11/google/protobuf/pyext
copying google/protobuf/pyext/cpp_message.py -> build/lib.linux-x86_64-3.11/google/protobuf/pyext
copying google/protobuf/pyext/python_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/pyext
copying google/protobuf/pyext/__init__.py -> build/lib.linux-x86_64-3.11/google/protobuf/pyext
creating build/lib.linux-x86_64-3.11/google/protobuf/compiler
copying google/protobuf/compiler/plugin_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/compiler
copying google/protobuf/compiler/__init__.py -> build/lib.linux-x86_64-3.11/google/protobuf/compiler
creating build/lib.linux-x86_64-3.11/google/protobuf/internal/import_test_package
copying google/protobuf/internal/import_test_package/outer_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal/import_test_package
copying google/protobuf/internal/import_test_package/__init__.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal/import_test_package
copying google/protobuf/internal/import_test_package/inner_pb2.py -> build/lib.linux-x86_64-3.11/google/protobuf/internal/import_test_package
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
running build_ext
building 'google.protobuf.pyext._message' extension
creating build/temp.linux-x86_64-3.11
creating build/temp.linux-x86_64-3.11/google
creating build/temp.linux-x86_64-3.11/google/protobuf
creating build/temp.linux-x86_64-3.11/google/protobuf/pyext
/home/sahil/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC -I/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include -DANDROID -I/home/sahil/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/python-installs/myapp/arm64-v8a/include/python3.1 -fPIC -I. -I../src -I/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/Include -I/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build -c google/protobuf/pyext/descriptor.cc -o build/temp.linux-x86_64-3.11/google/protobuf/pyext/descriptor.o -Wno-write-strings -Wno-invalid-offsetof -Wno-sign-compare -Wno-shorten-64-to-32
google/protobuf/pyext/descriptor.cc:105:18: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
frame = frame->f_back;
^
/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
google/protobuf/pyext/descriptor.cc:111:12: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
if (frame->f_code->co_filename == NULL) {
^
/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
google/protobuf/pyext/descriptor.cc:116:37: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
if (PyString_AsStringAndSize(frame->f_code->co_filename,
^
/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
google/protobuf/pyext/descriptor.cc:116:37: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
if (PyString_AsStringAndSize(frame->f_code->co_filename,
^
/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
google/protobuf/pyext/descriptor.cc:116:37: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
if (PyString_AsStringAndSize(frame->f_code->co_filename,
^
/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
google/protobuf/pyext/descriptor.cc:135:12: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
if (frame->f_globals != frame->f_locals) {
^
/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
google/protobuf/pyext/descriptor.cc:135:32: error: member access into incomplete type 'PyFrameObject' (aka '_frame')
if (frame->f_globals != frame->f_locals) {
^
/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pytypedefs.h:22:16: note: forward declaration of '_frame'
typedef struct _frame PyFrameObject;
^
google/protobuf/pyext/descriptor.cc:231:7: warning: 'PyEval_CallObjectWithKeywords' is deprecated [-Wdeprecated-declarations]
PyEval_CallObject(message_class->AsPyObject(), NULL));
^
/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/ceval.h:34:5: note: expanded from macro 'PyEval_CallObject'
PyEval_CallObjectWithKeywords(callable, arg, (PyObject *)NULL)
^
/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/ceval.h:27:1: note: 'PyEval_CallObjectWithKeywords' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
^
/home/sahil/app1/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
Contributor guide
Research direction
Start by reproducing the Android build from the listed buildozer.spec requirements and capture the complete command and failure output; the report omits both. Inspect the protobuf_cpp build output under .buildozer/android/platform/build-arm64-v8a/build/other_builds/protobuf_cpp and compare the Python 3.10 claim with the logged Python 3.11 path. Done means a build containing google-generativeai completes successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java, python
- Domain
- build-system, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100