This is charmm/build/cmake/CMakeFiles/CMakeError.log

Determining if the CL_VERSION_2_2 exist failed with the following output:
Change Dir: /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1710634290/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1710634290.dir/build.make CMakeFiles/cmTryCompileExec1710634290.dir/build
gmake[1]: Entering directory `/state/partition1/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp'
/usr/local/bin/cmake -E cmake_progress_report /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec1710634290.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTryCompileExec1710634290.dir/CheckSymbolExists.c.o -c /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:47: error: OpenCL_INCLUDE_DIR-NOTFOUND/CL/cl.h: No such file or directory
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: ‘CL_VERSION_2_2’ undeclared (first use in this function)
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: (Each undeclared identifier is reported only once
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: for each function it appears in.)
gmake[1]: *** [CMakeFiles/cmTryCompileExec1710634290.dir/CheckSymbolExists.c.o] error 1
gmake[1]: Leaving directory `/state/partition1/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec1710634290/fast] error 2

File /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include

int main(int argc, char** argv)
{
(void)argv;
#ifndef CL_VERSION_2_2
return ((int*)(&CL_VERSION_2_2))[argc];
#else
(void)argc;
return 0;
#endif
}

Determining if the CL_VERSION_2_1 exist failed with the following output:
Change Dir: /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1468820692/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1468820692.dir/build.make CMakeFiles/cmTryCompileExec1468820692.dir/build
gmake[1]: Entering directory `/state/partition1/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp'
/usr/local/bin/cmake -E cmake_progress_report /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec1468820692.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTryCompileExec1468820692.dir/CheckSymbolExists.c.o -c /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:47: error: OpenCL_INCLUDE_DIR-NOTFOUND/CL/cl.h: No such file or directory
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: ‘CL_VERSION_2_1’ undeclared (first use in this function)
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: (Each undeclared identifier is reported only once
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: for each function it appears in.)
gmake[1]: *** [CMakeFiles/cmTryCompileExec1468820692.dir/CheckSymbolExists.c.o] error 1
gmake[1]: Leaving directory `/state/partition1/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec1468820692/fast] error 2

File /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include

int main(int argc, char** argv)
{
(void)argv;
#ifndef CL_VERSION_2_1
return ((int*)(&CL_VERSION_2_1))[argc];
#else
(void)argc;
return 0;
#endif
}

Determining if the CL_VERSION_2_0 exist failed with the following output:
Change Dir: /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec2996316082/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2996316082.dir/build.make CMakeFiles/cmTryCompileExec2996316082.dir/build
gmake[1]: Entering directory `/state/partition1/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp'
/usr/local/bin/cmake -E cmake_progress_report /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2996316082.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTryCompileExec2996316082.dir/CheckSymbolExists.c.o -c /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:47: error: OpenCL_INCLUDE_DIR-NOTFOUND/CL/cl.h: No such file or directory
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: ‘CL_VERSION_2_0’ undeclared (first use in this function)
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: (Each undeclared identifier is reported only once
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: for each function it appears in.)
gmake[1]: *** [CMakeFiles/cmTryCompileExec2996316082.dir/CheckSymbolExists.c.o] error 1
gmake[1]: Leaving directory `/state/partition1/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec2996316082/fast] error 2

File /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include


#include

int main(int argc, char** argv)
{
(void)argv;
#ifndef CL_VERSION_2_0
return ((int*)(&CL_VERSION_2_0))[argc];
#else
(void)argc;
return 0;
#endif
}

Determining if the CL_VERSION_1_2 exist failed with the following output:
Change Dir: /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1231046631/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1231046631.dir/build.make CMakeFiles/cmTryCompileExec1231046631.dir/build
gmake[1]: Entering directory `/state/partition1/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp'
/usr/local/bin/cmake -E cmake_progress_report /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec1231046631.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTryCompileExec1231046631.dir/CheckSymbolExists.c.o -c /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:47: error: OpenCL_INCLUDE_DIR-NOTFOUND/CL/cl.h: No such file or directory
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: ‘CL_VERSION_1_2’ undeclared (first use in this function)
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: (Each undeclared identifier is reported only once
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: for each function it appears in.)
gmake[1]: *** [CMakeFiles/cmTryCompileExec1231046631.dir/CheckSymbolExists.c.o] 오류 1
gmake[1]: Leaving directory `/state/partition1/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec1231046631/fast] 오류 2

File /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include

int main(int argc, char** argv)
{
(void)argv;
#ifndef CL_VERSION_1_2
return ((int*)(&CL_VERSION_1_2))[argc];
#else
(void)argc;
return 0;
#endif
}

Determining if the CL_VERSION_1_1 exist failed with the following output:
Change Dir: /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec83846168/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec83846168.dir/build.make CMakeFiles/cmTryCompileExec83846168.dir/build
gmake[1]: Entering directory `/state/partition1/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp'
/usr/local/bin/cmake -E cmake_progress_report /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec83846168.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTryCompileExec83846168.dir/CheckSymbolExists.c.o -c /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:47: error: OpenCL_INCLUDE_DIR-NOTFOUND/CL/cl.h: No such file or directory
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: ‘CL_VERSION_1_1’ undeclared (first use in this function)
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: (Each undeclared identifier is reported only once
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: for each function it appears in.)
gmake[1]: *** [CMakeFiles/cmTryCompileExec83846168.dir/CheckSymbolExists.c.o] 오류 1
gmake[1]: Leaving directory `/state/partition1/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec83846168/fast] error 2

File /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include

int main(int argc, char** argv)
{
(void)argv;
#ifndef CL_VERSION_1_1
return ((int*)(&CL_VERSION_1_1))[argc];
#else
(void)argc;
return 0;
#endif
}

Determining if the CL_VERSION_1_0 exist failed with the following output:
Change Dir: /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/gmake "cmTryCompileExec1353340653/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1353340653.dir/build.make CMakeFiles/cmTryCompileExec1353340653.dir/build
gmake[1]: Entering directory `/state/partition1/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp'
/usr/local/bin/cmake -E cmake_progress_report /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec1353340653.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTryCompileExec1353340653.dir/CheckSymbolExists.c.o -c /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:47: error: OpenCL_INCLUDE_DIR-NOTFOUND/CL/cl.h: No such file or directory
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’:
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: ‘CL_VERSION_1_0’ undeclared (first use in this function)
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: (Each undeclared identifier is reported only once
/export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: for each function it appears in.)
gmake[1]: *** [CMakeFiles/cmTryCompileExec1353340653.dir/CheckSymbolExists.c.o] error 1
gmake[1]: Leaving directory `/state/partition1/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec1353340653/fast] error 2

File /export/home/sohyeon/charmm/build/cmake/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include

int main(int argc, char** argv)
{
(void)argv;
#ifndef CL_VERSION_1_0
return ((int*)(&CL_VERSION_1_0))[argc];
#else
(void)argc;
return 0;
#endif
}

To solve error,
Should I make CheckSymbolExists ?; e.g. mkdir CheckSymbolExists





I followed the guidelines in the CHARMM documentaion for the cmake build process
;(http://bitly.kr/lYTtg2j)
But It still got the same error.