Status: New
Owner: ken...@google.com
Labels: Type-Defect Priority-Medium
New issue 242 by ivan.ko...@gmail.com: Can no longer install protobuf on
pypy
http://code.google.com/p/protobuf/issues/detail?id=242
What steps will reproduce the problem?
1. cd protobuf/python
2. ~/pypy-1.4/bin/pypy setup.py build
(a 32-bit pypy on a 32-bit Ubuntu)
What is the expected output? What do you see instead?
It would be nice if the extension would build, or at least fail without
stopping the build the process (assuming it is optional)
I see a build failure:
b...@ubuntu:~/protobuf-read-only/python$ ~/pypy-1.4/bin/pypy setup.py build
running build
running build_py
running build_ext
building 'google.protobuf.internal._net_proto2___python' extension
cc -I../src -I. -I/home/bear/pypy-1.4/include -c
google/protobuf/pyext/python_descriptor.cc -o
build/temp.linux-i686-2.5/google/protobuf/pyext/python_descriptor.o
google/protobuf/pyext/python_descriptor.cc:91: warning: deprecated
conversion from string constant to ‘char*’
google/protobuf/pyext/python_descriptor.cc:91: warning: deprecated
conversion from string constant to ‘char*’
google/protobuf/pyext/python_descriptor.cc:91: warning: deprecated
conversion from string constant to ‘char*’
google/protobuf/pyext/python_descriptor.cc:91: warning: deprecated
conversion from string constant to ‘char*’
google/protobuf/pyext/python_descriptor.cc:91: warning: deprecated
conversion from string constant to ‘char*’
google/protobuf/pyext/python_descriptor.cc:136: error: invalid conversion
from ‘PyObject* (*)(PyTypeObject*, long int)’ to ‘PyObject*
(*)(_typeobject*, Py_ssize_t)’
google/protobuf/pyext/python_descriptor.cc:266: error: invalid conversion
from ‘PyObject* (*)(PyTypeObject*, long int)’ to ‘PyObject*
(*)(_typeobject*, Py_ssize_t)’
google/protobuf/pyext/python_descriptor.cc: In function ‘PyObject*
google::protobuf::python::Python_BuildFile(PyObject*, PyObject*)’:
google/protobuf/pyext/python_descriptor.cc:294: error: invalid conversion
from ‘Py_ssize_t*’ to ‘long int*’
google/protobuf/pyext/python_descriptor.cc:294: error: initializing
argument 3 of ‘int PyString_AsStringAndSize(PyObject*, char**, long int*)’
error: command 'cc' failed with exit status 1
What version of the product are you using? On what operating system?
r349 on Ubuntu 9.10 32-bit
Please provide any additional information below.
r348 worked, because protobuf/python/ was pure Python.
--
You received this message because you are subscribed to the Google Groups "Protocol
Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/protobuf?hl=en.