[ 98%] Building C object target_api/cl/tests/cl/interop/CMakeFiles/cl-interop-egl_khr_cl_event2.dir/egl_khr_cl_event2.c.o /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:46:1: error: unknown type name ‘EGLAttribKHR’ EGLSyncKHR (*peglCreateSync64KHR)(EGLDisplay dpy, EGLenum type, const EGLAttribKHR *attrib_list); ^ /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c: In function ‘test_EGL_KHR_cl_event2’: /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:289:22: error: ‘EGL_CL_EVENT_HANDLE_KHR’ undeclared (first use in this function) EGLint attribs[] = {EGL_CL_EVENT_HANDLE_KHR, (EGLint)(intptr_t)event, EGL_NONE}; ^ /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:289:22: note: each undeclared identifier is reported only once for each function it appears in /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:290:2: error: unknown type name ‘EGLAttribKHR’ EGLAttribKHR attribs64[] = {EGL_CL_EVENT_HANDLE_KHR, (EGLAttribKHR)(intptr_t)event, EGL_NONE}; ^ /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:290:2: warning: initialization makes integer from pointer without a cast [enabled by default] /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:290:2: warning: (near initialization for ‘attribs64[0]’) [enabled by default] /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:290:56: error: ‘EGLAttribKHR’ undeclared (first use in this function) EGLAttribKHR attribs64[] = {EGL_CL_EVENT_HANDLE_KHR, (EGLAttribKHR)(intptr_t)event, EGL_NONE}; ^ /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:290:70: error: expected expression before ‘intptr_t’ EGLAttribKHR attribs64[] = {EGL_CL_EVENT_HANDLE_KHR, (EGLAttribKHR)(intptr_t)event, EGL_NONE}; ^ /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:290:69: error: called object is not a function or function pointer EGLAttribKHR attribs64[] = {EGL_CL_EVENT_HANDLE_KHR, (EGLAttribKHR)(intptr_t)event, EGL_NONE}; ^ /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:290:70: warning: initialization makes integer from pointer without a cast [enabled by default] EGLAttribKHR attribs64[] = {EGL_CL_EVENT_HANDLE_KHR, (EGLAttribKHR)(intptr_t)event, EGL_NONE}; ^ /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:290:70: warning: (near initialization for ‘attribs64[1]’) [enabled by default] /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:290:79: error: expected ‘}’ before ‘event’ EGLAttribKHR attribs64[] = {EGL_CL_EVENT_HANDLE_KHR, (EGLAttribKHR)(intptr_t)event, EGL_NONE}; ^ /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:302:34: error: ‘EGL_SYNC_CL_EVENT_KHR’ undeclared (first use in this function) sync = peglCreateSyncKHR(g_dpy, EGL_SYNC_CL_EVENT_KHR, NULL); ^ /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:302:2: warning: passing argument 2 of ‘peglCreateSyncKHR’ makes integer from pointer without a cast [enabled by default] sync = peglCreateSyncKHR(g_dpy, EGL_SYNC_CL_EVENT_KHR, NULL); ^ /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:302:2: note: expected ‘EGLenum’ but argument is of type ‘int *’ /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:311:3: warning: passing argument 2 of ‘peglCreateSyncKHR’ makes integer from pointer without a cast [enabled by default] sync = peglCreateSyncKHR(g_dpy, EGL_SYNC_CL_EVENT_KHR, attribs); ^ /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:311:3: note: expected ‘EGLenum’ but argument is of type ‘int *’ /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:320:3: warning: passing argument 2 of ‘peglCreateSyncKHR’ makes integer from pointer without a cast [enabled by default] sync = peglCreateSyncKHR(g_dpy, EGL_SYNC_CL_EVENT_KHR, attribs); ^ /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:320:3: note: expected ‘EGLenum’ but argument is of type ‘int *’ /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:328:2: warning: passing argument 2 of ‘peglCreateSync64KHR’ makes integer from pointer without a cast [enabled by default] sync = peglCreateSync64KHR(g_dpy, EGL_SYNC_CL_EVENT_KHR, NULL); ^ /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:328:2: note: expected ‘EGLenum’ but argument is of type ‘int *’ /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:335:2: warning: passing argument 2 of ‘peglCreateSync64KHR’ makes integer from pointer without a cast [enabled by default] sync = peglCreateSync64KHR(g_dpy, EGL_SYNC_CL_EVENT_KHR, attribs64); ^ /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:335:2: note: expected ‘EGLenum’ but argument is of type ‘int *’ /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:352:16: warning: comparison between pointer and integer [enabled by default] if (sync_type != EGL_SYNC_CL_EVENT_KHR) { ^ /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:369:24: error: ‘EGL_SYNC_CL_EVENT_COMPLETE_KHR’ undeclared (first use in this function) if (sync_condition != EGL_SYNC_CL_EVENT_COMPLETE_KHR) { ^ /home/OpenCL/piglit/tests/cl/interop/egl_khr_cl_event2.c:369:21: warning: comparison between pointer and integer [enabled by default] if (sync_condition != EGL_SYNC_CL_EVENT_COMPLETE_KHR) { ^ make[2]: *** [target_api/cl/tests/cl/interop/CMakeFiles/cl-interop-egl_khr_cl_event2.dir/egl_khr_cl_event2.c.o] Error 1 make[1]: *** [target_api/cl/tests/cl/interop/CMakeFiles/cl-interop-egl_khr_cl_event2.dir/all] Error 2 make: *** [all] Error 2