{"action":"opened","issue":{"url":"https://api.github.com/repos/CRVI/OpenCLIPP/issues/16","labels_url":"https://api.github.com/repos/CRVI/OpenCLIPP/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/CRVI/OpenCLIPP/issues/16/comments","events_url":"https://api.github.com/repos/CRVI/OpenCLIPP/issues/16/events","html_url":"https://github.com/CRVI/OpenCLIPP/issues/16","id":119812124,"number":16,"title":"Can't run demo on OS/X","user":{"login":"jeffheifetz","id":439442,"avatar_url":"https://avatars.githubusercontent.com/u/439442?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffheifetz","html_url":"https://github.com/jeffheifetz","followers_url":"https://api.github.com/users/jeffheifetz/followers","following_url":"https://api.github.com/users/jeffheifetz/following{/other_user}","gists_url":"https://api.github.com/users/jeffheifetz/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffheifetz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffheifetz/subscriptions","organizations_url":"https://api.github.com/users/jeffheifetz/orgs","repos_url":"https://api.github.com/users/jeffheifetz/repos","events_url":"https://api.github.com/users/jeffheifetz/events{/privacy}","received_events_url":"https://api.github.com/users/jeffheifetz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-01T21:29:27Z","updated_at":"2015-12-01T21:29:27Z","closed_at":null,"body":"I made the [following changes](https://github.com/BublTechnology/OpenCLIPP/commit/2ab6b75cd98d0f785760f1105fb34b88aa95be3b) in an attempt to get the demo running, but it seems to fail on kernel compilation. \r\n\r\nIs this an issue on other platforms?\r\n\r\n```\r\nUsing device : Intel(R) Core(TM) i7-4578U CPU @ 3.00GHz\r\nProgram build failed : <program source>:38:4: warning: unused variable 'pos'\r\n   BEGIN\r\n   ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\n<program source>:51:4: warning: unused variable 'pos'\r\n   BEGIN\r\n   ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\n<program source>:154:1: warning: implicit declaration of function 'convert___uchar3_sat' is invalid in C99\r\nCONVERT_KERNEL(to_uchar,   CONCATENATE(uchar,  NBCHAN))\r\n^\r\n<program source>:120:46: note: expanded from macro 'CONVERT_KERNEL'\r\n      dest[gy * dst_step + gx] = CONCATENATE(convert_, CONCATENATE(dest_type, _sat)) (src);\\\r\n                                             ^\r\n/Users/jeffheifetz/Coding/Bubl/BublEqui/extern/OpenCLIPP/Demo/../cl-files/Base.h:46:40: note: expanded from macro 'CONCATENATE'\r\n#define CONCATENATE(a, b) _CONCATENATE(a, b)\r\n                                       ^\r\n/Users/jeffheifetz/Coding/Bubl/BublEqui/extern/OpenCLIPP/Demo/../cl-files/Base.h:47:28: note: expanded from macro '_CONCATENATE'\r\n#define _CONCATENATE(a, b) a ## b\r\n                           ^\r\n<scratch space>:13:1: note: expanded from macro 'convert_'\r\nconvert___uchar3_sat\r\n^\r\n<program source>:154:1: warning: unused variable 'pos'\r\nCONVERT_KERNEL(to_uchar,   CONCATENATE(uchar,  NBCHAN))\r\n^\r\n<program source>:116:7: note: expanded from macro 'CONVERT_KERNEL'\r\n      BEGIN\\\r\n      ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\n<program source>:155:1: warning: implicit declaration of function 'convert___char3_sat' is invalid in C99\r\nCONVERT_KERNEL(to_char,    CONCATENATE(char,   NBCHAN))\r\n^\r\n<program source>:120:46: note: expanded from macro 'CONVERT_KERNEL'\r\n      dest[gy * dst_step + gx] = CONCATENATE(convert_, CONCATENATE(dest_type, _sat)) (src);\\\r\n                                             ^\r\n/Users/jeffheifetz/Coding/Bubl/BublEqui/extern/OpenCLIPP/Demo/../cl-files/Base.h:46:40: note: expanded from macro 'CONCATENATE'\r\n#define CONCATENATE(a, b) _CONCATENATE(a, b)\r\n                                       ^\r\n/Users/jeffheifetz/Coding/Bubl/BublEqui/extern/OpenCLIPP/Demo/../cl-files/Base.h:47:28: note: expanded from macro '_CONCATENATE'\r\n#define _CONCATENATE(a, b) a ## b\r\n                           ^\r\n<scratch space>:13:1: note: expanded from macro 'convert_'\r\nconvert___char3_sat\r\n^\r\n<program source>:155:1: warning: unused variable 'pos'\r\nCONVERT_KERNEL(to_char,    CONCATENATE(char,   NBCHAN))\r\n^\r\n<program source>:116:7: note: expanded from macro 'CONVERT_KERNEL'\r\n      BEGIN\\\r\n      ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\n<program source>:156:1: warning: implicit declaration of function 'convert___ushort3_sat' is invalid in C99\r\nCONVERT_KERNEL(to_ushort,  CONCATENATE(ushort, NBCHAN))\r\n^\r\n<program source>:120:46: note: expanded from macro 'CONVERT_KERNEL'\r\n      dest[gy * dst_step + gx] = CONCATENATE(convert_, CONCATENATE(dest_type, _sat)) (src);\\\r\n                                             ^\r\n/Users/jeffheifetz/Coding/Bubl/BublEqui/extern/OpenCLIPP/Demo/../cl-files/Base.h:46:40: note: expanded from macro 'CONCATENATE'\r\n#define CONCATENATE(a, b) _CONCATENATE(a, b)\r\n                                       ^\r\n/Users/jeffheifetz/Coding/Bubl/BublEqui/extern/OpenCLIPP/Demo/../cl-files/Base.h:47:28: note: expanded from macro '_CONCATENATE'\r\n#define _CONCATENATE(a, b) a ## b\r\n                           ^\r\n<scratch space>:13:1: note: expanded from macro 'convert_'\r\nconvert___ushort3_sat\r\n^\r\n<program source>:156:1: warning: unused variable 'pos'\r\nCONVERT_KERNEL(to_ushort,  CONCATENATE(ushort, NBCHAN))\r\n^\r\n<program source>:116:7: note: expanded from macro 'CONVERT_KERNEL'\r\n      BEGIN\\\r\n      ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\n<program source>:157:1: warning: implicit declaration of function 'convert___short3_sat' is invalid in C99\r\nCONVERT_KERNEL(to_short,   CONCATENATE(short,  NBCHAN))\r\n^\r\n<program source>:120:46: note: expanded from macro 'CONVERT_KERNEL'\r\n      dest[gy * dst_step + gx] = CONCATENATE(convert_, CONCATENATE(dest_type, _sat)) (src);\\\r\n                                             ^\r\n/Users/jeffheifetz/Coding/Bubl/BublEqui/extern/OpenCLIPP/Demo/../cl-files/Base.h:46:40: note: expanded from macro 'CONCATENATE'\r\n#define CONCATENATE(a, b) _CONCATENATE(a, b)\r\n                                       ^\r\n/Users/jeffheifetz/Coding/Bubl/BublEqui/extern/OpenCLIPP/Demo/../cl-files/Base.h:47:28: note: expanded from macro '_CONCATENATE'\r\n#define _CONCATENATE(a, b) a ## b\r\n                           ^\r\n<scratch space>:13:1: note: expanded from macro 'convert_'\r\nconvert___short3_sat\r\n^\r\n<program source>:157:1: warning: unused variable 'pos'\r\nCONVERT_KERNEL(to_short,   CONCATENATE(short,  NBCHAN))\r\n^\r\n<program source>:116:7: note: expanded from macro 'CONVERT_KERNEL'\r\n      BEGIN\\\r\n      ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\n<program source>:158:1: warning: implicit declaration of function 'convert___uint3_sat' is invalid in C99\r\nCONVERT_KERNEL(to_uint,    CONCATENATE(uint,   NBCHAN))\r\n^\r\n<program source>:120:46: note: expanded from macro 'CONVERT_KERNEL'\r\n      dest[gy * dst_step + gx] = CONCATENATE(convert_, CONCATENATE(dest_type, _sat)) (src);\\\r\n                                             ^\r\n/Users/jeffheifetz/Coding/Bubl/BublEqui/extern/OpenCLIPP/Demo/../cl-files/Base.h:46:40: note: expanded from macro 'CONCATENATE'\r\n#define CONCATENATE(a, b) _CONCATENATE(a, b)\r\n                                       ^\r\n/Users/jeffheifetz/Coding/Bubl/BublEqui/extern/OpenCLIPP/Demo/../cl-files/Base.h:47:28: note: expanded from macro '_CONCATENATE'\r\n#define _CONCATENATE(a, b) a ## b\r\n                           ^\r\n<scratch space>:13:1: note: expanded from macro 'convert_'\r\nconvert___uint3_sat\r\n^\r\n<program source>:158:1: warning: unused variable 'pos'\r\nCONVERT_KERNEL(to_uint,    CONCATENATE(uint,   NBCHAN))\r\n^\r\n<program source>:116:7: note: expanded from macro 'CONVERT_KERNEL'\r\n      BEGIN\\\r\n      ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\n<program source>:159:1: warning: implicit declaration of function 'convert___int3_sat' is invalid in C99\r\nCONVERT_KERNEL(to_int,     CONCATENATE(int,    NBCHAN))\r\n^\r\n<program source>:120:46: note: expanded from macro 'CONVERT_KERNEL'\r\n      dest[gy * dst_step + gx] = CONCATENATE(convert_, CONCATENATE(dest_type, _sat)) (src);\\\r\n                                             ^\r\n/Users/jeffheifetz/Coding/Bubl/BublEqui/extern/OpenCLIPP/Demo/../cl-files/Base.h:46:40: note: expanded from macro 'CONCATENATE'\r\n#define CONCATENATE(a, b) _CONCATENATE(a, b)\r\n                                       ^\r\n/Users/jeffheifetz/Coding/Bubl/BublEqui/extern/OpenCLIPP/Demo/../cl-files/Base.h:47:28: note: expanded from macro '_CONCATENATE'\r\n#define _CONCATENATE(a, b) a ## b\r\n                           ^\r\n<scratch space>:13:1: note: expanded from macro 'convert_'\r\nconvert___int3_sat\r\n^\r\n<program source>:159:1: warning: unused variable 'pos'\r\nCONVERT_KERNEL(to_int,     CONCATENATE(int,    NBCHAN))\r\n^\r\n<program source>:116:7: note: expanded from macro 'CONVERT_KERNEL'\r\n      BEGIN\\\r\n      ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\n<program source>:160:1: warning: implicit declaration of function 'convert___float3' is invalid in C99\r\nCONVERT_FLOAT_KERNEL(to_float,  CONCATENATE(float,  NBCHAN))\r\n^\r\n<program source>:130:46: note: expanded from macro 'CONVERT_FLOAT_KERNEL'\r\n      dest[gy * dst_step + gx] = CONCATENATE(convert_, dest_type) (src);\\\r\n                                             ^\r\n/Users/jeffheifetz/Coding/Bubl/BublEqui/extern/OpenCLIPP/Demo/../cl-files/Base.h:46:40: note: expanded from macro 'CONCATENATE'\r\n#define CONCATENATE(a, b) _CONCATENATE(a, b)\r\n                                       ^\r\n/Users/jeffheifetz/Coding/Bubl/BublEqui/extern/OpenCLIPP/Demo/../cl-files/Base.h:47:28: note: expanded from macro '_CONCATENATE'\r\n#define _CONCATENATE(a, b) a ## b\r\n                           ^\r\n<scratch space>:13:1: note: expanded from macro 'convert_'\r\nconvert___float3\r\n^\r\n<program source>:160:1: warning: unused variable 'pos'\r\nCONVERT_FLOAT_KERNEL(to_float,  CONCATENATE(float,  NBCHAN))\r\n^\r\n<program source>:126:7: note: expanded from macro 'CONVERT_FLOAT_KERNEL'\r\n      BEGIN\\\r\n      ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\n<program source>:161:1: warning: implicit declaration of function 'convert___double3' is invalid in C99\r\nCONVERT_FLOAT_KERNEL(to_double, CONCATENATE(double, NBCHAN))\r\n^\r\n<program source>:130:46: note: expanded from macro 'CONVERT_FLOAT_KERNEL'\r\n      dest[gy * dst_step + gx] = CONCATENATE(convert_, dest_type) (src);\\\r\n                                             ^\r\n/Users/jeffheifetz/Coding/Bubl/BublEqui/extern/OpenCLIPP/Demo/../cl-files/Base.h:46:40: note: expanded from macro 'CONCATENATE'\r\n#define CONCATENATE(a, b) _CONCATENATE(a, b)\r\n                                       ^\r\n/Users/jeffheifetz/Coding/Bubl/BublEqui/extern/OpenCLIPP/Demo/../cl-files/Base.h:47:28: note: expanded from macro '_CONCATENATE'\r\n#define _CONCATENATE(a, b) a ## b\r\n                           ^\r\n<scratch space>:13:1: note: expanded from macro 'convert_'\r\nconvert___double3\r\n^\r\n<program source>:161:1: warning: unused variable 'pos'\r\nCONVERT_FLOAT_KERNEL(to_double, CONCATENATE(double, NBCHAN))\r\n^\r\n<program source>:126:7: note: expanded from macro 'CONVERT_FLOAT_KERNEL'\r\n      BEGIN\\\r\n      ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\n<program source>:163:1: warning: unused variable 'pos'\r\nSCALE_KERNEL(scale_to_uchar,  CONCATENATE(uchar,  NBCHAN))\r\n^\r\n<program source>:136:7: note: expanded from macro 'SCALE_KERNEL'\r\n      BEGIN\\\r\n      ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\n<program source>:164:1: warning: unused variable 'pos'\r\nSCALE_KERNEL(scale_to_char,   CONCATENATE(char,   NBCHAN))\r\n^\r\n<program source>:136:7: note: expanded from macro 'SCALE_KERNEL'\r\n      BEGIN\\\r\n      ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\n<program source>:165:1: warning: unused variable 'pos'\r\nSCALE_KERNEL(scale_to_ushort, CONCATENATE(ushort, NBCHAN))\r\n^\r\n<program source>:136:7: note: expanded from macro 'SCALE_KERNEL'\r\n      BEGIN\\\r\n      ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\n<program source>:166:1: warning: unused variable 'pos'\r\nSCALE_KERNEL(scale_to_short,  CONCATENATE(short,  NBCHAN))\r\n^\r\n<program source>:136:7: note: expanded from macro 'SCALE_KERNEL'\r\n      BEGIN\\\r\n      ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\n<program source>:167:1: warning: unused variable 'pos'\r\nSCALE_KERNEL(scale_to_uint,   CONCATENATE(uint,   NBCHAN))\r\n^\r\n<program source>:136:7: note: expanded from macro 'SCALE_KERNEL'\r\n      BEGIN\\\r\n      ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\n<program source>:168:1: warning: unused variable 'pos'\r\nSCALE_KERNEL(scale_to_int,    CONCATENATE(int,    NBCHAN))\r\n^\r\n<program source>:136:7: note: expanded from macro 'SCALE_KERNEL'\r\n      BEGIN\\\r\n      ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\n<program source>:169:1: warning: unused variable 'pos'\r\nSCALE_FLOAT_KERNEL(scale_to_float,  CONCATENATE(float,  NBCHAN))\r\n^\r\n<program source>:147:7: note: expanded from macro 'SCALE_FLOAT_KERNEL'\r\n      BEGIN\\\r\n      ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\n<program source>:170:1: warning: unused variable 'pos'\r\nSCALE_FLOAT_KERNEL(scale_to_double, CONCATENATE(double, NBCHAN))\r\n^\r\n<program source>:147:7: note: expanded from macro 'SCALE_FLOAT_KERNEL'\r\n      BEGIN\\\r\n      ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\n<program source>:174:4: warning: unused variable 'pos'\r\n   BEGIN\r\n   ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\n<program source>:183:4: warning: unused variable 'pos'\r\n   BEGIN\r\n   ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\n<program source>:196:4: warning: unused variable 'pos'\r\n   BEGIN\r\n   ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\n<program source>:205:4: warning: unused variable 'pos'\r\n   BEGIN\r\n   ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\n<program source>:213:4: warning: unused variable 'pos'\r\n   BEGIN\r\n   ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\n<program source>:232:4: warning: unused variable 'pos'\r\n   BEGIN\r\n   ^\r\n<program source>:32:15: note: expanded from macro 'BEGIN'\r\n   const int2 pos = { gx, gy };\r\n              ^\r\nkernel referenced external symbol 'convert___char3_sat' which could not be found.\r\nkernel referenced external symbol 'convert___double3' which could not be found.\r\nkernel referenced external symbol 'convert___float3' which could not be found.\r\nkernel referenced external symbol 'convert___int3_sat' which could not be found.\r\nkernel referenced external symbol 'convert___short3_sat' which could not be found.\r\nkernel referenced external symbol 'convert___uchar3_sat' which could not be found.\r\nkernel referenced external symbol 'convert___uint3_sat' which could not be found.\r\nkernel referenced external symbol 'convert___ushort3_sat' which could not be found.\r\n\u0000\r\n - in file : ../cl-files/Convert.cl\r\nlibc++abi.dylib: terminating with uncaught exception of type cl::Error: clBuildProgram\r\n```\r\n"}}