Status: New
Owner: liuj...@google.com
Labels: Type-Defect Priority-Medium

New issue 281 by redaread...@gmail.com: python c++ implementation build fails with mingw32
http://code.google.com/p/protobuf/issues/detail?id=281

E:\ed\protobuf\python>python setup.py build --compiler=mingw32
Using EXPERIMENTAL C++ Implmenetation.
running build
running build_py
package init file 'google\protobuf\compiler\__init__.py' not found (or not a reg
ular file)
running build_ext
building 'google.protobuf.internal._net_proto2___python' extension
d:\Program Files\pythonxy\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -I../src -I. -Ic:\Python26\include -Ic:\Python26\PC -c google/protobuf/pyext/python_descr iptor.cc -o build\temp.win32-2.6\Release\google\protobuf\pyext\python_descriptor
.o
google/protobuf/pyext/python_descriptor.cc:91:1: warning: deprecated conversion
from string constant to 'char*'
google/protobuf/pyext/python_descriptor.cc:91:1: warning: deprecated conversion
from string constant to 'char*'
google/protobuf/pyext/python_descriptor.cc:91:1: warning: deprecated conversion
from string constant to 'char*'
google/protobuf/pyext/python_descriptor.cc:91:1: warning: deprecated conversion
from string constant to 'char*'
google/protobuf/pyext/python_descriptor.cc:91:1: warning: deprecated conversion
from string constant to 'char*'
d:\Program Files\pythonxy\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -I../src -I. -Ic:\Python26\include -Ic:\Python26\PC -c google/protobuf/pyext/python_proto buf.cc -o build\temp.win32-2.6\Release\google\protobuf\pyext\python_protobuf.o d:\Program Files\pythonxy\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -I../src -I. -Ic:\Python26\include -Ic:\Python26\PC -c google/protobuf/pyext/python-proto
2.cc -o build\temp.win32-2.6\Release\google\protobuf\pyext\python-proto2.o
google/protobuf/pyext/python-proto2.cc: In function 'void google::protobuf::pyth
on::AddConstants(PyObject*)':
google/protobuf/pyext/python-proto2.cc:132:3: warning: deprecated conversion fro
m string constant to 'char*'
google/protobuf/pyext/python-proto2.cc:132:3: warning: deprecated conversion fro
m string constant to 'char*'
google/protobuf/pyext/python-proto2.cc:132:3: warning: deprecated conversion fro
m string constant to 'char*'
google/protobuf/pyext/python-proto2.cc:132:3: warning: deprecated conversion fro
m string constant to 'char*'
google/protobuf/pyext/python-proto2.cc:132:3: warning: deprecated conversion fro
m string constant to 'char*'
google/protobuf/pyext/python-proto2.cc: At global scope:
google/protobuf/pyext/python-proto2.cc:268:1: warning: deprecated conversion fro
m string constant to 'char*'
google/protobuf/pyext/python-proto2.cc: In function 'bool google::protobuf::pyth
on::CheckAndGetDouble(PyObject*, double*)':
google/protobuf/pyext/python-proto2.cc:365:44: warning: deprecated conversion fr
om string constant to 'char*'
google/protobuf/pyext/python-proto2.cc: In function 'bool google::protobuf::pyth
on::CheckAndGetBool(PyObject*, bool*)':
google/protobuf/pyext/python-proto2.cc:383:43: warning: deprecated conversion fr
om string constant to 'char*'
google/protobuf/pyext/python-proto2.cc: In function 'bool google::protobuf::pyth on::CheckAndSetString(PyObject*, google::protobuf::Message*, const google::proto
buf::FieldDescriptor*, const google::protobuf::Reflection*, bool, int)':
google/protobuf/pyext/python-proto2.cc:411:42: warning: deprecated conversion fr
om string constant to 'char*'
google/protobuf/pyext/python-proto2.cc:431:31: warning: deprecated conversion fr
om string constant to 'char*'
google/protobuf/pyext/python-proto2.cc: In function 'bool google::protobuf::pyth on::CheckAndGetInteger(PyObject*, T*, PyObject*, PyObject*) [with T = int, PyObj
ect = _object]':
google/protobuf/pyext/python-proto2.cc:626:7:   instantiated from here
google/protobuf/pyext/python-proto2.cc:338:5: warning: deprecated conversion fro
m string constant to 'char*'
google/protobuf/pyext/python-proto2.cc: In function 'bool google::protobuf::pyth on::CheckAndGetInteger(PyObject*, T*, PyObject*, PyObject*) [with T = long long
int, PyObject = _object]':
google/protobuf/pyext/python-proto2.cc:631:7:   instantiated from here
google/protobuf/pyext/python-proto2.cc:338:5: warning: deprecated conversion fro
m string constant to 'char*'
google/protobuf/pyext/python-proto2.cc: In function 'bool google::protobuf::pyth on::CheckAndGetInteger(PyObject*, T*, PyObject*, PyObject*) [with T = unsigned i
nt, PyObject = _object]':
google/protobuf/pyext/python-proto2.cc:636:7:   instantiated from here
google/protobuf/pyext/python-proto2.cc:338:5: warning: deprecated conversion fro
m string constant to 'char*'
google/protobuf/pyext/python-proto2.cc: In function 'bool google::protobuf::pyth on::CheckAndGetInteger(PyObject*, T*, PyObject*, PyObject*) [with T = long long
unsigned int, PyObject = _object]':
google/protobuf/pyext/python-proto2.cc:641:7:   instantiated from here
google/protobuf/pyext/python-proto2.cc:338:5: warning: deprecated conversion fro
m string constant to 'char*'
writing build\temp.win32-2.6\Release\google\protobuf\pyext\_net_proto2___python.
def
Traceback (most recent call last):
  File "setup.py", line 153, in <module>
    "Protocol Buffers are Google's data interchange format.",
  File "c:\Python26\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "c:\Python26\lib\distutils\dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "c:\Python26\lib\distutils\dist.py", line 995, in run_command
    cmd_obj.run()
  File "c:\Python26\lib\distutils\command\build.py", line 134, in run
    self.run_command(cmd_name)
  File "c:\Python26\lib\distutils\cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "c:\Python26\lib\distutils\dist.py", line 995, in run_command
    cmd_obj.run()
File "c:\Python26\lib\site-packages\setuptools\command\build_ext.py", line 46,
 in run
    _build_ext.run(self)
  File "c:\Python26\lib\distutils\command\build_ext.py", line 340, in run
    self.build_extensions()
File "c:\Python26\lib\distutils\command\build_ext.py", line 449, in build_exte
nsions
    self.build_extension(ext)
File "c:\Python26\lib\site-packages\setuptools\command\build_ext.py", line 175
, in build_extension
    _build_ext.build_extension(self,ext)
File "c:\Python26\lib\distutils\command\build_ext.py", line 531, in build_exte
nsion
    target_lang=language)
File "c:\Python26\lib\distutils\ccompiler.py", line 769, in link_shared_object

    extra_preargs, extra_postargs, build_temp, target_lang)
  File "c:\Python26\lib\distutils\cygwinccompiler.py", line 260, in link
    target_lang)
  File "c:\Python26\lib\distutils\unixccompiler.py", line 218, in link
    libraries)
File "c:\Python26\lib\distutils\ccompiler.py", line 1166, in gen_lib_options
    opt = compiler.runtime_library_dir_option (dir)
File "c:\Python26\lib\distutils\unixccompiler.py", line 285, in runtime_librar
y_dir_option
    compiler = os.path.basename(sysconfig.get_config_var("CC"))
  File "c:\Python26\lib\ntpath.py", line 198, in basename
    return split(p)[1]
  File "c:\Python26\lib\ntpath.py", line 170, in split
    d, p = splitdrive(p)
  File "c:\Python26\lib\ntpath.py", line 125, in splitdrive
    if p[1:2] == ':':
TypeError: 'NoneType' object is unsubscriptable

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to protobuf@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.

Reply via email to