starpu-runtime / starpu

This is a mirror of https://gitlab.inria.fr/starpu/starpu where our development happens, but contributions are welcome here too!
https://starpu.gitlabpages.inria.fr/
GNU Lesser General Public License v2.1
58 stars 13 forks source link

Build error on 10.6 x86: cl.h: error: expected function body after function declarator #5

Open barracuda156 opened 1 year ago

barracuda156 commented 1 year ago
In file included from command_queue.c:18:
In file included from ./socl.h:27:
./CL/cl.h:597:80: error: expected function body after function declarator
                   cl_uint *                            /* num_devices_ret */) CL_API_SUFFIX__VERSION_1_2;
                                                                               ^
./CL/cl.h:600:43: error: expected function body after function declarator
clRetainDevice(cl_device_id /* device */) CL_API_SUFFIX__VERSION_1_2;
                                          ^
./CL/cl.h:603:44: error: expected function body after function declarator
clReleaseDevice(cl_device_id /* device */) CL_API_SUFFIX__VERSION_1_2;
                                           ^
./CL/cl.h:610:35: error: expected ')'
                void (CL_CALLBACK * /* pfn_notify */)(const char *, const void *, size_t, void *),
                                  ^
./CL/cl.h:610:22: note: to match this '('
                void (CL_CALLBACK * /* pfn_notify */)(const char *, const void *, size_t, void *),
                     ^
./CL/cl.h:617:43: error: expected ')'
                        void (CL_CALLBACK *     /* pfn_notify*/ )(const char *, const void *, size_t, void *),
                                          ^
./CL/cl.h:617:30: note: to match this '('
                        void (CL_CALLBACK *     /* pfn_notify*/ )(const char *, const void *, size_t, void *),
                             ^
./CL/cl.h:667:63: error: expected function body after function declarator
                  cl_int *                 /* errcode_ret */) CL_API_SUFFIX__VERSION_1_1;
                                                              ^
./CL/cl.h:675:58: error: expected function body after function declarator
              cl_int *                /* errcode_ret */) CL_API_SUFFIX__VERSION_1_2;
                                                         ^
./CL/cl.h:707:55: error: expected ')'
                                    void (CL_CALLBACK * /*pfn_notify*/)( cl_mem /* memobj */, void* /*user_data*/), 
                                                      ^
./CL/cl.h:707:42: note: to match this '('
                                    void (CL_CALLBACK * /*pfn_notify*/)( cl_mem /* memobj */, void* /*user_data*/), 
                                         ^
./CL/cl.h:708:73: error: expected function body after function declarator
                                    void * /*user_data */ )             CL_API_SUFFIX__VERSION_1_1;  
                                                                        ^

Log: https://build.macports.org/builders/ports-10.6_x86_64-builder/builds/142602/steps/install-port/logs/stdio

sthibaul commented 1 year ago

Could you try this patch? patch.txt

barracuda156 commented 1 year ago

Could you try this patch?

patch.txt

Sorry for a delay. Yes, I will try it shortly and update here.