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

2.0.0 fails to build: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'? etc. #759

Closed
barracuda156 opened this issue Jun 4, 2024 · 13 comments

Comments

@barracuda156
Copy link
Contributor

barracuda156 commented Jun 4, 2024

@kris-rowe Kris, could you please take a look?

Looks like the code from #730 does not work correctly in some cases:

In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/kernel.hpp:6,
                 from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/kernel.cpp:5:
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:27:17: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   27 |     std::vector<cl_platform_id> getPlatforms(cl_device_type device_type = default_device_type);
      |                 ^~~~~~~~~~~~~~
      |                 cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:27:31: error: template argument 1 is invalid
   27 |     std::vector<cl_platform_id> getPlatforms(cl_device_type device_type = default_device_type);
      |                               ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:27:31: error: template argument 2 is invalid
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:28:5: error: 'cl_platform_id' does not name a type; did you mean 'cl_platform_info'?
   28 |     cl_platform_id getPlatformFromDevice(cl_device_id device_id);
      |     ^~~~~~~~~~~~~~
      |     cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:30:33: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   30 |     std::string platformStrInfo(cl_platform_id clPID, cl_platform_info clInfo);
      |                                 ^~~~~~~~~~~~~~
      |                                 cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:30:72: error: expected primary-expression before 'clInfo'
   30 |     std::string platformStrInfo(cl_platform_id clPID, cl_platform_info clInfo);
      |                                                                        ^~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:32:30: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   32 |     std::string platformName(cl_platform_id platform_id);
      |                              ^~~~~~~~~~~~~~
      |                              cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:33:32: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   33 |     std::string platformVendor(cl_platform_id platform_id);
      |                                ^~~~~~~~~~~~~~
      |                                cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:34:33: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   34 |     std::string platformVersion(cl_platform_id platform_id);
      |                                 ^~~~~~~~~~~~~~
      |                                 cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:37:34: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   37 |     int getDeviceCountInPlatform(cl_platform_id, cl_device_type device_type = default_device_type);
      |                                  ^~~~~~~~~~~~~~
      |                                  cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:37:65: error: expected primary-expression before 'device_type'
   37 |     int getDeviceCountInPlatform(cl_platform_id, cl_device_type device_type = default_device_type);
      |                                                                 ^~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:37:98: error: expression list treated as compound expression in initializer [-fpermissive]
   37 |     int getDeviceCountInPlatform(cl_platform_id, cl_device_type device_type = default_device_type);
      |                                                                                                  ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:39:52: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   39 |     std::vector<cl_device_id> getDevicesInPlatform(cl_platform_id platform_id, cl_device_type device_type = default_device_type);
      |                                                    ^~~~~~~~~~~~~~
      |                                                    cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:39:95: error: expected primary-expression before 'device_type'
   39 |     std::vector<cl_device_id> getDevicesInPlatform(cl_platform_id platform_id, cl_device_type device_type = default_device_type);
      |                                                                                               ^~~~~~~~~~~
In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:4:
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:27:17: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   27 |     std::vector<cl_platform_id> getPlatforms(cl_device_type device_type = default_device_type);
      |                 ^~~~~~~~~~~~~~
      |                 cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:27:31: error: template argument 1 is invalid
   27 |     std::vector<cl_platform_id> getPlatforms(cl_device_type device_type = default_device_type);
      |                               ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:27:31: error: template argument 2 is invalid
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:28:5: error: 'cl_platform_id' does not name a type; did you mean 'cl_platform_info'?
   28 |     cl_platform_id getPlatformFromDevice(cl_device_id device_id);
      |     ^~~~~~~~~~~~~~
      |     cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:30:33: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   30 |     std::string platformStrInfo(cl_platform_id clPID, cl_platform_info clInfo);
      |                                 ^~~~~~~~~~~~~~
      |                                 cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:30:72: error: expected primary-expression before 'clInfo'
   30 |     std::string platformStrInfo(cl_platform_id clPID, cl_platform_info clInfo);
      |                                                                        ^~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:32:30: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   32 |     std::string platformName(cl_platform_id platform_id);
      |                              ^~~~~~~~~~~~~~
      |                              cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:33:32: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   33 |     std::string platformVendor(cl_platform_id platform_id);
      |                                ^~~~~~~~~~~~~~
      |                                cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:34:33: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   34 |     std::string platformVersion(cl_platform_id platform_id);
      |                                 ^~~~~~~~~~~~~~
      |                                 cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:37:34: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   37 |     int getDeviceCountInPlatform(cl_platform_id, cl_device_type device_type = default_device_type);
      |                                  ^~~~~~~~~~~~~~
      |                                  cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:37:65: error: expected primary-expression before 'device_type'
   37 |     int getDeviceCountInPlatform(cl_platform_id, cl_device_type device_type = default_device_type);
      |                                                                 ^~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:37:98: error: expression list treated as compound expression in initializer [-fpermissive]
   37 |     int getDeviceCountInPlatform(cl_platform_id, cl_device_type device_type = default_device_type);
      |                                                                                                  ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:39:52: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   39 |     std::vector<cl_device_id> getDevicesInPlatform(cl_platform_id platform_id, cl_device_type device_type = default_device_type);
      |                                                    ^~~~~~~~~~~~~~
      |                                                    cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:39:95: error: expected primary-expression before 'device_type'
   39 |     std::vector<cl_device_id> getDevicesInPlatform(cl_platform_id platform_id, cl_device_type device_type = default_device_type);
      |                                                                                               ^~~~~~~~~~~
In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/kernel.hpp:6,
                 from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/device.cpp:5:
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:27:17: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   27 |     std::vector<cl_platform_id> getPlatforms(cl_device_type device_type = default_device_type);
      |                 ^~~~~~~~~~~~~~
      |                 cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:27:31: error: template argument 1 is invalid
   27 |     std::vector<cl_platform_id> getPlatforms(cl_device_type device_type = default_device_type);
      |                               ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:27:31: error: template argument 2 is invalid
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:28:5: error: 'cl_platform_id' does not name a type; did you mean 'cl_platform_info'?
   28 |     cl_platform_id getPlatformFromDevice(cl_device_id device_id);
      |     ^~~~~~~~~~~~~~
      |     cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:30:33: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   30 |     std::string platformStrInfo(cl_platform_id clPID, cl_platform_info clInfo);
      |                                 ^~~~~~~~~~~~~~
      |                                 cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:30:72: error: expected primary-expression before 'clInfo'
   30 |     std::string platformStrInfo(cl_platform_id clPID, cl_platform_info clInfo);
      |                                                                        ^~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:32:30: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   32 |     std::string platformName(cl_platform_id platform_id);
      |                              ^~~~~~~~~~~~~~
      |                              cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:33:32: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   33 |     std::string platformVendor(cl_platform_id platform_id);
      |                                ^~~~~~~~~~~~~~
      |                                cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:34:33: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   34 |     std::string platformVersion(cl_platform_id platform_id);
      |                                 ^~~~~~~~~~~~~~
      |                                 cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:37:34: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   37 |     int getDeviceCountInPlatform(cl_platform_id, cl_device_type device_type = default_device_type);
      |                                  ^~~~~~~~~~~~~~
      |                                  cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:37:65: error: expected primary-expression before 'device_type'
   37 |     int getDeviceCountInPlatform(cl_platform_id, cl_device_type device_type = default_device_type);
      |                                                                 ^~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:37:98: error: expression list treated as compound expression in initializer [-fpermissive]
   37 |     int getDeviceCountInPlatform(cl_platform_id, cl_device_type device_type = default_device_type);
      |                                                                                                  ^
In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines.hpp:8,
                 from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/core/base.hpp:9,
                 from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/kernel.cpp:1:
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/kernel.cpp: In member function 'virtual occa::dim occa::opencl::kernel::maxOuterDims() const':
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/kernel.cpp:67:43: error: 'CL_DEVICE_MAX_WORK_ITEM_SIZES' was not declared in this scope; did you mean 'CL_DEVICE_MAX_WORK_GROUP_SIZE'?
   67 |                                           CL_DEVICE_MAX_WORK_ITEM_SIZES,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:89:27: note: in definition of macro 'OCCA_OPENCL_TEMPLATE_CHECK'
   89 |     cl_int _clErrorCode = expr;                                         \
      |                           ^~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:98:69: note: in expansion of macro 'OCCA_OPENCL_ERROR3'
   98 | #define OCCA_OPENCL_ERROR2(expr, filename, function, line, message) OCCA_OPENCL_ERROR3(expr, filename, function, line, message)
      |                                                                     ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:99:42: note: in expansion of macro 'OCCA_OPENCL_ERROR2'
   99 | #define OCCA_OPENCL_ERROR(message, expr) OCCA_OPENCL_ERROR2(expr, __FILE__, __PRETTY_FUNCTION__, __LINE__, message)
      |                                          ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/kernel.cpp:65:9: note: in expansion of macro 'OCCA_OPENCL_ERROR'
   65 |         OCCA_OPENCL_ERROR("Kernel: Max Outer Dims",
      |         ^~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:39:52: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   39 |     std::vector<cl_device_id> getDevicesInPlatform(cl_platform_id platform_id, cl_device_type device_type = default_device_type);
      |                                                    ^~~~~~~~~~~~~~
      |                                                    cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:39:95: error: expected primary-expression before 'device_type'
   39 |     std::vector<cl_device_id> getDevicesInPlatform(cl_platform_id platform_id, cl_device_type device_type = default_device_type);
      |                                                                                               ^~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/kernel.cpp:71:43: error: 'CL_DEVICE_MAX_WORK_ITEM_SIZES' was not declared in this scope; did you mean 'CL_DEVICE_MAX_WORK_GROUP_SIZE'?
   71 |                                           CL_DEVICE_MAX_WORK_ITEM_SIZES,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:89:27: note: in definition of macro 'OCCA_OPENCL_TEMPLATE_CHECK'
   89 |     cl_int _clErrorCode = expr;                                         \
      |                           ^~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:98:69: note: in expansion of macro 'OCCA_OPENCL_ERROR3'
   98 | #define OCCA_OPENCL_ERROR2(expr, filename, function, line, message) OCCA_OPENCL_ERROR3(expr, filename, function, line, message)
      |                                                                     ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:99:42: note: in expansion of macro 'OCCA_OPENCL_ERROR2'
   99 | #define OCCA_OPENCL_ERROR(message, expr) OCCA_OPENCL_ERROR2(expr, __FILE__, __PRETTY_FUNCTION__, __LINE__, message)
      |                                          ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/kernel.cpp:69:9: note: in expansion of macro 'OCCA_OPENCL_ERROR'
   69 |         OCCA_OPENCL_ERROR("Kernel: Max Outer Dims",
      |         ^~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/kernel.cpp: In member function 'virtual void occa::opencl::kernel::deviceRun() const':
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/kernel.cpp:107:18: warning: narrowing conversion of 'fullDims.occa::dim::x' from 'occa::udim_t' {aka 'long long unsigned int'} to 'size_t' {aka 'long unsigned int'} [-Wnarrowing]
  107 |         fullDims.x, fullDims.y, fullDims.z
      |         ~~~~~~~~~^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/kernel.cpp:107:30: warning: narrowing conversion of 'fullDims.occa::dim::y' from 'occa::udim_t' {aka 'long long unsigned int'} to 'size_t' {aka 'long unsigned int'} [-Wnarrowing]
  107 |         fullDims.x, fullDims.y, fullDims.z
      |                     ~~~~~~~~~^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/kernel.cpp:107:42: warning: narrowing conversion of 'fullDims.occa::dim::z' from 'occa::udim_t' {aka 'long long unsigned int'} to 'size_t' {aka 'long unsigned int'} [-Wnarrowing]
  107 |         fullDims.x, fullDims.y, fullDims.z
      |                                 ~~~~~~~~~^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/kernel.cpp:110:19: warning: narrowing conversion of '(occa::udim_t)((const occa::opencl::kernel*)this)->occa::opencl::kernel::<anonymous>.occa::launchedModeKernel_t::<anonymous>.occa::modeKernel_t::innerDims.occa::dim::x' from 'occa::udim_t' {aka 'long long unsigned int'} to 'size_t' {aka 'long unsigned int'} [-Wnarrowing]
  110 |         innerDims.x, innerDims.y, innerDims.z
      |         ~~~~~~~~~~^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/kernel.cpp:110:32: warning: narrowing conversion of '(occa::udim_t)((const occa::opencl::kernel*)this)->occa::opencl::kernel::<anonymous>.occa::launchedModeKernel_t::<anonymous>.occa::modeKernel_t::innerDims.occa::dim::y' from 'occa::udim_t' {aka 'long long unsigned int'} to 'size_t' {aka 'long unsigned int'} [-Wnarrowing]
  110 |         innerDims.x, innerDims.y, innerDims.z
      |                      ~~~~~~~~~~^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/kernel.cpp:110:45: warning: narrowing conversion of '(occa::udim_t)((const occa::opencl::kernel*)this)->occa::opencl::kernel::<anonymous>.occa::launchedModeKernel_t::<anonymous>.occa::modeKernel_t::innerDims.occa::dim::z' from 'occa::udim_t' {aka 'long long unsigned int'} to 'size_t' {aka 'long unsigned int'} [-Wnarrowing]
  110 |         innerDims.x, innerDims.y, innerDims.z
      |                                   ~~~~~~~~~~^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/device.cpp: In member function 'virtual occa::hash_t occa::opencl::device::hash() const':
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/device.cpp:71:9: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   71 |         cl_platform_id platform_id = getPlatformFromDevice(clDevice);
      |         ^~~~~~~~~~~~~~
      |         cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/device.cpp:73:60: error: 'platform_id' was not declared in this scope; did you mean 'platformName'?
   73 |         ss << "platform name: "    << opencl::platformName(platform_id)
      |                                                            ^~~~~~~~~~~
      |                                                            platformName
In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines.hpp:8,
                 from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/core/base.hpp:9,
                 from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/device.cpp:1:
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/device.cpp: In member function 'virtual occa::streamTag occa::opencl::device::tagStream()':
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/device.cpp:136:41: error: too many arguments to function 'cl_int clEnqueueBarrier(cl_command_queue)'
  136 |                         clEnqueueBarrier(getCommandQueue(),
      |                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
  137 |                                         &clEvent));
      |                                         ~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:89:27: note: in definition of macro 'OCCA_OPENCL_TEMPLATE_CHECK'
   89 |     cl_int _clErrorCode = expr;                                         \
      |                           ^~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:98:69: note: in expansion of macro 'OCCA_OPENCL_ERROR3'
   98 | #define OCCA_OPENCL_ERROR2(expr, filename, function, line, message) OCCA_OPENCL_ERROR3(expr, filename, function, line, message)
      |                                                                     ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:99:42: note: in expansion of macro 'OCCA_OPENCL_ERROR2'
   99 | #define OCCA_OPENCL_ERROR(message, expr) OCCA_OPENCL_ERROR2(expr, __FILE__, __PRETTY_FUNCTION__, __LINE__, message)
      |                                          ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/device.cpp:135:7: note: in expansion of macro 'OCCA_OPENCL_ERROR'
  135 |       OCCA_OPENCL_ERROR("Device: Tagging Stream",
      |       ^~~~~~~~~~~~~~~~~
In file included from /System/Library/Frameworks/OpenCL.framework/Headers/opencl.h:15,
                 from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/polyfill.hpp:17,
                 from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/device.hpp:5,
                 from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/device.cpp:4:
/System/Library/Frameworks/OpenCL.framework/Headers/cl.h:822:1: note: declared here
  822 | clEnqueueBarrier(cl_command_queue /* command_queue */) CL_API_SUFFIX__VERSION_1_0;
      | ^~~~~~~~~~~~~~~~
In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/memory.cpp:4:
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:27:17: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   27 |     std::vector<cl_platform_id> getPlatforms(cl_device_type device_type = default_device_type);
      |                 ^~~~~~~~~~~~~~
      |                 cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:27:31: error: template argument 1 is invalid
   27 |     std::vector<cl_platform_id> getPlatforms(cl_device_type device_type = default_device_type);
      |                               ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:27:31: error: template argument 2 is invalid
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:28:5: error: 'cl_platform_id' does not name a type; did you mean 'cl_platform_info'?
   28 |     cl_platform_id getPlatformFromDevice(cl_device_id device_id);
      |     ^~~~~~~~~~~~~~
      |     cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:30:33: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   30 |     std::string platformStrInfo(cl_platform_id clPID, cl_platform_info clInfo);
      |                                 ^~~~~~~~~~~~~~
      |                                 cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:30:72: error: expected primary-expression before 'clInfo'
   30 |     std::string platformStrInfo(cl_platform_id clPID, cl_platform_info clInfo);
      |                                                                        ^~~~~~
make[2]: *** [CMakeFiles/libocca.dir/src/occa/internal/modes/opencl/buffer.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:32:30: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   32 |     std::string platformName(cl_platform_id platform_id);
      |                              ^~~~~~~~~~~~~~
      |                              cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:33:32: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   33 |     std::string platformVendor(cl_platform_id platform_id);
      |                                ^~~~~~~~~~~~~~
      |                                cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:34:33: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   34 |     std::string platformVersion(cl_platform_id platform_id);
      |                                 ^~~~~~~~~~~~~~
      |                                 cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:37:34: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   37 |     int getDeviceCountInPlatform(cl_platform_id, cl_device_type device_type = default_device_type);
      |                                  ^~~~~~~~~~~~~~
      |                                  cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:37:65: error: expected primary-expression before 'device_type'
   37 |     int getDeviceCountInPlatform(cl_platform_id, cl_device_type device_type = default_device_type);
      |                                                                 ^~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:37:98: error: expression list treated as compound expression in initializer [-fpermissive]
   37 |     int getDeviceCountInPlatform(cl_platform_id, cl_device_type device_type = default_device_type);
      |                                                                                                  ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:39:52: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   39 |     std::vector<cl_device_id> getDevicesInPlatform(cl_platform_id platform_id, cl_device_type device_type = default_device_type);
      |                                                    ^~~~~~~~~~~~~~
      |                                                    cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:39:95: error: expected primary-expression before 'device_type'
   39 |     std::vector<cl_device_id> getDevicesInPlatform(cl_platform_id platform_id, cl_device_type device_type = default_device_type);
      |                                                                                               ^~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/memory.cpp: In constructor 'occa::opencl::memory::memory(occa::opencl::buffer*, occa::udim_t, occa::dim_t)':
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/memory.cpp:18:9: error: 'cl_buffer_region' was not declared in this scope
   18 |         cl_buffer_region info;
      |         ^~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/memory.cpp:19:9: error: 'info' was not declared in this scope; did you mean 'info_t'?
   19 |         info.origin = offset;
      |         ^~~~
      |         info_t
make[2]: *** [CMakeFiles/libocca.dir/src/occa/internal/modes/opencl/kernel.cpp.o] Error 1
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/memory.cpp:25:35: error: 'CL_BUFFER_CREATE_TYPE_REGION' was not declared in this scope
   25 |                                   CL_BUFFER_CREATE_TYPE_REGION,
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/memory.cpp:23:17: error: 'clCreateSubBuffer' was not declared in this scope; did you mean 'clCreateBuffer'?
   23 |         clMem = clCreateSubBuffer(b->clMem,
      |                 ^~~~~~~~~~~~~~~~~
      |                 clCreateBuffer
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/memory.cpp: In constructor 'occa::opencl::memory::memory(occa::opencl::memoryPool*, occa::udim_t, occa::dim_t)':
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/memory.cpp:45:9: error: 'cl_buffer_region' was not declared in this scope
   45 |         cl_buffer_region info;
      |         ^~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/memory.cpp:46:9: error: 'info' was not declared in this scope; did you mean 'info_t'?
   46 |         info.origin = offset;
      |         ^~~~
      |         info_t
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/memory.cpp:52:35: error: 'CL_BUFFER_CREATE_TYPE_REGION' was not declared in this scope
   52 |                                   CL_BUFFER_CREATE_TYPE_REGION,
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/memory.cpp:50:17: error: 'clCreateSubBuffer' was not declared in this scope; did you mean 'clCreateBuffer'?
   50 |         clMem = clCreateSubBuffer(b->clMem,
      |                 ^~~~~~~~~~~~~~~~~
      |                 clCreateBuffer
make[2]: *** [CMakeFiles/libocca.dir/src/occa/internal/modes/opencl/device.cpp.o] Error 1
In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/memoryPool.cpp:5:
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:27:17: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   27 |     std::vector<cl_platform_id> getPlatforms(cl_device_type device_type = default_device_type);
      |                 ^~~~~~~~~~~~~~
      |                 cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:27:31: error: template argument 1 is invalid
   27 |     std::vector<cl_platform_id> getPlatforms(cl_device_type device_type = default_device_type);
      |                               ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:27:31: error: template argument 2 is invalid
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:28:5: error: 'cl_platform_id' does not name a type; did you mean 'cl_platform_info'?
   28 |     cl_platform_id getPlatformFromDevice(cl_device_id device_id);
      |     ^~~~~~~~~~~~~~
      |     cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:30:33: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   30 |     std::string platformStrInfo(cl_platform_id clPID, cl_platform_info clInfo);
      |                                 ^~~~~~~~~~~~~~
      |                                 cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:30:72: error: expected primary-expression before 'clInfo'
   30 |     std::string platformStrInfo(cl_platform_id clPID, cl_platform_info clInfo);
      |                                                                        ^~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:32:30: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   32 |     std::string platformName(cl_platform_id platform_id);
      |                              ^~~~~~~~~~~~~~
      |                              cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:33:32: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   33 |     std::string platformVendor(cl_platform_id platform_id);
      |                                ^~~~~~~~~~~~~~
      |                                cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:34:33: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   34 |     std::string platformVersion(cl_platform_id platform_id);
      |                                 ^~~~~~~~~~~~~~
      |                                 cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:37:34: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   37 |     int getDeviceCountInPlatform(cl_platform_id, cl_device_type device_type = default_device_type);
      |                                  ^~~~~~~~~~~~~~
      |                                  cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:37:65: error: expected primary-expression before 'device_type'
   37 |     int getDeviceCountInPlatform(cl_platform_id, cl_device_type device_type = default_device_type);
      |                                                                 ^~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:37:98: error: expression list treated as compound expression in initializer [-fpermissive]
   37 |     int getDeviceCountInPlatform(cl_platform_id, cl_device_type device_type = default_device_type);
      |                                                                                                  ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:39:52: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   39 |     std::vector<cl_device_id> getDevicesInPlatform(cl_platform_id platform_id, cl_device_type device_type = default_device_type);
      |                                                    ^~~~~~~~~~~~~~
      |                                                    cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:39:95: error: expected primary-expression before 'device_type'
   39 |     std::vector<cl_device_id> getDevicesInPlatform(cl_platform_id platform_id, cl_device_type device_type = default_device_type);
      |                                                                                               ^~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/memoryPool.cpp: In member function 'virtual void occa::opencl::memoryPool::setPtr(occa::modeMemory_t*, occa::modeBuffer_t*, occa::dim_t)':
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/memoryPool.cpp:35:9: error: 'cl_buffer_region' was not declared in this scope
   35 |         cl_buffer_region info;
      |         ^~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/memoryPool.cpp:36:9: error: 'info' was not declared in this scope; did you mean 'info_t'?
   36 |         info.origin = offset;
      |         ^~~~
      |         info_t
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/memoryPool.cpp:42:38: error: 'CL_BUFFER_CREATE_TYPE_REGION' was not declared in this scope
   42 |                                      CL_BUFFER_CREATE_TYPE_REGION,
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/registration.cpp:3:
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:27:17: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   27 |     std::vector<cl_platform_id> getPlatforms(cl_device_type device_type = default_device_type);
      |                 ^~~~~~~~~~~~~~
      |                 cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:27:31: error: template argument 1 is invalid
   27 |     std::vector<cl_platform_id> getPlatforms(cl_device_type device_type = default_device_type);
      |                               ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:27:31: error: template argument 2 is invalid
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:28:5: error: 'cl_platform_id' does not name a type; did you mean 'cl_platform_info'?
   28 |     cl_platform_id getPlatformFromDevice(cl_device_id device_id);
      |     ^~~~~~~~~~~~~~
      |     cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/memoryPool.cpp:40:20: error: 'clCreateSubBuffer' was not declared in this scope; did you mean 'clCreateBuffer'?
   40 |         m->clMem = clCreateSubBuffer(b->clMem,
      |                    ^~~~~~~~~~~~~~~~~
      |                    clCreateBuffer
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:30:33: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   30 |     std::string platformStrInfo(cl_platform_id clPID, cl_platform_info clInfo);
      |                                 ^~~~~~~~~~~~~~
      |                                 cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:30:72: error: expected primary-expression before 'clInfo'
   30 |     std::string platformStrInfo(cl_platform_id clPID, cl_platform_info clInfo);
      |                                                                        ^~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:32:30: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   32 |     std::string platformName(cl_platform_id platform_id);
      |                              ^~~~~~~~~~~~~~
      |                              cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:33:32: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   33 |     std::string platformVendor(cl_platform_id platform_id);
      |                                ^~~~~~~~~~~~~~
      |                                cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:34:33: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   34 |     std::string platformVersion(cl_platform_id platform_id);
      |                                 ^~~~~~~~~~~~~~
      |                                 cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:37:34: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   37 |     int getDeviceCountInPlatform(cl_platform_id, cl_device_type device_type = default_device_type);
      |                                  ^~~~~~~~~~~~~~
      |                                  cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:37:65: error: expected primary-expression before 'device_type'
   37 |     int getDeviceCountInPlatform(cl_platform_id, cl_device_type device_type = default_device_type);
      |                                                                 ^~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:37:98: error: expression list treated as compound expression in initializer [-fpermissive]
   37 |     int getDeviceCountInPlatform(cl_platform_id, cl_device_type device_type = default_device_type);
      |                                                                                                  ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:39:52: error: 'cl_platform_id' was not declared in this scope; did you mean 'cl_platform_info'?
   39 |     std::vector<cl_device_id> getDevicesInPlatform(cl_platform_id platform_id, cl_device_type device_type = default_device_type);
      |                                                    ^~~~~~~~~~~~~~
      |                                                    cl_platform_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:39:95: error: expected primary-expression before 'device_type'
   39 |     std::vector<cl_device_id> getDevicesInPlatform(cl_platform_id platform_id, cl_device_type device_type = default_device_type);
      |                                                                                               ^~~~~~~~~~~
make[2]: *** [CMakeFiles/libocca.dir/src/occa/internal/modes/opencl/memory.cpp.o] Error 1
make[2]: *** [CMakeFiles/libocca.dir/src/occa/internal/modes/opencl/memoryPool.cpp.o] Error 1
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/registration.cpp: In member function 'virtual occa::styling::section& occa::opencl::openclMode::getDescription()':
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/registration.cpp:24:24: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
   24 |         for (auto& p : platform_list) {
      |                        ^~~~~~~~~~~~~
      |                        std::begin
In file included from /opt/local/include/gcc13/c++/string:53,
                 from /opt/local/include/gcc13/c++/bits/locale_classes.h:40,
                 from /opt/local/include/gcc13/c++/bits/ios_base.h:41,
                 from /opt/local/include/gcc13/c++/ios:44,
                 from /opt/local/include/gcc13/c++/ostream:40,
                 from /opt/local/include/gcc13/c++/iostream:41,
                 from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/utils/string.hpp:4,
                 from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/registration.cpp:2:
/opt/local/include/gcc13/c++/bits/range_access.h:114:37: note: 'std::begin' declared here
  114 |   template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
      |                                     ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/registration.cpp:24:24: error: 'end' was not declared in this scope; did you mean 'std::end'?
   24 |         for (auto& p : platform_list) {
      |                        ^~~~~~~~~~~~~
      |                        std::end
/opt/local/include/gcc13/c++/bits/range_access.h:116:37: note: 'std::end' declared here
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines.hpp:8,
                 from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/registration.cpp:1:
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/registration.cpp: In member function 'virtual occa::modeDevice_t* occa::opencl::openclMode::newDevice(const occa::json&)':
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/registration.cpp:83:55: error: request for member 'size' in 'platforms', which is of non-class type 'int'
   83 |         (static_cast<size_t>(platform_id) < platforms.size()));
      |                                                       ^~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:13:31: note: in definition of macro 'OCCA_TEMPLATE_CHECK_'
   13 |     const bool isOk = (bool) (expr);                                    \
      |                               ^~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:27:62: note: in expansion of macro 'OCCA_TEMPLATE_CHECK'
   27 | #define OCCA_ERROR3(expr, filename, function, line, message) OCCA_TEMPLATE_CHECK(occa::error, expr, filename, function, line, message)
      |                                                              ^~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:28:62: note: in expansion of macro 'OCCA_ERROR3'
   28 | #define OCCA_ERROR2(expr, filename, function, line, message) OCCA_ERROR3(expr, filename, function, line, message)
      |                                                              ^~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:29:62: note: in expansion of macro 'OCCA_ERROR2'
   29 | #define OCCA_ERROR(message, expr)                            OCCA_ERROR2(expr, __FILE__, __PRETTY_FUNCTION__, __LINE__, message)
      |                                                              ^~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/registration.cpp:82:7: note: in expansion of macro 'OCCA_ERROR'
   82 |       OCCA_ERROR("Invalid platform number (" + toString(platform_id) + ")",
      |       ^~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/registration.cpp:84:33: error: invalid types 'int[int]' for array subscript
   84 |       auto& platform = platforms[platform_id];
      |                                 ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/registration.cpp: In member function 'virtual int occa::opencl::openclMode::getDeviceCount(const occa::json&)':
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/registration.cpp:106:55: error: request for member 'size' in 'platforms', which is of non-class type 'int'
  106 |         (static_cast<size_t>(platform_id) < platforms.size()));
      |                                                       ^~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:13:31: note: in definition of macro 'OCCA_TEMPLATE_CHECK_'
   13 |     const bool isOk = (bool) (expr);                                    \
      |                               ^~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:27:62: note: in expansion of macro 'OCCA_TEMPLATE_CHECK'
   27 | #define OCCA_ERROR3(expr, filename, function, line, message) OCCA_TEMPLATE_CHECK(occa::error, expr, filename, function, line, message)
      |                                                              ^~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:28:62: note: in expansion of macro 'OCCA_ERROR3'
   28 | #define OCCA_ERROR2(expr, filename, function, line, message) OCCA_ERROR3(expr, filename, function, line, message)
      |                                                              ^~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:29:62: note: in expansion of macro 'OCCA_ERROR2'
   29 | #define OCCA_ERROR(message, expr)                            OCCA_ERROR2(expr, __FILE__, __PRETTY_FUNCTION__, __LINE__, message)
      |                                                              ^~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/registration.cpp:105:7: note: in expansion of macro 'OCCA_ERROR'
  105 |       OCCA_ERROR("Invalid platform number (" + toString(platform_id) + ")",
      |       ^~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/registration.cpp:107:33: error: invalid types 'int[int]' for array subscript
  107 |       auto& platform = platforms[platform_id];
      |                                 ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/registration.cpp:109:38: error: 'occa::opencl::getDeviceCountInPlatform' cannot be used as a function
  109 |       return getDeviceCountInPlatform(platform);
      |              ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
make[2]: *** [CMakeFiles/libocca.dir/src/occa/internal/modes/opencl/registration.cpp.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/build'
make[1]: *** [CMakeFiles/libocca.dir/all] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/build'
make: *** [all] Error 2
@barracuda156
Copy link
Contributor Author

@kris-rowe The earlier version compiled fine on the same system, so it should be fixable. (In the worst case maybe just add a configure option to disable OpenCL when it is not supported?)

@barracuda156
Copy link
Contributor Author

@kris-rowe Any update on this? I would like to update the port in MacPorts, but this is a stopper.

@kris-rowe
Copy link
Member

@barracuda156 Apologies for the delay. I am looking into this now.

@barracuda156
Copy link
Contributor Author

@kris-rowe Great, thank you!

@kris-rowe
Copy link
Member

kris-rowe commented Jul 26, 2024

@barracuda156 If you explicitly set OCCA_OPENCL_ENABLED=0 does the build work?

The error message that cl_platform_id isn't defined seems a bit strange since cl_platform_id has been in the spec since OpenCL 1.0, and we define a stub in polyfill.hpp for the case when OpenCL isn't available. Wondering if we are not including or linking something correctly.

@barracuda156
Copy link
Contributor Author

@kris-rowe I am back to the machine tomorrow and will run the build with the suggested option.

It is possible that Apple framework headers are either incomplete on 10.6 ppc or arch-specific (libraries are Intel-only, there is no OpenCL on any powerpc, AFAIK). Likely the first. So OpenCL might be detected as present (if the check is for the header, not compilation with linking), while in reality it is unusable.

10.6.8 will have standard headers, but no ppc slices in OpenCL. It will probably define everything which is expected from 10.6, but linking will break down.

If configure option works, that solves the problem, I can just require it for any powerpc and for < 10.6 any arch.

@barracuda156
Copy link
Contributor Author

@kris-rowe So it indeed detects OpenCL as being present due to the framework existing:

-- Found OpenCL: /System/Library/Frameworks/OpenCL.framework
-- Found OpenCLWrapper: TRUE
-- OpenCL include dirs: /System/Library/Frameworks/OpenCL.framework
-- OpenCL libraries:    /System/Library/Frameworks/OpenCL.framework

(Problem is that the framework does not support the arch of the build.)

And disabling OpenCL does not work, unfortunately. It still fails here:

[ 86%] Building CXX object CMakeFiles/libocca.dir/src/occa/internal/modes/opencl/registration.cpp.o
/opt/local/bin/ccache /opt/local/bin/g++-mp-14 -DUSE_CMAKE -Dlibocca_EXPORTS -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/build/include -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src -F//System/Library/Frameworks -Wall -Wextra -Wunused-function -Wunused-variable -Wwrite-strings -Wfloat-equal -Wcast-align -Wlogical-op -Wshadow -Wno-unused-parameter -pipe -Os -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -fno-strict-aliasing -std=c++17 -arch ppc -mmacosx-version-min=10.6 -fPIC -fopenmp -MD -MT CMakeFiles/libocca.dir/src/occa/internal/modes/opencl/registration.cpp.o -MF CMakeFiles/libocca.dir/src/occa/internal/modes/opencl/registration.cpp.o.d -o CMakeFiles/libocca.dir/src/occa/internal/modes/opencl/registration.cpp.o -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/registration.cpp
In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:1:
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/device.hpp:17:7: error: 'cl_device_id' does not name a type; did you mean 'cl_device'?
   17 |       cl_device_id clDevice;
      |       ^~~~~~~~~~~~
      |       cl_device
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/device.hpp:20:45: error: 'cl_device_id' has not been declared
   20 |       device(const occa::json &properties_, cl_device_id clDevice_);
      |                                             ^~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/device.hpp:40:7: error: 'cl_command_queue' does not name a type
   40 |       cl_command_queue& getCommandQueue() const;
      |       ^~~~~~~~~~~~~~~~
In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/memory.hpp:7,
                 from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:3:
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/memoryPool.hpp:16:7: error: 'cl_command_queue' does not name a type
   16 |       cl_command_queue& getCommandQueue() const;
      |       ^~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/memory.hpp:27:7: error: 'cl_command_queue' does not name a type
   27 |       cl_command_queue& getCommandQueue() const;
      |       ^~~~~~~~~~~~~~~~
In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:4:
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:15:7: error: 'cl_device_id' does not name a type; did you mean 'cl_device'?
   15 |       cl_device_id clDevice;
      |       ^~~~~~~~~~~~
      |       cl_device
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:23:72: error: invalid conversion from 'int' to 'cl_device_type' [-fpermissive]
   23 |     constexpr cl_device_type default_device_type = (CL_DEVICE_TYPE_CPU | CL_DEVICE_TYPE_GPU);
      |                                                    ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
      |                                                                        |
      |                                                                        int
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:27:17: error: 'cl_platform_id' was not declared in this scope
   27 |     std::vector<cl_platform_id> getPlatforms(cl_device_type device_type = default_device_type);
      |                 ^~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:27:31: error: template argument 1 is invalid
   27 |     std::vector<cl_platform_id> getPlatforms(cl_device_type device_type = default_device_type);
      |                               ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:27:31: error: template argument 2 is invalid
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:28:5: error: 'cl_platform_id' does not name a type
   28 |     cl_platform_id getPlatformFromDevice(cl_device_id device_id);
      |     ^~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:30:33: error: 'cl_platform_id' was not declared in this scope
   30 |     std::string platformStrInfo(cl_platform_id clPID, cl_platform_info clInfo);
      |                                 ^~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:30:55: error: 'cl_platform_info' was not declared in this scope
   30 |     std::string platformStrInfo(cl_platform_id clPID, cl_platform_info clInfo);
      |                                                       ^~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:32:30: error: 'cl_platform_id' was not declared in this scope
   32 |     std::string platformName(cl_platform_id platform_id);
      |                              ^~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:33:32: error: 'cl_platform_id' was not declared in this scope
   33 |     std::string platformVendor(cl_platform_id platform_id);
      |                                ^~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:34:33: error: 'cl_platform_id' was not declared in this scope
   34 |     std::string platformVersion(cl_platform_id platform_id);
      |                                 ^~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:37:34: error: 'cl_platform_id' was not declared in this scope
   37 |     int getDeviceCountInPlatform(cl_platform_id, cl_device_type device_type = default_device_type);
      |                                  ^~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:37:65: error: expected primary-expression before 'device_type'
   37 |     int getDeviceCountInPlatform(cl_platform_id, cl_device_type device_type = default_device_type);
      |                                                                 ^~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:37:98: error: expression list treated as compound expression in initializer [-fpermissive]
   37 |     int getDeviceCountInPlatform(cl_platform_id, cl_device_type device_type = default_device_type);
      |                                                                                                  ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:39:17: error: 'cl_device_id' was not declared in this scope; did you mean 'cl_device'?
   39 |     std::vector<cl_device_id> getDevicesInPlatform(cl_platform_id platform_id, cl_device_type device_type = default_device_type);
      |                 ^~~~~~~~~~~~
      |                 cl_device
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:39:29: error: template argument 1 is invalid
   39 |     std::vector<cl_device_id> getDevicesInPlatform(cl_platform_id platform_id, cl_device_type device_type = default_device_type);
      |                             ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:39:29: error: template argument 2 is invalid
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:39:52: error: 'cl_platform_id' was not declared in this scope
   39 |     std::vector<cl_device_id> getDevicesInPlatform(cl_platform_id platform_id, cl_device_type device_type = default_device_type);
      |                                                    ^~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:39:95: error: expected primary-expression before 'device_type'
   39 |     std::vector<cl_device_id> getDevicesInPlatform(cl_platform_id platform_id, cl_device_type device_type = default_device_type);
      |                                                                                               ^~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:39:128: error: expression list treated as compound expression in initializer [-fpermissive]
   39 |     std::vector<cl_device_id> getDevicesInPlatform(cl_platform_id platform_id, cl_device_type device_type = default_device_type);
      |                                                                                                                                ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:41:31: error: 'cl_device_id' was not declared in this scope; did you mean 'cl_device'?
   41 |     std::string deviceStrInfo(cl_device_id clDID, cl_device_info clInfo);
      |                               ^~~~~~~~~~~~
      |                               cl_device
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:41:51: error: 'cl_device_info' was not declared in this scope; did you mean 'cl_event_info'?
   41 |     std::string deviceStrInfo(cl_device_id clDID, cl_device_info clInfo);
      |                                                   ^~~~~~~~~~~~~~
      |                                                   cl_event_info
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:42:28: error: 'cl_device_id' was not declared in this scope; did you mean 'cl_device'?
   42 |     std::string deviceName(cl_device_id device_id);
      |                            ^~~~~~~~~~~~
      |                            cl_device
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:43:30: error: 'cl_device_id' was not declared in this scope; did you mean 'cl_device'?
   43 |     std::string deviceVendor(cl_device_id device_id);
      |                              ^~~~~~~~~~~~
      |                              cl_device
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:44:31: error: 'cl_device_id' was not declared in this scope; did you mean 'cl_device'?
   44 |     std::string deviceVersion(cl_device_id device_id);
      |                               ^~~~~~~~~~~~
      |                               cl_device
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:46:31: error: 'cl_device_id' was not declared in this scope; did you mean 'cl_device'?
   46 |     cl_device_type deviceType(cl_device_id device_type);
      |                               ^~~~~~~~~~~~
      |                               cl_device
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:48:25: error: 'cl_device_id' was not declared in this scope; did you mean 'cl_device'?
   48 |     int deviceCoreCount(cl_device_id device_id);
      |                         ^~~~~~~~~~~~
      |                         cl_device
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:50:32: error: 'cl_device_id' was not declared in this scope; did you mean 'cl_device'?
   50 |     udim_t deviceGlobalMemSize(cl_device_id dID);
      |                                ^~~~~~~~~~~~
      |                                cl_device
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:52:40: error: 'cl_device_id' was not declared in this scope; did you mean 'cl_device'?
   52 |     cl_context createContextFromDevice(cl_device_id device_id);
      |                                        ^~~~~~~~~~~~
      |                                        cl_device
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:76:29: error: 'cl_device_id' was not declared in this scope; did you mean 'cl_device'?
   76 |     occa::device wrapDevice(cl_device_id clDevice,
      |                             ^~~~~~~~~~~~
      |                             cl_device
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:77:40: error: expected primary-expression before 'context'
   77 |                             cl_context context,
      |                                        ^~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:78:29: error: expected primary-expression before 'const'
   78 |                             const occa::json &props = occa::json());
      |                             ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:85:10: error: variable or field 'warn' declared void
   85 |     void warn(cl_int errorCode,
      |          ^~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:85:15: error: 'cl_int' was not declared in this scope; did you mean 'u_int'?
   85 |     void warn(cl_int errorCode,
      |               ^~~~~~
      |               u_int
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:86:15: error: expected primary-expression before 'const'
   86 |               const std::string &filename,
      |               ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:87:15: error: expected primary-expression before 'const'
   87 |               const std::string &function,
      |               ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:88:15: error: expected primary-expression before 'const'
   88 |               const int line,
      |               ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:89:15: error: expected primary-expression before 'const'
   89 |               const std::string &message);
      |               ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:91:10: error: variable or field 'error' declared void
   91 |     void error(cl_int errorCode,
      |          ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:91:16: error: 'cl_int' was not declared in this scope; did you mean 'u_int'?
   91 |     void error(cl_int errorCode,
      |                ^~~~~~
      |                u_int
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:92:16: error: expected primary-expression before 'const'
   92 |                const std::string &filename,
      |                ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:93:16: error: expected primary-expression before 'const'
   93 |                const std::string &function,
      |                ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:94:16: error: expected primary-expression before 'const'
   94 |                const int line,
      |                ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/utils.hpp:95:16: error: expected primary-expression before 'const'
   95 |                const std::string &message);
      |                ^~~~~
In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines.hpp:8,
                 from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/core/kernel.hpp:9,
                 from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/core/device.hpp:7,
                 from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/core/device.hpp:4,
                 from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/core/launchedDevice.hpp:6,
                 from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/device.hpp:4:
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp: In destructor 'virtual occa::opencl::buffer::~buffer()':
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:89:5: error: 'cl_int' was not declared in this scope; did you mean 'u_int'?
   89 |     cl_int _clErrorCode = expr;                                         \
      |     ^~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:97:69: note: in expansion of macro 'OCCA_OPENCL_TEMPLATE_CHECK'
   97 | #define OCCA_OPENCL_ERROR3(expr, filename, function, line, message) OCCA_OPENCL_TEMPLATE_CHECK(occa::opencl::error, expr, filename, function, line, message)
      |                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:98:69: note: in expansion of macro 'OCCA_OPENCL_ERROR3'
   98 | #define OCCA_OPENCL_ERROR2(expr, filename, function, line, message) OCCA_OPENCL_ERROR3(expr, filename, function, line, message)
      |                                                                     ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:99:42: note: in expansion of macro 'OCCA_OPENCL_ERROR2'
   99 | #define OCCA_OPENCL_ERROR(message, expr) OCCA_OPENCL_ERROR2(expr, __FILE__, __PRETTY_FUNCTION__, __LINE__, message)
      |                                          ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:18:9: note: in expansion of macro 'OCCA_OPENCL_ERROR'
   18 |         OCCA_OPENCL_ERROR("Mapped Free: clEnqueueUnmapMemObject",
      |         ^~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:90:9: error: '_clErrorCode' was not declared in this scope; did you mean 'getErrorCode'?
   90 |     if (_clErrorCode) {                                                 \
      |         ^~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:97:69: note: in expansion of macro 'OCCA_OPENCL_TEMPLATE_CHECK'
   97 | #define OCCA_OPENCL_ERROR3(expr, filename, function, line, message) OCCA_OPENCL_TEMPLATE_CHECK(occa::opencl::error, expr, filename, function, line, message)
      |                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:98:69: note: in expansion of macro 'OCCA_OPENCL_ERROR3'
   98 | #define OCCA_OPENCL_ERROR2(expr, filename, function, line, message) OCCA_OPENCL_ERROR3(expr, filename, function, line, message)
      |                                                                     ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:99:42: note: in expansion of macro 'OCCA_OPENCL_ERROR2'
   99 | #define OCCA_OPENCL_ERROR(message, expr) OCCA_OPENCL_ERROR2(expr, __FILE__, __PRETTY_FUNCTION__, __LINE__, message)
      |                                          ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:18:9: note: in expansion of macro 'OCCA_OPENCL_ERROR'
   18 |         OCCA_OPENCL_ERROR("Mapped Free: clEnqueueUnmapMemObject",
      |         ^~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:97:110: error: 'error' is not a member of 'occa::opencl'; did you mean 'occa::error'?
   97 | #define OCCA_OPENCL_ERROR3(expr, filename, function, line, message) OCCA_OPENCL_TEMPLATE_CHECK(occa::opencl::error, expr, filename, function, line, message)
      |                                                                                                              ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:93:7: note: in definition of macro 'OCCA_OPENCL_TEMPLATE_CHECK'
   93 |       checkFunction(_clErrorCode, filename, function, line, _check_ss.str()); \
      |       ^~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:98:69: note: in expansion of macro 'OCCA_OPENCL_ERROR3'
   98 | #define OCCA_OPENCL_ERROR2(expr, filename, function, line, message) OCCA_OPENCL_ERROR3(expr, filename, function, line, message)
      |                                                                     ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:99:42: note: in expansion of macro 'OCCA_OPENCL_ERROR2'
   99 | #define OCCA_OPENCL_ERROR(message, expr) OCCA_OPENCL_ERROR2(expr, __FILE__, __PRETTY_FUNCTION__, __LINE__, message)
      |                                          ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:18:9: note: in expansion of macro 'OCCA_OPENCL_ERROR'
   18 |         OCCA_OPENCL_ERROR("Mapped Free: clEnqueueUnmapMemObject",
      |         ^~~~~~~~~~~~~~~~~
In file included from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/types/primitive.hpp:13,
                 from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/types/generic.hpp:4,
                 from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/core/kernelArg.hpp:7,
                 from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/core/kernel.hpp:10:
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/utils/logging.hpp:24:8: note: 'occa::error' declared here
   24 |   void error(const std::string &filename,
      |        ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:89:5: error: 'cl_int' was not declared in this scope; did you mean 'u_int'?
   89 |     cl_int _clErrorCode = expr;                                         \
      |     ^~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:97:69: note: in expansion of macro 'OCCA_OPENCL_TEMPLATE_CHECK'
   97 | #define OCCA_OPENCL_ERROR3(expr, filename, function, line, message) OCCA_OPENCL_TEMPLATE_CHECK(occa::opencl::error, expr, filename, function, line, message)
      |                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:98:69: note: in expansion of macro 'OCCA_OPENCL_ERROR3'
   98 | #define OCCA_OPENCL_ERROR2(expr, filename, function, line, message) OCCA_OPENCL_ERROR3(expr, filename, function, line, message)
      |                                                                     ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:99:42: note: in expansion of macro 'OCCA_OPENCL_ERROR2'
   99 | #define OCCA_OPENCL_ERROR(message, expr) OCCA_OPENCL_ERROR2(expr, __FILE__, __PRETTY_FUNCTION__, __LINE__, message)
      |                                          ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:26:9: note: in expansion of macro 'OCCA_OPENCL_ERROR'
   26 |         OCCA_OPENCL_ERROR("Mapped Free: clReleaseMemObject",
      |         ^~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:90:9: error: '_clErrorCode' was not declared in this scope; did you mean 'getErrorCode'?
   90 |     if (_clErrorCode) {                                                 \
      |         ^~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:97:69: note: in expansion of macro 'OCCA_OPENCL_TEMPLATE_CHECK'
   97 | #define OCCA_OPENCL_ERROR3(expr, filename, function, line, message) OCCA_OPENCL_TEMPLATE_CHECK(occa::opencl::error, expr, filename, function, line, message)
      |                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:98:69: note: in expansion of macro 'OCCA_OPENCL_ERROR3'
   98 | #define OCCA_OPENCL_ERROR2(expr, filename, function, line, message) OCCA_OPENCL_ERROR3(expr, filename, function, line, message)
      |                                                                     ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:99:42: note: in expansion of macro 'OCCA_OPENCL_ERROR2'
   99 | #define OCCA_OPENCL_ERROR(message, expr) OCCA_OPENCL_ERROR2(expr, __FILE__, __PRETTY_FUNCTION__, __LINE__, message)
      |                                          ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:26:9: note: in expansion of macro 'OCCA_OPENCL_ERROR'
   26 |         OCCA_OPENCL_ERROR("Mapped Free: clReleaseMemObject",
      |         ^~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:97:110: error: 'error' is not a member of 'occa::opencl'; did you mean 'occa::error'?
   97 | #define OCCA_OPENCL_ERROR3(expr, filename, function, line, message) OCCA_OPENCL_TEMPLATE_CHECK(occa::opencl::error, expr, filename, function, line, message)
      |                                                                                                              ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:93:7: note: in definition of macro 'OCCA_OPENCL_TEMPLATE_CHECK'
   93 |       checkFunction(_clErrorCode, filename, function, line, _check_ss.str()); \
      |       ^~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:98:69: note: in expansion of macro 'OCCA_OPENCL_ERROR3'
   98 | #define OCCA_OPENCL_ERROR2(expr, filename, function, line, message) OCCA_OPENCL_ERROR3(expr, filename, function, line, message)
      |                                                                     ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:99:42: note: in expansion of macro 'OCCA_OPENCL_ERROR2'
   99 | #define OCCA_OPENCL_ERROR(message, expr) OCCA_OPENCL_ERROR2(expr, __FILE__, __PRETTY_FUNCTION__, __LINE__, message)
      |                                          ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:26:9: note: in expansion of macro 'OCCA_OPENCL_ERROR'
   26 |         OCCA_OPENCL_ERROR("Mapped Free: clReleaseMemObject",
      |         ^~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/utils/logging.hpp:24:8: note: 'occa::error' declared here
   24 |   void error(const std::string &filename,
      |        ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp: In member function 'virtual void occa::opencl::buffer::malloc(occa::udim_t)':
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:37:7: error: 'cl_int' was not declared in this scope; did you mean 'u_int'?
   37 |       cl_int error;
      |       ^~~~~~
      |       u_int
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:41:52: error: 'CL_MEM_ALLOC_HOST_PTR' was not declared in this scope; did you mean 'CL_MEM_USE_HOST_PTR'?
   41 |                                CL_MEM_READ_WRITE | CL_MEM_ALLOC_HOST_PTR,
      |                                                    ^~~~~~~~~~~~~~~~~~~~~
      |                                                    CL_MEM_USE_HOST_PTR
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:40:17: error: 'clCreateBuffer' was not declared in this scope
   40 |         clMem = clCreateBuffer(dynamic_cast<device*>(modeDevice)->clContext,
      |                 ^~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:89:12: error: expected ';' before '_clErrorCode'
   89 |     cl_int _clErrorCode = expr;                                         \
      |            ^~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:97:69: note: in expansion of macro 'OCCA_OPENCL_TEMPLATE_CHECK'
   97 | #define OCCA_OPENCL_ERROR3(expr, filename, function, line, message) OCCA_OPENCL_TEMPLATE_CHECK(occa::opencl::error, expr, filename, function, line, message)
      |                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:98:69: note: in expansion of macro 'OCCA_OPENCL_ERROR3'
   98 | #define OCCA_OPENCL_ERROR2(expr, filename, function, line, message) OCCA_OPENCL_ERROR3(expr, filename, function, line, message)
      |                                                                     ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:99:42: note: in expansion of macro 'OCCA_OPENCL_ERROR2'
   99 | #define OCCA_OPENCL_ERROR(message, expr) OCCA_OPENCL_ERROR2(expr, __FILE__, __PRETTY_FUNCTION__, __LINE__, message)
      |                                          ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:44:9: note: in expansion of macro 'OCCA_OPENCL_ERROR'
   44 |         OCCA_OPENCL_ERROR("Device: clCreateBuffer", error);
      |         ^~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:90:9: error: '_clErrorCode' was not declared in this scope; did you mean 'getErrorCode'?
   90 |     if (_clErrorCode) {                                                 \
      |         ^~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:97:69: note: in expansion of macro 'OCCA_OPENCL_TEMPLATE_CHECK'
   97 | #define OCCA_OPENCL_ERROR3(expr, filename, function, line, message) OCCA_OPENCL_TEMPLATE_CHECK(occa::opencl::error, expr, filename, function, line, message)
      |                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:98:69: note: in expansion of macro 'OCCA_OPENCL_ERROR3'
   98 | #define OCCA_OPENCL_ERROR2(expr, filename, function, line, message) OCCA_OPENCL_ERROR3(expr, filename, function, line, message)
      |                                                                     ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:99:42: note: in expansion of macro 'OCCA_OPENCL_ERROR2'
   99 | #define OCCA_OPENCL_ERROR(message, expr) OCCA_OPENCL_ERROR2(expr, __FILE__, __PRETTY_FUNCTION__, __LINE__, message)
      |                                          ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:44:9: note: in expansion of macro 'OCCA_OPENCL_ERROR'
   44 |         OCCA_OPENCL_ERROR("Device: clCreateBuffer", error);
      |         ^~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:97:110: error: 'error' is not a member of 'occa::opencl'; did you mean 'occa::error'?
   97 | #define OCCA_OPENCL_ERROR3(expr, filename, function, line, message) OCCA_OPENCL_TEMPLATE_CHECK(occa::opencl::error, expr, filename, function, line, message)
      |                                                                                                              ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:93:7: note: in definition of macro 'OCCA_OPENCL_TEMPLATE_CHECK'
   93 |       checkFunction(_clErrorCode, filename, function, line, _check_ss.str()); \
      |       ^~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:98:69: note: in expansion of macro 'OCCA_OPENCL_ERROR3'
   98 | #define OCCA_OPENCL_ERROR2(expr, filename, function, line, message) OCCA_OPENCL_ERROR3(expr, filename, function, line, message)
      |                                                                     ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:99:42: note: in expansion of macro 'OCCA_OPENCL_ERROR2'
   99 | #define OCCA_OPENCL_ERROR(message, expr) OCCA_OPENCL_ERROR2(expr, __FILE__, __PRETTY_FUNCTION__, __LINE__, message)
      |                                          ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:44:9: note: in expansion of macro 'OCCA_OPENCL_ERROR'
   44 |         OCCA_OPENCL_ERROR("Device: clCreateBuffer", error);
      |         ^~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/utils/logging.hpp:24:8: note: 'occa::error' declared here
   24 |   void error(const std::string &filename,
      |        ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:47:77: error: 'class occa::opencl::device' has no member named 'getCommandQueue'
   47 |         ptr = (char*) clEnqueueMapBuffer(dynamic_cast<device*>(modeDevice)->getCommandQueue(),
      |                                                                             ^~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:50:41: error: 'CL_MAP_READ' was not declared in this scope
   50 |                                         CL_MAP_READ | CL_MAP_WRITE,
      |                                         ^~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:50:55: error: 'CL_MAP_WRITE' was not declared in this scope; did you mean 'CL_MEM_READ_WRITE'?
   50 |                                         CL_MAP_READ | CL_MAP_WRITE,
      |                                                       ^~~~~~~~~~~~
      |                                                       CL_MEM_READ_WRITE
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:47:23: error: 'clEnqueueMapBuffer' was not declared in this scope
   47 |         ptr = (char*) clEnqueueMapBuffer(dynamic_cast<device*>(modeDevice)->getCommandQueue(),
      |                       ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:89:12: error: expected ';' before '_clErrorCode'
   89 |     cl_int _clErrorCode = expr;                                         \
      |            ^~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:97:69: note: in expansion of macro 'OCCA_OPENCL_TEMPLATE_CHECK'
   97 | #define OCCA_OPENCL_ERROR3(expr, filename, function, line, message) OCCA_OPENCL_TEMPLATE_CHECK(occa::opencl::error, expr, filename, function, line, message)
      |                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:98:69: note: in expansion of macro 'OCCA_OPENCL_ERROR3'
   98 | #define OCCA_OPENCL_ERROR2(expr, filename, function, line, message) OCCA_OPENCL_ERROR3(expr, filename, function, line, message)
      |                                                                     ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:99:42: note: in expansion of macro 'OCCA_OPENCL_ERROR2'
   99 | #define OCCA_OPENCL_ERROR(message, expr) OCCA_OPENCL_ERROR2(expr, __FILE__, __PRETTY_FUNCTION__, __LINE__, message)
      |                                          ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:54:9: note: in expansion of macro 'OCCA_OPENCL_ERROR'
   54 |         OCCA_OPENCL_ERROR("Device: clEnqueueMapBuffer", error);
      |         ^~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:90:9: error: '_clErrorCode' was not declared in this scope; did you mean 'getErrorCode'?
   90 |     if (_clErrorCode) {                                                 \
      |         ^~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:97:69: note: in expansion of macro 'OCCA_OPENCL_TEMPLATE_CHECK'
   97 | #define OCCA_OPENCL_ERROR3(expr, filename, function, line, message) OCCA_OPENCL_TEMPLATE_CHECK(occa::opencl::error, expr, filename, function, line, message)
      |                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:98:69: note: in expansion of macro 'OCCA_OPENCL_ERROR3'
   98 | #define OCCA_OPENCL_ERROR2(expr, filename, function, line, message) OCCA_OPENCL_ERROR3(expr, filename, function, line, message)
      |                                                                     ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:99:42: note: in expansion of macro 'OCCA_OPENCL_ERROR2'
   99 | #define OCCA_OPENCL_ERROR(message, expr) OCCA_OPENCL_ERROR2(expr, __FILE__, __PRETTY_FUNCTION__, __LINE__, message)
      |                                          ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:54:9: note: in expansion of macro 'OCCA_OPENCL_ERROR'
   54 |         OCCA_OPENCL_ERROR("Device: clEnqueueMapBuffer", error);
      |         ^~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:97:110: error: 'error' is not a member of 'occa::opencl'; did you mean 'occa::error'?
   97 | #define OCCA_OPENCL_ERROR3(expr, filename, function, line, message) OCCA_OPENCL_TEMPLATE_CHECK(occa::opencl::error, expr, filename, function, line, message)
      |                                                                                                              ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:93:7: note: in definition of macro 'OCCA_OPENCL_TEMPLATE_CHECK'
   93 |       checkFunction(_clErrorCode, filename, function, line, _check_ss.str()); \
      |       ^~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:98:69: note: in expansion of macro 'OCCA_OPENCL_ERROR3'
   98 | #define OCCA_OPENCL_ERROR2(expr, filename, function, line, message) OCCA_OPENCL_ERROR3(expr, filename, function, line, message)
      |                                                                     ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:99:42: note: in expansion of macro 'OCCA_OPENCL_ERROR2'
   99 | #define OCCA_OPENCL_ERROR(message, expr) OCCA_OPENCL_ERROR2(expr, __FILE__, __PRETTY_FUNCTION__, __LINE__, message)
      |                                          ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:54:9: note: in expansion of macro 'OCCA_OPENCL_ERROR'
   54 |         OCCA_OPENCL_ERROR("Device: clEnqueueMapBuffer", error);
      |         ^~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/utils/logging.hpp:24:8: note: 'occa::error' declared here
   24 |   void error(const std::string &filename,
      |        ^~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/src/occa/internal/modes/opencl/buffer.cpp:59:17: error: 'clCreateBuffer' was not declared in this scope
   59 |         clMem = clCreateBuffer(dynamic_cast<device*>(modeDevice)->clContext,
      |                 ^~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/include/occa/defines/errors.hpp:89:12: error: expected ';' before '_clErrorCode'
   89 |     cl_int _clErrorCode = expr;                                         \
      |            ^~~~~~~~~~~~
. . .

Is there a way to let the configure know that OpenCL does not exist and bypass the check completely?

@barracuda156
Copy link
Contributor Author

Something strange going on with the check in fact. CMake log shows it fails:

    kind: "try_compile-v1"
    backtrace:
      - "/opt/local/share/cmake-3.29/Modules/CheckSymbolExists.cmake:140 (try_compile)"
      - "/opt/local/share/cmake-3.29/Modules/CheckSymbolExists.cmake:66 (__CHECK_SYMBOL_EXISTS_IMPL)"
      - "/opt/local/share/cmake-3.29/Modules/FindOpenCL.cmake:54 (CHECK_SYMBOL_EXISTS)"
      - "/opt/local/share/cmake-3.29/Modules/FindOpenCL.cmake:100 (_FIND_OPENCL_VERSION)"
      - "cmake/FindOpenCLWrapper.cmake:7 (find_package)"
      - "CMakeLists.txt:157 (find_package)"
    directories:
      source: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/build/CMakeFiles/CMakeScratch/TryCompile-T69lrm"
      binary: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/build/CMakeFiles/CMakeScratch/TryCompile-T69lrm"
    cmakeVariables:
      CMAKE_C_FLAGS: " -Wall -Wextra -Wunused-function -Wunused-variable -Wwrite-strings -Wfloat-equal -Wcast-align -Wlogical-op -Wshadow -Wno-c++11-long-long -pipe -Os -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/include"
      CMAKE_C_FLAGS_DEBUG: " -Werror -g"
      CMAKE_EXE_LINKER_FLAGS: "-Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -Wl,-rpath,/opt/local/lib/libgcc"
      CMAKE_MODULE_PATH: "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0/cmake"
      CMAKE_OSX_ARCHITECTURES: "ppc"
      CMAKE_OSX_DEPLOYMENT_TARGET: "10.6"
      CMAKE_OSX_SYSROOT: "/"
      CMAKE_POSITION_INDEPENDENT_CODE: "ON"
      CMAKE_WARN_DEPRECATED: "FALSE"
    buildResult:
      variable: "OPENCL_VERSION_1_0"
      cached: true
      stdout: |
        Change Dir: '/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/build/CMakeFiles/CMakeScratch/TryCompile-T69lrm'
        
        Run Build Command(s): /opt/local/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile cmTC_0416c/fast
        /usr/bin/make  -f CMakeFiles/cmTC_0416c.dir/build.make CMakeFiles/cmTC_0416c.dir/build
        Building C object CMakeFiles/cmTC_0416c.dir/CheckSymbolExists.c.o
        /opt/local/bin/gcc-mp-14  -F//System/Library/Frameworks -Wall -Wextra -Wunused-function -Wunused-variable -Wwrite-strings -Wfloat-equal -Wcast-align -Wlogical-op -Wshadow -Wno-c++11-long-long -pipe -Os -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/include  -arch ppc -mmacosx-version-min=10.6 -fPIE -o CMakeFiles/cmTC_0416c.dir/CheckSymbolExists.c.o -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/build/CMakeFiles/CMakeScratch/TryCompile-T69lrm/CheckSymbolExists.c
        In file included from //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:31,
                         from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/build/CMakeFiles/CMakeScratch/TryCompile-T69lrm/CheckSymbolExists.c:2:
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h: In function 'clGetPlatformInfo':
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:381:64: error: expected declaration specifiers before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          381 |                   size_t *         /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:388:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          388 |                cl_uint *        /* num_devices */) CL_API_SUFFIX__VERSION_1_0;
              |                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:395:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          395 |                 size_t *        /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:399:16: error: storage class specified for parameter 'logging_fn'
          399 | typedef void (*logging_fn)(const char *, const void *, size_t, const void *);
              |                ^~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:405:17: error: expected declaration specifiers or '...' before 'logging_fn'
          405 |                 logging_fn              /* pfn_notify */,
              |                 ^~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:412:25: error: expected declaration specifiers or '...' before 'logging_fn'
          412 |                         logging_fn              /* pfn_notify */,
              |                         ^~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:417:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          417 | clRetainContext(cl_context /* context */) CL_API_SUFFIX__VERSION_1_0;
              |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:420:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          420 | clReleaseContext(cl_context /* context */) CL_API_SUFFIX__VERSION_1_0;
              |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:427:65: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          427 |                  size_t *           /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:434:72: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          434 |                      cl_int *                       /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:437:60: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          437 | clRetainCommandQueue(cl_command_queue /* command_queue */) CL_API_SUFFIX__VERSION_1_0;
              |                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:440:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          440 | clReleaseCommandQueue(cl_command_queue /* command_queue */) CL_API_SUFFIX__VERSION_1_0;
              |                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:447:73: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          447 |                       size_t *              /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:453:79: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          453 |                           cl_command_queue_properties * /* old_properties */) CL_API_SUFFIX__VERSION_1_0;
              |                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:461:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          461 |                cl_int *     /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:471:60: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          471 |                 cl_int *                /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:483:60: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          483 |                 cl_int *                /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:486:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          486 | clRetainMemObject(cl_mem /* memobj */) CL_API_SUFFIX__VERSION_1_0;
              |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:489:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          489 | clReleaseMemObject(cl_mem /* memobj */) CL_API_SUFFIX__VERSION_1_0;
              |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:497:74: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          497 |                            cl_uint *            /* num_image_formats */) CL_API_SUFFIX__VERSION_1_0;
              |                                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:504:65: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          504 |                    size_t *         /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:511:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          511 |                size_t *         /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:519:56: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          519 |                 cl_int *            /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:522:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          522 | clRetainSampler(cl_sampler /* sampler */) CL_API_SUFFIX__VERSION_1_0;
              |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:525:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          525 | clReleaseSampler(cl_sampler /* sampler */) CL_API_SUFFIX__VERSION_1_0;
              |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:532:65: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          532 |                  size_t *           /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:540:64: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          540 |                           cl_int *          /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:549:68: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          549 |                           cl_int *              /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:552:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          552 | clRetainProgram(cl_program /* program */) CL_API_SUFFIX__VERSION_1_0;
              |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:555:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          555 | clReleaseProgram(cl_program /* program */) CL_API_SUFFIX__VERSION_1_0;
              |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:563:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          563 |                void *               /* user_data */) CL_API_SUFFIX__VERSION_1_0;
              |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:566:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          566 | clUnloadCompiler(void) CL_API_SUFFIX__VERSION_1_0;
              |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:573:65: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          573 |                  size_t *           /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:581:73: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          581 |                       size_t *              /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:587:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          587 |                cl_int *        /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:593:64: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          593 |                          cl_uint *      /* num_kernels_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:596:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          596 | clRetainKernel(cl_kernel    /* kernel */) CL_API_SUFFIX__VERSION_1_0;
              |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:599:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          599 | clReleaseKernel(cl_kernel   /* kernel */) CL_API_SUFFIX__VERSION_1_0;
              |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:605:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          605 |                const void * /* arg_value */) CL_API_SUFFIX__VERSION_1_0;
              |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:612:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          612 |                 size_t *        /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:620:81: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          620 |                          size_t *                   /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:625:55: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          625 |                 const cl_event *    /* event_list */) CL_API_SUFFIX__VERSION_1_0;
              |                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:632:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          632 |                size_t *         /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:635:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          635 | clRetainEvent(cl_event /* event */) CL_API_SUFFIX__VERSION_1_0;
              |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:638:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          638 | clReleaseEvent(cl_event /* event */) CL_API_SUFFIX__VERSION_1_0;
              |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:646:73: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          646 |                         size_t *            /* param_value_size_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:650:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          650 | clFlush(cl_command_queue /* command_queue */) CL_API_SUFFIX__VERSION_1_0;
              |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:653:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          653 | clFinish(cl_command_queue /* command_queue */) CL_API_SUFFIX__VERSION_1_0;
              |                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:665:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          665 |                     cl_event *          /* event */) CL_API_SUFFIX__VERSION_1_0;
              |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:676:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          676 |                      cl_event *         /* event */) CL_API_SUFFIX__VERSION_1_0;
              |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:687:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          687 |                     cl_event *          /* event */) CL_API_SUFFIX__VERSION_1_0;
              |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:700:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          700 |                    cl_event *           /* event */) CL_API_SUFFIX__VERSION_1_0;
              |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:713:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          713 |                     cl_event *          /* event */) CL_API_SUFFIX__VERSION_1_0;
              |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:724:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          724 |                    cl_event *           /* event */) CL_API_SUFFIX__VERSION_1_0;
              |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:735:58: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          735 |                            cl_event *       /* event */) CL_API_SUFFIX__VERSION_1_0;
              |                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:746:58: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          746 |                            cl_event *       /* event */) CL_API_SUFFIX__VERSION_1_0;
              |                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:758:56: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          758 |                    cl_int *         /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:772:56: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          772 |                   cl_int *          /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
              |                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:780:56: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          780 |                         cl_event *        /* event */) CL_API_SUFFIX__VERSION_1_0;
              |                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:791:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          791 |                        cl_event *       /* event */) CL_API_SUFFIX__VERSION_1_0;
              |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:798:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          798 |               cl_event *        /* event */) CL_API_SUFFIX__VERSION_1_0;
              |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:810:58: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          810 |                           cl_event *        /* event */) CL_API_SUFFIX__VERSION_1_0;
              |                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:814:50: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          814 |                 cl_event *          /* event */) CL_API_SUFFIX__VERSION_1_0;
              |                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:819:59: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          819 |                        const cl_event * /* event_list */) CL_API_SUFFIX__VERSION_1_0;
              |                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:822:56: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
          822 | clEnqueueBarrier(cl_command_queue /* command_queue */) CL_API_SUFFIX__VERSION_1_0;
              |                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
        /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/build/CMakeFiles/CMakeScratch/TryCompile-T69lrm/CheckSymbolExists.c:5:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
            5 | {
              | ^
        //System/Library/Frameworks/OpenCL.framework/Headers/cl.h:378:1: error: old-style parameter declarations in prototyped function definition
          378 | clGetPlatformInfo(cl_platform_info /* param_name */,
              | ^~~~~~~~~~~~~~~~~
        /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/build/CMakeFiles/CMakeScratch/TryCompile-T69lrm/CheckSymbolExists.c:14: error: expected '{' at end of input
        /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/build/CMakeFiles/CMakeScratch/TryCompile-T69lrm/CheckSymbolExists.c:14: warning: control reaches end of non-void function [-Wreturn-type]
        At top level:
        cc1: note: unrecognized command-line option '-Wno-c++11-long-long' may have been intended to silence earlier diagnostics
        make[1]: *** [CMakeFiles/cmTC_0416c.dir/CheckSymbolExists.c.o] Error 1
        make: *** [cmTC_0416c/fast] Error 2
        
      exitCode: 2

But CMake cache has:

//Build with OpenCL if available
OCCA_ENABLE_OPENCL:BOOL=ON

//No help, variable specified on the command line.
OCCA_OPENCL_ENABLED:UNINITIALIZED=0

//Path to a file.
OpenCL_INCLUDE_DIR:PATH=/System/Library/Frameworks/OpenCL.framework

//Path to a library.
OpenCL_LIBRARY:FILEPATH=/System/Library/Frameworks/OpenCL.framework

//Details about finding OpenCL
FIND_PACKAGE_MESSAGE_DETAILS_OpenCL:INTERNAL=[/System/Library/Frameworks/OpenCL.framework][/System/Library/Frameworks/OpenCL.framework][v()]
//Details about finding OpenCLWrapper
FIND_PACKAGE_MESSAGE_DETAILS_OpenCLWrapper:INTERNAL=[TRUE][v()]

FIND_PACKAGE_MESSAGE_DETAILS_Threads:INTERNAL=[TRUE][v()]
//Have symbol CL_VERSION_1_0
OPENCL_VERSION_1_0:INTERNAL=
//Have symbol CL_VERSION_1_1
OPENCL_VERSION_1_1:INTERNAL=
//Have symbol CL_VERSION_1_2
OPENCL_VERSION_1_2:INTERNAL=
//Have symbol CL_VERSION_2_0
OPENCL_VERSION_2_0:INTERNAL=
//Have symbol CL_VERSION_2_1
OPENCL_VERSION_2_1:INTERNAL=
//Have symbol CL_VERSION_2_2
OPENCL_VERSION_2_2:INTERNAL=
//Have symbol CL_VERSION_3_0
OPENCL_VERSION_3_0:INTERNAL=
//ADVANCED property for variable: OpenCL_INCLUDE_DIR
OpenCL_INCLUDE_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: OpenCL_LIBRARY
OpenCL_LIBRARY-ADVANCED:INTERNAL=1

Configure output:

:notice:configure --->  Configuring libocca
:debug:configure Preferred compilers: macports-gcc-14 macports-gcc-13 macports-gcc-12 macports-gcc-11 macports-gcc-10 macports-gcc-9 macports-gcc-8 macports-gcc-7
:debug:configure Using compiler 'MacPorts GCC 14'
:debug:configure Executing proc-pre-org.macports.configure-configure-0
:debug:configure CPPFLAGS="-isystem/opt/local/include/LegacySupport -I/opt/local/include" inserted into CFLAGS="-Os -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/include" CXXFLAGS="-Os -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0"
:info:configure         (using ccache)
:debug:configure Executing proc-pre-org.macports.configure-configure-1
:debug:configure Executing proc-pre-org.macports.configure-configure-2
:debug:configure Found Dependency: path: /opt/local/lib filename: libMacportsLegacySupport.dylib regex: ^libMacportsLegacySupport.dylib$
:debug:configure Active variants check for source-type install considers depends_fetch depends_extract depends_lib depends_build depends_run: libgcc legacy-support-devel cmake gcc14
:debug:configure Executing proc-pre-org.macports.configure-configure-3
:debug:configure compilers.enforce_c list: 
:debug:configure compilers.enforce_fortran list: 
:debug:configure compilers.enforce_some_fortran list: 
:debug:configure compilers PG: RPATH added to ldflags as GCC version is 14
:debug:configure Executing proc-pre-org.macports.configure-configure-4
:debug:configure Executing org.macports.configure (libocca)
:debug:configure Environment: 
:debug:configure CC='/opt/local/bin/gcc-mp-14'
:debug:configure CC_PRINT_OPTIONS='YES'
:debug:configure CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/.CC_PRINT_OPTIONS'
:debug:configure CFLAGS='-pipe -Os -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/include'
:debug:configure CPATH='/opt/local/include'
:debug:configure CPLUS_INCLUDE_PATH='/opt/local/include/LegacySupport'
:debug:configure CXX='/opt/local/bin/g++-mp-14'
:debug:configure CXXFLAGS='-pipe -Os -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0'
:debug:configure C_INCLUDE_PATH='/opt/local/include/LegacySupport'
:debug:configure DEVELOPER_DIR='/Developer'
:debug:configure DYLD_LIBRARY_PATH='/opt/local/lib/libgcc'
:debug:configure F77='/opt/local/bin/gfortran-mp-14'
:debug:configure F90='/opt/local/bin/gfortran-mp-14'
:debug:configure F90FLAGS='-pipe -Os -m32'
:debug:configure FC='/opt/local/bin/gfortran-mp-14'
:debug:configure FCFLAGS='-pipe -Os -m32'
:debug:configure FFLAGS='-pipe -Os -m32'
:debug:configure INSTALL='/usr/bin/install -c'
:debug:configure LDFLAGS='-Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -Wl,-rpath,/opt/local/lib/libgcc'
:debug:configure LIBRARY_PATH='/opt/local/lib'
:debug:configure MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:configure MACPORTS_LEGACY_SUPPORT_CPPFLAGS='-isystem/opt/local/include/LegacySupport'
:debug:configure MACPORTS_LEGACY_SUPPORT_ENABLED='1'
:debug:configure MACPORTS_LEGACY_SUPPORT_LDFLAGS='-L/opt/local/lib -lMacportsLegacySupport'
:debug:configure OBJC='/opt/local/bin/gcc-mp-14'
:debug:configure OBJCFLAGS='-pipe -Os -isystem/opt/local/include/LegacySupport -I/opt/local/include'
:debug:configure OBJCPLUS_INCLUDE_PATH='/opt/local/include/LegacySupport'
:debug:configure OBJCXX='/opt/local/bin/g++-mp-14'
:debug:configure OBJCXXFLAGS='-pipe -Os -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0'
:debug:configure OBJC_INCLUDE_PATH='/opt/local/include/LegacySupport'
:info:configure Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/build" && /opt/local/bin/cmake -G "CodeBlocks - Unix Makefiles" -DCMAKE_BUILD_TYPE=MacPorts -DCMAKE_INSTALL_PREFIX="/opt/local" -DCMAKE_INSTALL_NAME_DIR="/opt/local/lib" -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_C_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_CXX_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_Fortran_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_OBJC_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_OBJCXX_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_ISPC_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_OBJC_COMPILER="$CC" -DCMAKE_OBJCXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MAKE_PROGRAM=/usr/bin/make -DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules" -DCMAKE_PREFIX_PATH="/opt/local/share/cmake/Modules" -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON -DCMAKE_INSTALL_RPATH="/opt/local/lib" -Wno-dev -DENABLE_FORTRAN=ON -DENABLE_OPENMP=ON -DENABLE_CUDA=OFF -DENABLE_DPCPP=OFF -DENABLE_EXAMPLES=OFF -DENABLE_HIP=OFF -DENABLE_METAL=OFF -DENABLE_TESTS=OFF -DOCCA_OPENCL_ENABLED=0 -DCMAKE_OSX_ARCHITECTURES="ppc" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.6" -DCMAKE_OSX_SYSROOT="/" -DOCCA_CC=/opt/local/bin/gcc-mp-14 -DOCCA_CXX=/opt/local/bin/g++-mp-14 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0 
:debug:configure system:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/build" && /opt/local/bin/cmake -G "CodeBlocks - Unix Makefiles" -DCMAKE_BUILD_TYPE=MacPorts -DCMAKE_INSTALL_PREFIX="/opt/local" -DCMAKE_INSTALL_NAME_DIR="/opt/local/lib" -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_C_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_CXX_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_Fortran_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_OBJC_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_OBJCXX_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_ISPC_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_OBJC_COMPILER="$CC" -DCMAKE_OBJCXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MAKE_PROGRAM=/usr/bin/make -DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules" -DCMAKE_PREFIX_PATH="/opt/local/share/cmake/Modules" -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON -DCMAKE_INSTALL_RPATH="/opt/local/lib" -Wno-dev -DENABLE_FORTRAN=ON -DENABLE_OPENMP=ON -DENABLE_CUDA=OFF -DENABLE_DPCPP=OFF -DENABLE_EXAMPLES=OFF -DENABLE_HIP=OFF -DENABLE_METAL=OFF -DENABLE_TESTS=OFF -DOCCA_OPENCL_ENABLED=0 -DCMAKE_OSX_ARCHITECTURES="ppc" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.6" -DCMAKE_OSX_SYSROOT="/" -DOCCA_CC=/opt/local/bin/gcc-mp-14 -DOCCA_CXX=/opt/local/bin/g++-mp-14 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/occa-2.0.0 
:info:configure -- Using CMake version 3.29.5
:info:configure -- The C compiler identification is GNU 14.1.0
:info:configure -- The CXX compiler identification is GNU 14.1.0
:info:configure -- Checking whether C compiler has -isysroot
:info:configure -- Checking whether C compiler has -isysroot - yes
:info:configure -- Checking whether C compiler supports OSX deployment target flag
:info:configure -- Checking whether C compiler supports OSX deployment target flag - yes
:info:configure -- Detecting C compiler ABI info
:info:configure -- Detecting C compiler ABI info - done
:info:configure -- Check for working C compiler: /opt/local/bin/gcc-mp-14 - skipped
:info:configure -- Detecting C compile features
:info:configure -- Detecting C compile features - done
:info:configure -- Checking whether CXX compiler has -isysroot
:info:configure -- Checking whether CXX compiler has -isysroot - yes
:info:configure -- Checking whether CXX compiler supports OSX deployment target flag
:info:configure -- Checking whether CXX compiler supports OSX deployment target flag - yes
:info:configure -- Detecting CXX compiler ABI info
:info:configure -- Detecting CXX compiler ABI info - done
:info:configure -- Check for working CXX compiler: /opt/local/bin/g++-mp-14 - skipped
:info:configure -- Detecting CXX compile features
:info:configure -- Detecting CXX compile features - done
:info:configure -- Performing Test Allowed_CXX_Flag_Wall__Wextra
:info:configure -- Performing Test Allowed_CXX_Flag_Wall__Wextra - Success
:info:configure -- Performing Test Allowed_CXX_Flag_Wunused_function__Wunused_variable
:info:configure -- Performing Test Allowed_CXX_Flag_Wunused_function__Wunused_variable - Success
:info:configure -- Performing Test Allowed_CXX_Flag_Wwrite_strings__Wfloat_equal
:info:configure -- Performing Test Allowed_CXX_Flag_Wwrite_strings__Wfloat_equal - Success
:info:configure -- Performing Test Allowed_CXX_Flag_Wcast_align__Wlogical_op
:info:configure -- Performing Test Allowed_CXX_Flag_Wcast_align__Wlogical_op - Success
:info:configure -- Performing Test Allowed_CXX_Flag_Wshadow
:info:configure -- Performing Test Allowed_CXX_Flag_Wshadow - Success
:info:configure -- Performing Test Allowed_CXX_Flag_Wno_unused_parameter
:info:configure -- Performing Test Allowed_CXX_Flag_Wno_unused_parameter - Success
:info:configure -- Performing Test Allowed_CXX_Flag_diag_disable_11074__diag_disable_11076
:info:configure -- Performing Test Allowed_CXX_Flag_diag_disable_11074__diag_disable_11076 - Failed
:info:configure -- Performing Test Allowed_CXX_Flag__display_error_number
:info:configure -- Performing Test Allowed_CXX_Flag__display_error_number - Failed
:info:configure -- Performing Test Allowed_CXX_Flag_Werror
:info:configure -- Performing Test Allowed_CXX_Flag_Werror - Success
:info:configure -- Performing Test Allowed_C_Flag_Wall__Wextra
:info:configure -- Performing Test Allowed_C_Flag_Wall__Wextra - Success
:info:configure -- Performing Test Allowed_C_Flag_Wunused_function__Wunused_variable
:info:configure -- Performing Test Allowed_C_Flag_Wunused_function__Wunused_variable - Success
:info:configure -- Performing Test Allowed_C_Flag_Wwrite_strings__Wfloat_equal
:info:configure -- Performing Test Allowed_C_Flag_Wwrite_strings__Wfloat_equal - Success
:info:configure -- Performing Test Allowed_C_Flag_Wcast_align__Wlogical_op
:info:configure -- Performing Test Allowed_C_Flag_Wcast_align__Wlogical_op - Success
:info:configure -- Performing Test Allowed_C_Flag_Wshadow
:info:configure -- Performing Test Allowed_C_Flag_Wshadow - Success
:info:configure -- Performing Test Allowed_C_Flag_Wno_c__11_long_long
:info:configure -- Performing Test Allowed_C_Flag_Wno_c__11_long_long - Success
:info:configure -- Performing Test Allowed_C_Flag_diag_disable_11074__diag_disable_11076
:info:configure -- Performing Test Allowed_C_Flag_diag_disable_11074__diag_disable_11076 - Failed
:info:configure -- Performing Test Allowed_C_Flag__display_error_number
:info:configure -- Performing Test Allowed_C_Flag__display_error_number - Failed
:info:configure -- Performing Test Allowed_C_Flag_Werror
:info:configure -- Performing Test Allowed_C_Flag_Werror - Success
:info:configure -- Performing Test COMPILER_SUPPORTS_NO_STRICT_ALIASING
:info:configure -- Performing Test COMPILER_SUPPORTS_NO_STRICT_ALIASING - Success
:info:configure -- System     : Darwin-10.0.0d2
:info:configure -- Build type : MacPorts
:info:configure -- C flags    :  -Wall -Wextra -Wunused-function -Wunused-variable -Wwrite-strings -Wfloat-equal -Wcast-align -Wlogical-op -Wshadow -Wno-c++11-long-long -pipe -Os -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/include 
:info:configure -- CXX flags  :  -Wall -Wextra -Wunused-function -Wunused-variable -Wwrite-strings -Wfloat-equal -Wcast-align -Wlogical-op -Wshadow -Wno-unused-parameter -pipe -Os -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -fno-strict-aliasing 
:info:configure -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
:info:configure -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
:info:configure -- Found Threads: TRUE
:info:configure -- Found OpenMP_C: -fopenmp (found version "4.5")
:info:configure -- Found OpenMP_CXX: -fopenmp (found version "4.5")
:info:configure -- Found OpenMP: TRUE (found version "4.5")
:info:configure -- OpenMP include dirs: 
:info:configure -- OpenMP libraries:    /opt/local/lib/gcc14/libgomp.dylib
:info:configure -- Could not find nvcc, please set CUDAToolkit_ROOT.
:info:configure -- Found OpenCL: /System/Library/Frameworks/OpenCL.framework
:info:configure -- Found OpenCLWrapper: TRUE
:info:configure -- OpenCL include dirs: /System/Library/Frameworks/OpenCL.framework
:info:configure -- OpenCL libraries:    /System/Library/Frameworks/OpenCL.framework
:info:configure -- Looking for DPC++
:info:configure -- Could NOT find DPCPP (missing: SYCL_INCLUDE_DIRS SYCL_LIBRARIES) 
:info:configure -- Could NOT find HIP (missing: HIP_ROOT_DIR HIP_INCLUDE_DIRS HIP_LIBRARIES HIP_RUNTIME_DEFINE HIP_HIPCONFIG_EXECUTABLE HIP_PLATFORM HIP_COMPILER) 
:info:configure -- Could NOT find METAL (missing: METAL_LIBRARY) 
:info:configure -- Configuring done (29.0s)
:info:configure -- Generating done (0.5s)
:info:configure CMake Warning:
:info:configure   Manually-specified variables were not used by the project:
:info:configure     CMAKE_OBJCXX_COMPILER
:info:configure     CMAKE_OBJC_COMPILER
:info:configure     CMAKE_POLICY_DEFAULT_CMP0025
:info:configure     CMAKE_POLICY_DEFAULT_CMP0060
:info:configure     ENABLE_CUDA
:info:configure     ENABLE_DPCPP
:info:configure     ENABLE_EXAMPLES
:info:configure     ENABLE_FORTRAN
:info:configure     ENABLE_HIP
:info:configure     ENABLE_METAL
:info:configure     ENABLE_OPENMP
:info:configure     ENABLE_TESTS
:info:configure     OCCA_CC
:info:configure     OCCA_CXX
:info:configure -- Build files have been written to: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libocca/libocca/work/build

@barracuda156
Copy link
Contributor Author

Maybe we just need -DOCCA_ENABLE_OPENCL=OFF instead?

I used before -DENABLE_OPENCL=OFF (which failed with 2.0.0) and now tried -DOCCA_OPENCL_ENABLED=0 (which failed either). But CMake cache seems to use OCCA_ENABLE_OPENCL.

@barracuda156
Copy link
Contributor Author

Ok, -DOCCA_ENABLE_OPENCL=OFF works correctly.

I still think that OpenCL usage should not be based merely on its presence but also on CMake check success, but if this is an intended behavior, then the issue can be closed.

@kris-rowe
Copy link
Member

The CMake options were renamed in
v2.0 from ENABLE_XX to OCCA_ENABLE_XX.

By default these are all set to ON. Likely we should consider changing the default for OpenCL to OFF since it seems to cause the most issues.

If you are building with GNUMake and CMake out of the same source directory, watch out for the issue described in #745 as well.

@barracuda156
Copy link
Contributor Author

CMake in MacPorts builds out-of-tree by default, so no issues here. And I have fixed ENABLE* options in the portfile, thank you.
I guess we can close this, since specific problem is resolved.

@barracuda156
Copy link
Contributor Author

The port updated in macports/macports-ports@403d19b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants