Skip to content

Instantly share code, notes, and snippets.

@hecomi
Created May 19, 2015 15:12
Show Gist options
  • Save hecomi/0d1e7ddc5d7d0b634e9d to your computer and use it in GitHub Desktop.
Save hecomi/0d1e7ddc5d7d0b634e9d to your computer and use it in GitHub Desktop.
OpenCV Error
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/ocl.cpp.o
In file included from /Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:1372:
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/include/opencv2/core/opencl/runtime/opencl_svm_hsa_extension.hpp:78:3: warning:
'weak_import' attribute only applies to variables and functions [-Wignored-attributes]
) CL_EXT_SUFFIX__VERSION_1_2;
^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:61:57: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2'
#define CL_EXT_SUFFIX__VERSION_1_2 CL_EXTENSION_WEAK_LINK AVAILABLE_MAC_OS_X_VERSION_10_8_AND_LATER
^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:49:57: note: expanded from macro 'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
In file included from /Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:1372:
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/include/opencv2/core/opencl/runtime/opencl_svm_hsa_extension.hpp:84:3: warning:
'weak_import' attribute only applies to variables and functions [-Wignored-attributes]
) CL_EXT_SUFFIX__VERSION_1_2;
^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:61:57: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2'
#define CL_EXT_SUFFIX__VERSION_1_2 CL_EXTENSION_WEAK_LINK AVAILABLE_MAC_OS_X_VERSION_10_8_AND_LATER
^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:49:57: note: expanded from macro 'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
In file included from /Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:1372:
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/include/opencv2/core/opencl/runtime/opencl_svm_hsa_extension.hpp:100:3: warning:
'weak_import' attribute only applies to variables and functions [-Wignored-attributes]
) CL_EXT_SUFFIX__VERSION_1_2;
^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:61:57: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2'
#define CL_EXT_SUFFIX__VERSION_1_2 CL_EXTENSION_WEAK_LINK AVAILABLE_MAC_OS_X_VERSION_10_8_AND_LATER
^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:49:57: note: expanded from macro 'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
In file included from /Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:1372:
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/include/opencv2/core/opencl/runtime/opencl_svm_hsa_extension.hpp:112:3: warning:
'weak_import' attribute only applies to variables and functions [-Wignored-attributes]
) CL_EXT_SUFFIX__VERSION_1_2;
^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:61:57: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2'
#define CL_EXT_SUFFIX__VERSION_1_2 CL_EXTENSION_WEAK_LINK AVAILABLE_MAC_OS_X_VERSION_10_8_AND_LATER
^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:49:57: note: expanded from macro 'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
In file included from /Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:1372:
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/include/opencv2/core/opencl/runtime/opencl_svm_hsa_extension.hpp:124:3: warning:
'weak_import' attribute only applies to variables and functions [-Wignored-attributes]
) CL_EXT_SUFFIX__VERSION_1_2;
^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:61:57: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2'
#define CL_EXT_SUFFIX__VERSION_1_2 CL_EXTENSION_WEAK_LINK AVAILABLE_MAC_OS_X_VERSION_10_8_AND_LATER
^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:49:57: note: expanded from macro 'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
In file included from /Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:1372:
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/include/opencv2/core/opencl/runtime/opencl_svm_hsa_extension.hpp:136:3: warning:
'weak_import' attribute only applies to variables and functions [-Wignored-attributes]
) CL_EXT_SUFFIX__VERSION_1_2;
^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:61:57: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2'
#define CL_EXT_SUFFIX__VERSION_1_2 CL_EXTENSION_WEAK_LINK AVAILABLE_MAC_OS_X_VERSION_10_8_AND_LATER
^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:49:57: note: expanded from macro 'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
In file included from /Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:1372:
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/include/opencv2/core/opencl/runtime/opencl_svm_hsa_extension.hpp:145:3: warning:
'weak_import' attribute only applies to variables and functions [-Wignored-attributes]
) CL_EXT_SUFFIX__VERSION_1_2;
^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:61:57: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2'
#define CL_EXT_SUFFIX__VERSION_1_2 CL_EXTENSION_WEAK_LINK AVAILABLE_MAC_OS_X_VERSION_10_8_AND_LATER
^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:49:57: note: expanded from macro 'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
In file included from /Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:1372:
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/include/opencv2/core/opencl/runtime/opencl_svm_hsa_extension.hpp:152:3: warning:
'weak_import' attribute only applies to variables and functions [-Wignored-attributes]
) CL_EXT_SUFFIX__VERSION_1_2;
^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:61:57: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2'
#define CL_EXT_SUFFIX__VERSION_1_2 CL_EXTENSION_WEAK_LINK AVAILABLE_MAC_OS_X_VERSION_10_8_AND_LATER
^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:49:57: note: expanded from macro 'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
In file included from /Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:1372:
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/include/opencv2/core/opencl/runtime/opencl_svm_hsa_extension.hpp:160:3: warning:
'weak_import' attribute only applies to variables and functions [-Wignored-attributes]
) CL_EXT_SUFFIX__VERSION_1_2;
^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:61:57: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2'
#define CL_EXT_SUFFIX__VERSION_1_2 CL_EXTENSION_WEAK_LINK AVAILABLE_MAC_OS_X_VERSION_10_8_AND_LATER
^
/System/Library/Frameworks/OpenCL.framework/Headers/cl_platform.h:49:57: note: expanded from macro 'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:2649:25: error: use of undeclared identifier 'clSVMAlloc'
void* ptr = clSVMAlloc(handle, CL_MEM_READ_WRITE, 100, 0);
^
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:2659:35: error: use of undeclared identifier 'clEnqueueSVMMap'; did you
mean 'svm::SVMFunctions::fn_clEnqueueSVMMap'?
if (CL_SUCCESS != clEnqueueSVMMap(q, CL_TRUE, CL_MAP_WRITE, ptr, 100, 0, NULL, NULL))
^~~~~~~~~~~~~~~
svm::SVMFunctions::fn_clEnqueueSVMMap
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/include/opencv2/core/opencl/opencl_svm.hpp:52:27: note:
'svm::SVMFunctions::fn_clEnqueueSVMMap' declared here
clEnqueueSVMMapAMD_fn fn_clEnqueueSVMMap;
^
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:2659:35: error: invalid use of non-static data member 'fn_clEnqueueSVMMap'
if (CL_SUCCESS != clEnqueueSVMMap(q, CL_TRUE, CL_MAP_WRITE, ptr, 100, 0, NULL, NULL))
^~~~~~~~~~~~~~~
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:2674:35: error: use of undeclared identifier 'clEnqueueSVMUnmap'; did you
mean 'svm::SVMFunctions::fn_clEnqueueSVMUnmap'?
if (CL_SUCCESS != clEnqueueSVMUnmap(q, ptr, 0, NULL, NULL))
^~~~~~~~~~~~~~~~~
svm::SVMFunctions::fn_clEnqueueSVMUnmap
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/include/opencv2/core/opencl/opencl_svm.hpp:53:29: note:
'svm::SVMFunctions::fn_clEnqueueSVMUnmap' declared here
clEnqueueSVMUnmapAMD_fn fn_clEnqueueSVMUnmap;
^
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:2674:35: error: invalid use of non-static data member
'fn_clEnqueueSVMUnmap'
if (CL_SUCCESS != clEnqueueSVMUnmap(q, ptr, 0, NULL, NULL))
^~~~~~~~~~~~~~~~~
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:2688:17: error: use of undeclared identifier 'clSVMFree'
clSVMFree(handle, ptr);
^
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:2691:13: error: use of undeclared identifier 'clSVMFree'
clSVMFree(handle, ptr);
^
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:2692:42: error: use of undeclared identifier 'clSVMAlloc'
svmFunctions.fn_clSVMAlloc = clSVMAlloc;
^
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:2693:41: error: use of undeclared identifier 'clSVMFree'
svmFunctions.fn_clSVMFree = clSVMFree;
^
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:2694:56: error: use of undeclared identifier 'clSetKernelArgSVMPointer';
did you mean 'svm::SVMFunctions::fn_clSetKernelArgSVMPointer'?
svmFunctions.fn_clSetKernelArgSVMPointer = clSetKernelArgSVMPointer;
^~~~~~~~~~~~~~~~~~~~~~~~
svm::SVMFunctions::fn_clSetKernelArgSVMPointer
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/include/opencv2/core/opencl/opencl_svm.hpp:47:36: note:
'svm::SVMFunctions::fn_clSetKernelArgSVMPointer' declared here
clSetKernelArgSVMPointerAMD_fn fn_clSetKernelArgSVMPointer;
^
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:2694:56: error: invalid use of non-static data member
'fn_clSetKernelArgSVMPointer'
svmFunctions.fn_clSetKernelArgSVMPointer = clSetKernelArgSVMPointer;
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:2697:50: error: use of undeclared identifier 'clEnqueueSVMMemcpy'; did you
mean 'svm::SVMFunctions::fn_clEnqueueSVMMemcpy'?
svmFunctions.fn_clEnqueueSVMMemcpy = clEnqueueSVMMemcpy;
^~~~~~~~~~~~~~~~~~
svm::SVMFunctions::fn_clEnqueueSVMMemcpy
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/include/opencv2/core/opencl/opencl_svm.hpp:50:30: note:
'svm::SVMFunctions::fn_clEnqueueSVMMemcpy' declared here
clEnqueueSVMMemcpyAMD_fn fn_clEnqueueSVMMemcpy;
^
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:2697:50: error: invalid use of non-static data member
'fn_clEnqueueSVMMemcpy'
svmFunctions.fn_clEnqueueSVMMemcpy = clEnqueueSVMMemcpy;
^~~~~~~~~~~~~~~~~~
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:2698:51: error: use of undeclared identifier 'clEnqueueSVMMemFill'; did you
mean 'svm::SVMFunctions::fn_clEnqueueSVMMemFill'?
svmFunctions.fn_clEnqueueSVMMemFill = clEnqueueSVMMemFill;
^~~~~~~~~~~~~~~~~~~
svm::SVMFunctions::fn_clEnqueueSVMMemFill
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/include/opencv2/core/opencl/opencl_svm.hpp:51:31: note:
'svm::SVMFunctions::fn_clEnqueueSVMMemFill' declared here
clEnqueueSVMMemFillAMD_fn fn_clEnqueueSVMMemFill;
^
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:2698:51: error: invalid use of non-static data member
'fn_clEnqueueSVMMemFill'
svmFunctions.fn_clEnqueueSVMMemFill = clEnqueueSVMMemFill;
^~~~~~~~~~~~~~~~~~~
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:2699:47: error: use of undeclared identifier 'clEnqueueSVMMap'; did you
mean 'svm::SVMFunctions::fn_clEnqueueSVMMap'?
svmFunctions.fn_clEnqueueSVMMap = clEnqueueSVMMap;
^~~~~~~~~~~~~~~
svm::SVMFunctions::fn_clEnqueueSVMMap
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/include/opencv2/core/opencl/opencl_svm.hpp:52:27: note:
'svm::SVMFunctions::fn_clEnqueueSVMMap' declared here
clEnqueueSVMMapAMD_fn fn_clEnqueueSVMMap;
^
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:2699:47: error: invalid use of non-static data member 'fn_clEnqueueSVMMap'
svmFunctions.fn_clEnqueueSVMMap = clEnqueueSVMMap;
^~~~~~~~~~~~~~~
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:2700:49: error: use of undeclared identifier 'clEnqueueSVMUnmap'; did you
mean 'svm::SVMFunctions::fn_clEnqueueSVMUnmap'?
svmFunctions.fn_clEnqueueSVMUnmap = clEnqueueSVMUnmap;
^~~~~~~~~~~~~~~~~
svm::SVMFunctions::fn_clEnqueueSVMUnmap
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/include/opencv2/core/opencl/opencl_svm.hpp:53:29: note:
'svm::SVMFunctions::fn_clEnqueueSVMUnmap' declared here
clEnqueueSVMUnmapAMD_fn fn_clEnqueueSVMUnmap;
^
/Users/hecomi/Downloads/opencv-3.0.0-rc1/modules/core/src/ocl.cpp:2700:49: error: invalid use of non-static data member
'fn_clEnqueueSVMUnmap'
svmFunctions.fn_clEnqueueSVMUnmap = clEnqueueSVMUnmap;
^~~~~~~~~~~~~~~~~
9 warnings and 19 errors generated.
make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/src/ocl.cpp.o] Error 1
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment