Fails to build sip with PyPy

مهدي شينون mehdi.chinoune at hotmail.com
Thu Jun 23 18:51:31 BST 2022


Hi


I tried to build install/build sip with PyPy 3.9-7.3.9 but it fails with 
both GCC and MSVC


MSVC:

code_generator\py2c.c(352): error C2065: 'Py_None': undeclared identifier
code_generator\py2c.c(352): warning C4047: '==': 'PyObject *' differs in 
levels of indirection from 'int'
code_generator\py2c.c(418): warning C4244: '=': conversion from 
'Py_ssize_t' to 'int', possible loss of data
code_generator\py2c.c(549): error C2065: 'Py_None': undeclared identifier
code_generator\py2c.c(549): warning C4047: '==': 'PyObject *' differs in 
levels of indirection from 'int'
code_generator\py2c.c(626): error C2065: 'Py_None': undeclared identifier
code_generator\py2c.c(626): warning C4047: '==': 'PyObject *' differs in 
levels of indirection from 'int'
code_generator\py2c.c(901): error C2065: 'Py_None': undeclared identifier
code_generator\py2c.c(901): warning C4047: '!=': 'PyObject *' differs in 
levels of indirection from 'int'
code_generator\py2c.c(921): error C2065: 'Py_None': undeclared identifier
...


GCC:

code_generator/py2c.c:352:16: error: ‘Py_None’ undeclared (first use in 
this function)
352 | if (obj == Py_None)
| ^~~~~~~
code_generator/py2c.c:352:16: note: each undeclared identifier is 
reported only once for each function it appears in
code_generator/py2c.c: In function ‘cachedname’:
code_generator/py2c.c:549:16: error: ‘Py_None’ undeclared (first use in 
this function)
549 | if (obj == Py_None)
| ^~~~~~~
code_generator/py2c.c: In function ‘class’:
code_generator/py2c.c:626:16: error: ‘Py_None’ undeclared (first use in 
this function)
626 | if (obj == Py_None)
| ^~~~~~~
....


More information about the PyQt mailing list