{"action":"created","issue":{"url":"https://api.github.com/repos/andersbll/cudarray/issues/18","labels_url":"https://api.github.com/repos/andersbll/cudarray/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/andersbll/cudarray/issues/18/comments","events_url":"https://api.github.com/repos/andersbll/cudarray/issues/18/events","html_url":"https://github.com/andersbll/cudarray/issues/18","id":97331106,"number":18,"title":"cudaarray installation problem ","user":{"login":"malzantot","id":1429452,"avatar_url":"https://avatars.githubusercontent.com/u/1429452?v=3","gravatar_id":"","url":"https://api.github.com/users/malzantot","html_url":"https://github.com/malzantot","followers_url":"https://api.github.com/users/malzantot/followers","following_url":"https://api.github.com/users/malzantot/following{/other_user}","gists_url":"https://api.github.com/users/malzantot/gists{/gist_id}","starred_url":"https://api.github.com/users/malzantot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malzantot/subscriptions","organizations_url":"https://api.github.com/users/malzantot/orgs","repos_url":"https://api.github.com/users/malzantot/repos","events_url":"https://api.github.com/users/malzantot/events{/privacy}","received_events_url":"https://api.github.com/users/malzantot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-26T16:26:15Z","updated_at":"2015-07-26T19:38:03Z","closed_at":null,"body":"Hi,\r\n\r\nI am trying to install \"cudarray\" but I am facing a problem.\r\n\r\nAfter doing `make` and `make install` when I tried to do `python setup.py install`, I get the following error : \r\n`./cudarray/wrap/array_data.cpp:1384:53: fatal error: arithmetic on a pointer to\r\n      void\r\n    __pyx_v_self->dev_ptr = (__pyx_v_owner->dev_ptr + (__pyx_v_offset * ...`\r\n\r\nI am using Mac OS X 10.10.3 and GCC (Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn) ,  I also have the Nvidia compiler nvcc installed using the following version : \r\n\r\n`nvcc: NVIDIA (R) Cuda compiler driver\r\nCopyright (c) 2005-2015 NVIDIA Corporation\r\nBuilt on Mon_Feb_16_23:23:36_CST_2015\r\nCuda compilation tools, release 7.0, V7.0.27`\r\n"},"comment":{"url":"https://api.github.com/repos/andersbll/cudarray/issues/comments/125031644","html_url":"https://github.com/andersbll/cudarray/issues/18#issuecomment-125031644","issue_url":"https://api.github.com/repos/andersbll/cudarray/issues/18","id":125031644,"user":{"login":"andersbll","id":177245,"avatar_url":"https://avatars.githubusercontent.com/u/177245?v=3","gravatar_id":"","url":"https://api.github.com/users/andersbll","html_url":"https://github.com/andersbll","followers_url":"https://api.github.com/users/andersbll/followers","following_url":"https://api.github.com/users/andersbll/following{/other_user}","gists_url":"https://api.github.com/users/andersbll/gists{/gist_id}","starred_url":"https://api.github.com/users/andersbll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andersbll/subscriptions","organizations_url":"https://api.github.com/users/andersbll/orgs","repos_url":"https://api.github.com/users/andersbll/repos","events_url":"https://api.github.com/users/andersbll/events{/privacy}","received_events_url":"https://api.github.com/users/andersbll/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T19:38:03Z","updated_at":"2015-07-26T19:38:03Z","body":"Hi, it seems Clang is more pedantic about void * arithmetic. In [array_data.pyx](https://github.com/andersbll/cudarray/blob/master/cudarray/wrap/array_data.pyx#L18), try changing \r\n\r\n    self.dev_ptr = owner.dev_ptr + offset*dtype.itemsize\r\nto\r\n\r\n    self.dev_ptr = (<char *> owner.dev_ptr) + offset*dtype.itemsize"}}