Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
barracuda156 opened this issue Jan 30, 2023 · 2 comments
Labels
bug Something isn't working question Further information is requested

Comments

@barracuda156
Copy link

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
Copy link
Collaborator

Could you try this patch?
patch.txt

@barracuda156
Copy link
Author

Could you try this patch?

patch.txt

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

@sthibaul sthibaul added the bug Something isn't working label Feb 20, 2023
@sthibaul sthibaul added the question Further information is requested label Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants