Hello,

While attempting to compile PyCUDA under Python 3:

$ virtualenv -p python3.2 --system-site-packages myenv
$ cd myenv
$ source bin/activate
$ git clone https://github.com/inducer/pycuda.git
$ cd pycuda
$ git submodule init
$ git submodule update
$ python setup.py install

I received:
x86_64-pc-linux-gnu-g++ -pthread -fPIC -I/usr/lib/python3.2/site-packages/numpy/core/include -I/usr/lib/python3.2/site-packages/numpy/core/include -I/usr/include/python3.2 -c src/wrapper/_pvt_struct_v3.cpp -o build/temp.linux-x86_64-3.2/src/wrapper/_pvt_struct_v3.o src/wrapper/_pvt_struct_v3.cpp: In function ‘int s_init(PyObject*, PyObject*, PyObject*)’: src/wrapper/_pvt_struct_v3.cpp:1045:41: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] src/wrapper/_pvt_struct_v3.cpp:1047:5: error: ‘PyStructType’ was not declared in this scope src/wrapper/_pvt_struct_v3.cpp: In function ‘PyObject* s_unpack(PyObject*, PyObject*)’: src/wrapper/_pvt_struct_v3.cpp:1138:5: error: ‘PyStructType’ was not declared in this scope src/wrapper/_pvt_struct_v3.cpp: In function ‘PyObject* s_unpack_from(PyObject*, PyObject*, PyObject*)’: src/wrapper/_pvt_struct_v3.cpp:1164:51: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] src/wrapper/_pvt_struct_v3.cpp:1164:51: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] src/wrapper/_pvt_struct_v3.cpp:1172:5: error: ‘PyStructType’ was not declared in this scope src/wrapper/_pvt_struct_v3.cpp: In function ‘PyObject* s_pack(PyObject*, PyObject*)’: src/wrapper/_pvt_struct_v3.cpp:1296:5: error: ‘PyStructType’ was not declared in this scope src/wrapper/_pvt_struct_v3.cpp: In function ‘PyObject* s_pack_into(PyObject*, PyObject*)’: src/wrapper/_pvt_struct_v3.cpp:1336:5: error: ‘PyStructType’ was not declared in this scope
src/wrapper/_pvt_struct_v3.cpp: At global scope:
src/wrapper/_pvt_struct_v3.cpp:1414:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] src/wrapper/_pvt_struct_v3.cpp:1414:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] src/wrapper/_pvt_struct_v3.cpp:1414:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] src/wrapper/_pvt_struct_v3.cpp:1414:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1

which is very similar to https://github.com/inducer/pycuda/issues/11 in that it can also be fixed by passing the -DNDEBUG flag. Would it be possible for this fix to be ported to _pvt_struct_v3? (Or just ensure that -DNDEBUG is always passed.)

Also, are there any other potential issues with PyCUDA and Python 3.x that I should be aware of?

Regards, Freddie.


_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda

Reply via email to