[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: Fails to build sip with PyPy
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2022-06-25 14:37:18
Message-ID: 4d5cea853acf2fc81db72a171b587bf2 () riverbankcomputing ! com
[Download RAW message or body]

On 23/06/2022 18:51, مهدي شينون wrote:
> 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)
> | ^~~~~~~
> ....

Building the code generator against PyPy isn't supported but I'm happy 
to consider patches.

Phil
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic