Alexander Heger added the comment:
if I just include this patch, some modules don't build:
(...)
gcc -pthread -fPIC -Wno-unused-result -Wsign-compare -Wunreachable-code
-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
-Werror=declaration-after-statement
-Ibuild/temp.linux-x86_64-3.5/libffi/include
-Ibuild/temp.linux-x86_64-3.5/libffi
-I/home/alex/Python-3.5.0/Modules/_ctypes/libffi/src -I./Include
-I/home/alex/Python/include -I. -IInclude -I/usr/local/include
-I/home/alex/Python-3.5.0/Include -I/home/alex/Python-3.5.0 -c
/home/alex/Python-3.5.0/Modules/_ctypes/_ctypes.c -o
build/temp.linux-x86_64-3.5/home/alex/Python-3.5.0/Modules/_ctypes/_ctypes.o
-Wall -fexceptions
/home/alex/Python-3.5.0/Modules/_ctypes/_ctypes.c: In function
‘PyCSimpleType_from_param’:
/home/alex/Python-3.5.0/Modules/_ctypes/_ctypes.c:2062:15: error:
‘_PyThreadState_Current’ undeclared (first use in this function)
if (Py_EnterRecursiveCall("while processing _as_parameter_")) {
^
/home/alex/Python-3.5.0/Modules/_ctypes/_ctypes.c:2062:15: note: each
undeclared identifier is reported only once for each function it appears in
/home/alex/Python-3.5.0/Modules/_ctypes/_ctypes.c:2062:28: error:
‘__atomic_load_ptr’ undeclared (first use in this function)
if (Py_EnterRecursiveCall("while processing _as_parameter_")) {
^
/home/alex/Python-3.5.0/Modules/_ctypes/_ctypes.c:2062:66: error: argument 1 of
‘__atomic_load’ must be a non-void pointer type
if (Py_EnterRecursiveCall("while processing _as_parameter_")) {
^
/home/alex/Python-3.5.0/Modules/_ctypes/_ctypes.c:2062:19: warning: cast to
pointer from integer of different size [-Wint-to-pointer-cast]
if (Py_EnterRecursiveCall("while processing _as_parameter_")) {
^
/home/alex/Python-3.5.0/Modules/_ctypes/_ctypes.c:2067:62: error: argument 1 of
‘__atomic_load’ must be a non-void pointer type
/home/alex/Python-3.5.0/Modules/_ctypes/_ctypes.c:2067:21: warning: cast to
pointer from integer of different size [-Wint-to-pointer-cast]
Py_LeaveRecursiveCall();
^
/home/alex/Python-3.5.0/Modules/_ctypes/_ctypes.c:2067:62: error: argument 1 of
‘__atomic_load’ must be a non-void pointer type
/home/alex/Python-3.5.0/Modules/_ctypes/_ctypes.c:2067:139: warning: cast to
pointer from integer of different size [-Wint-to-pointer-cast]
Failed to build these modules:
_ctypes _decimal _json
_pickle
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue25150>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com