Skip to content

Error In building kivy android on Mac OSX #341

@ktitan123

Description

@ktitan123
In file included from Include/Python.h:126:0,
                 from ./Modules/_elementtree.c:50:
Include/modsupport.h:27:1: warning: ‘PyArg_ParseTuple’ is an unrecognized format function type [-Wformat=]
 PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...) Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3);
 ^
gcc -fno-strict-aliasing  -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include   -DPy_BUILD_CORE  -c ./Modules/datetimemodule.c -o Modules/datetimemodule.o
In file included from /usr/include/dispatch/dispatch.h:51:0,
                 from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15,
                 from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13,
                 from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:55,
                 from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19,
                 from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20,
                 from Include/pymactoolbox.h:10,
                 from Python/mactoolboxglue.c:27:
/usr/include/dispatch/object.h:143:15: error: expected identifier or ‘(’ before ‘^’ token
 typedef void (^dispatch_block_t)(void);
               ^
/usr/include/dispatch/object.h:362:3: error: unknown type name ‘dispatch_block_t’
   dispatch_block_t notification_block);
   ^
In file included from Include/Python.h:126:0,
                 from ./Modules/datetimemodule.c:7:
Include/modsupport.h:27:1: warning: ‘_PyArg_ParseTuple_SizeT’ is an unrecognized format function type [-Wformat=]
 PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...) Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3);
 ^
In file included from Include/Python.h:81:0,
                 from ./Modules/datetimemodule.c:7:
./Modules/datetimemodule.c: In function ‘time_alloc’:
Include/objimpl.h:164:66: warning: right-hand operand of comma expression has no effect [-Wunused-value]
     ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) )
                                                                  ^
./Modules/datetimemodule.c:616:5: note: in expansion of macro ‘PyObject_INIT’
     PyObject_INIT(self, type);
     ^
./Modules/datetimemodule.c: In function ‘datetime_alloc’:
Include/objimpl.h:164:66: warning: right-hand operand of comma expression has no effect [-Wunused-value]
     ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) )
                                                                  ^
./Modules/datetimemodule.c:631:5: note: in expansion of macro ‘PyObject_INIT’
     PyObject_INIT(self, type);
     ^
gcc -fno-strict-aliasing  -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include   -DPy_BUILD_CORE  -c ./Modules/_bisectmodule.c -o Modules/_bisectmodule.o
In file included from Include/Python.h:126:0,
                 from ./Modules/_bisectmodule.c:6:
Include/modsupport.h:27:1: warning: ‘PyArg_ParseTuple’ is an unrecognized format function type [-Wformat=]
 PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...) Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3);
 ^
gcc -fno-strict-aliasing  -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include   -DPy_BUILD_CORE  -c ./Modules/fcntlmodule.c -o Modules/fcntlmodule.o
In file included from Include/Python.h:126:0,
                 from ./Modules/fcntlmodule.c:6:
Include/modsupport.h:27:1: warning: ‘_PyArg_ParseTuple_SizeT’ is an unrecognized format function type [-Wformat=]
 PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...) Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3);
 ^
make: *** [Python/mactoolboxglue.o] Error 1
make: *** Waiting for unfinished jobs....
# Command failed: ./distribute.sh -m "kivy" -d "'myapp'"
# 
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions