-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install requirements? #4
Comments
Sounds very strange. I don't see how this can compile as Objective C. What errors do you get when executing the Makefile with a C++ compiler? |
Sorry, pretty poor issue description there. Here is what I'm getting during python setup.py install: cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] Error compiling Cython file:... cdef extern from 'cudarray/common.hpp' namespace 'cudarray': ^cudarray/wrap/array_data.pxd:5:23: Syntax error in ctypedef statement Error compiling Cython file:... cdef bool_t *bool_ptr(ArrayData a): ^cudarray/wrap/array_data.pyx:50:5: 'bool_t' is not a type identifier Error compiling Cython file:... cdef int *int_ptr(ArrayData a): cdef bool is_int(ArrayData a): ^cudarray/wrap/array_data.pyx:62:5: 'bool' is not a type identifier Error compiling Cython file:... cdef bool is_int(ArrayData a): cdef bool is_float(ArrayData a): ^cudarray/wrap/array_data.pyx:66:5: 'bool' is not a type identifier Error compiling Cython file:... ^cudarray/wrap/array_data.pyx:16:33: Cannot take address of Python variable Error compiling Cython file:... ^cudarray/wrap/array_data.pyx:20:42: Cannot convert Python object to 'void *' Error compiling Cython file:...
cudarray/wrap/array_data.pyx:24:60: Cannot convert Python object to 'void const *' Error compiling Cython file:...
cudarray/wrap/array_data.pyx:30:25: Cannot convert Python object to 'void *' Error compiling Cython file:... cdef bool_t *bool_ptr(ArrayData a): ^cudarray/wrap/array_data.pyx:51:12: 'bool_t' is not a type identifier Error compiling Cython file:... cdef float *float_ptr(ArrayData a): ^cudarray/wrap/array_data.pyx:55:11: Python objects cannot be cast to pointers of primitive types Error compiling Cython file:... cdef int *int_ptr(ArrayData a): I'm using anaconda and it looks like I've got cython 0.20.1 Did I miss a requirement here? Make and Make Install both complete without any apparent issue. Thanks |
You need the latest version of Cython (0.21). I have recently updated the requirements in setup.py to reflect this. Be sure to checkout the latest version of CUDArray. Best, |
Hi Anders, |
Good to hear! :) |
Hi,
It looks like this only compiles for Objective C. Am I doing something wrong with a gcc only machine, or is C++ not supported?
Thanks
-Tim
The text was updated successfully, but these errors were encountered: