{"action":"created","issue":{"url":"https://api.github.com/repos/KhronosGroup/SPIR/issues/8","repository_url":"https://api.github.com/repos/KhronosGroup/SPIR","labels_url":"https://api.github.com/repos/KhronosGroup/SPIR/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/KhronosGroup/SPIR/issues/8/comments","events_url":"https://api.github.com/repos/KhronosGroup/SPIR/issues/8/events","html_url":"https://github.com/KhronosGroup/SPIR/issues/8","id":133326791,"number":8,"title":"some functions in opencl-20.h failed to compile due to empty parameter list","user":{"login":"yxsamliu","id":6145511,"avatar_url":"https://avatars.githubusercontent.com/u/6145511?v=3","gravatar_id":"","url":"https://api.github.com/users/yxsamliu","html_url":"https://github.com/yxsamliu","followers_url":"https://api.github.com/users/yxsamliu/followers","following_url":"https://api.github.com/users/yxsamliu/following{/other_user}","gists_url":"https://api.github.com/users/yxsamliu/gists{/gist_id}","starred_url":"https://api.github.com/users/yxsamliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yxsamliu/subscriptions","organizations_url":"https://api.github.com/users/yxsamliu/orgs","repos_url":"https://api.github.com/users/yxsamliu/repos","events_url":"https://api.github.com/users/yxsamliu/events{/privacy}","received_events_url":"https://api.github.com/users/yxsamliu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"bader","id":411965,"avatar_url":"https://avatars.githubusercontent.com/u/411965?v=3","gravatar_id":"","url":"https://api.github.com/users/bader","html_url":"https://github.com/bader","followers_url":"https://api.github.com/users/bader/followers","following_url":"https://api.github.com/users/bader/following{/other_user}","gists_url":"https://api.github.com/users/bader/gists{/gist_id}","starred_url":"https://api.github.com/users/bader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bader/subscriptions","organizations_url":"https://api.github.com/users/bader/orgs","repos_url":"https://api.github.com/users/bader/repos","events_url":"https://api.github.com/users/bader/events{/privacy}","received_events_url":"https://api.github.com/users/bader/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-02-12T19:44:25Z","updated_at":"2016-02-12T19:57:39Z","closed_at":null,"body":"I was trying to compile some cl kernels with Clang but I got these errors:\r\n\r\nC:\\p4\\stg_win50\\git-llvm\\llvm\\tools\\clang\\lib\\Headers/opencl-20.h:11271:13: error: function with no prototype cannot use the spir_function calling convention\r\nclk_event_t create_user_event();\r\n            ^\r\nC:\\p4\\stg_win50\\git-llvm\\llvm\\tools\\clang\\lib\\Headers/opencl-20.h:11279:9: error: function with no prototype cannot use the spir_function calling convention\r\nqueue_t get_default_queue();\r\n        ^\r\nC:\\p4\\stg_win50\\git-llvm\\llvm\\tools\\clang\\lib\\Headers/opencl-20.h:11585:38: error: function with no prototype cannot use the spir_function calling convention\r\nsize_t __attribute__((overloadable)) get_global_linear_id();\r\n                                     ^\r\nC:\\p4\\stg_win50\\git-llvm\\llvm\\tools\\clang\\lib\\Headers/opencl-20.h:11585:38: error: 'overloadable' function 'get_global_linear_id' must have a prototype\r\nC:\\p4\\stg_win50\\git-llvm\\llvm\\tools\\clang\\lib\\Headers/opencl-20.h:11586:38: error: function with no prototype cannot use the spir_function calling convention\r\nsize_t __attribute__((overloadable)) get_local_linear_id();\r\n\r\nseems clang does not like function declarations with empty parameter list. Add void to that should fix it."},"comment":{"url":"https://api.github.com/repos/KhronosGroup/SPIR/issues/comments/183467482","html_url":"https://github.com/KhronosGroup/SPIR/issues/8#issuecomment-183467482","issue_url":"https://api.github.com/repos/KhronosGroup/SPIR/issues/8","id":183467482,"user":{"login":"yxsamliu","id":6145511,"avatar_url":"https://avatars.githubusercontent.com/u/6145511?v=3","gravatar_id":"","url":"https://api.github.com/users/yxsamliu","html_url":"https://github.com/yxsamliu","followers_url":"https://api.github.com/users/yxsamliu/followers","following_url":"https://api.github.com/users/yxsamliu/following{/other_user}","gists_url":"https://api.github.com/users/yxsamliu/gists{/gist_id}","starred_url":"https://api.github.com/users/yxsamliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yxsamliu/subscriptions","organizations_url":"https://api.github.com/users/yxsamliu/orgs","repos_url":"https://api.github.com/users/yxsamliu/repos","events_url":"https://api.github.com/users/yxsamliu/events{/privacy}","received_events_url":"https://api.github.com/users/yxsamliu/received_events","type":"User","site_admin":false},"created_at":"2016-02-12T19:57:39Z","updated_at":"2016-02-12T19:57:39Z","body":"The command line I use is\r\n\r\nclang -cc1 -x cl -fblocks -cl-std=CL2.0 -include opencl-20.h -emit-llvm -triple spir64-unknown-unknown a.cl\r\n\r\na.cl is an empty file"}}