{"action":"opened","issue":{"url":"https://api.github.com/repos/arrayfire/forge/issues/58","labels_url":"https://api.github.com/repos/arrayfire/forge/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/arrayfire/forge/issues/58/comments","events_url":"https://api.github.com/repos/arrayfire/forge/issues/58/events","html_url":"https://github.com/arrayfire/forge/issues/58","id":114207200,"number":58,"title":"osx build issues","user":{"login":"tmpvar","id":46673,"avatar_url":"https://avatars.githubusercontent.com/u/46673?v=3","gravatar_id":"","url":"https://api.github.com/users/tmpvar","html_url":"https://github.com/tmpvar","followers_url":"https://api.github.com/users/tmpvar/followers","following_url":"https://api.github.com/users/tmpvar/following{/other_user}","gists_url":"https://api.github.com/users/tmpvar/gists{/gist_id}","starred_url":"https://api.github.com/users/tmpvar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmpvar/subscriptions","organizations_url":"https://api.github.com/users/tmpvar/orgs","repos_url":"https://api.github.com/users/tmpvar/repos","events_url":"https://api.github.com/users/tmpvar/events{/privacy}","received_events_url":"https://api.github.com/users/tmpvar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-30T05:52:31Z","updated_at":"2015-10-30T05:52:31Z","closed_at":null,"body":"On OSX El Capitan (10.11)\r\nUsing cmake@3.3.2\r\nand clang:\r\n```\r\nforge (master)‣ clang --version\r\nApple LLVM version 7.0.0 (clang-700.1.76)\r\nTarget: x86_64-apple-darwin15.0.0\r\nThread model: posix\r\n```\r\n\r\nafter cloning forge and [running through the build process](https://gist.githubusercontent.com/tmpvar/833d462b3774f1199348/raw/9dd6f6bf9ea83a72cbceb7c9a9e868fe92052105/clone%2520and%2520build)\r\n\r\nI'm seeing\r\n\r\n```\r\n[ 69%] Building CXX object examples/CMakeFiles/example_histogram_opencl.dir/opencl/histogram.cpp.o\r\n/Users/tmpvar/work/gfx/tmp/forge/examples/opencl/histogram.cpp:283:16: error: use of undeclared identifier 'fmod'\r\n            if(fmod(persistance, 0.5f) < 0.01)\r\n               ^\r\n1 error generated.\r\n```\r\n\r\nafter applying [this patch](https://gist.githubusercontent.com/tmpvar/833d462b3774f1199348/raw/9dd6f6bf9ea83a72cbceb7c9a9e868fe92052105/add-math.h.patch)\r\n\r\nI was able to get it to build, but upon running the `surface_opencl` demo I see:\r\n\r\n```\r\nforge (master)‣ examples/opencl/surface_opencl\r\nInfoLog:\r\nWARNING: Output of vertex shader 'hpoint' not read by fragment shader\r\n\r\nOpenGL Shader linking failed(2001)"}}