On Mar 14, 2012, at 2:33 PM, Andreas Kloeckner <[email protected]> wrote:

> <#part sign=pgpmime>
> On Wed, 14 Mar 2012 13:44:29 -0500, Karsten Anderson 
> <[email protected]> wrote:
>> Hi, I'm trying to build pyopencl on OS X 10.8 and I'm getting an error early 
>> in the build saying
>> 
>> "In file included from src/wrapper/wrap_cl.cpp:1:
>> src/wrapper/wrap_cl.hpp:14:10: fatal error: 'OpenCL/opencl.h' file not found
>> #include <OpenCL/opencl.h>"
>> 
>> I'm using the beta version of Xcode and have /Developer symlinked into
>> the Xcode SDK i've downloaded.  Was there a path change in 10.8 that's
>> breaking something?  The opencl.h file does exist in the downloaded
>> SDK in the Frameworks directory.  thanks
> 
> Can you please copy the compiler invocation line, too?
> 
> Andreas
> 
> 

$ make
ctags -R src || true
ctags: illegal option -- R
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
/usr/bin/python setup.py build
-------------------------------------------------------------------------
Mako is not installed.
-------------------------------------------------------------------------
That is not a problem, as most of PyOpenCL will be just fine without it.
Some higher-level parts of pyopencl (pyopencl.reduction, to be precise)
will not function without the templating engine Mako [1] being installed.
If you would like this functionality to work, you might want to install
Mako after you finish installing PyOpenCL.

[1] http://www.makotemplates.org/
-------------------------------------------------------------------------
Hit Ctrl-C now if you'd like to think about the situation.
-------------------------------------------------------------------------
Continuing in 1 seconds...   
running build
running build_py
creating build
creating build/lib.macosx-10.8-intel-2.7
creating build/lib.macosx-10.8-intel-2.7/pyopencl
copying pyopencl/__init__.py -> build/lib.macosx-10.8-intel-2.7/pyopencl
copying pyopencl/_cluda.py -> build/lib.macosx-10.8-intel-2.7/pyopencl
copying pyopencl/_mymako.py -> build/lib.macosx-10.8-intel-2.7/pyopencl
copying pyopencl/array.py -> build/lib.macosx-10.8-intel-2.7/pyopencl
copying pyopencl/cache.py -> build/lib.macosx-10.8-intel-2.7/pyopencl
copying pyopencl/clmath.py -> build/lib.macosx-10.8-intel-2.7/pyopencl
copying pyopencl/clrandom.py -> build/lib.macosx-10.8-intel-2.7/pyopencl
copying pyopencl/elementwise.py -> build/lib.macosx-10.8-intel-2.7/pyopencl
copying pyopencl/reduction.py -> build/lib.macosx-10.8-intel-2.7/pyopencl
copying pyopencl/scan.py -> build/lib.macosx-10.8-intel-2.7/pyopencl
copying pyopencl/tools.py -> build/lib.macosx-10.8-intel-2.7/pyopencl
copying pyopencl/version.py -> build/lib.macosx-10.8-intel-2.7/pyopencl
creating build/lib.macosx-10.8-intel-2.7/pyopencl/characterize
copying pyopencl/characterize/__init__.py -> 
build/lib.macosx-10.8-intel-2.7/pyopencl/characterize
copying pyopencl/characterize/performance.py -> 
build/lib.macosx-10.8-intel-2.7/pyopencl/characterize
creating build/lib.macosx-10.8-intel-2.7/pyopencl/compyte
copying pyopencl/compyte/__init__.py -> 
build/lib.macosx-10.8-intel-2.7/pyopencl/compyte
copying pyopencl/compyte/array.py -> 
build/lib.macosx-10.8-intel-2.7/pyopencl/compyte
copying pyopencl/compyte/dtypes.py -> 
build/lib.macosx-10.8-intel-2.7/pyopencl/compyte
copying pyopencl/compyte/scan.py -> 
build/lib.macosx-10.8-intel-2.7/pyopencl/compyte
running build_ext
building '_cl' extension
creating build/temp.macosx-10.8-intel-2.7
creating build/temp.macosx-10.8-intel-2.7/src
creating build/temp.macosx-10.8-intel-2.7/src/wrapper
creating build/temp.macosx-10.8-intel-2.7/bpl-subset
creating build/temp.macosx-10.8-intel-2.7/bpl-subset/bpl_subset
creating build/temp.macosx-10.8-intel-2.7/bpl-subset/bpl_subset/libs
creating build/temp.macosx-10.8-intel-2.7/bpl-subset/bpl_subset/libs/python
creating build/temp.macosx-10.8-intel-2.7/bpl-subset/bpl_subset/libs/python/src
creating 
build/temp.macosx-10.8-intel-2.7/bpl-subset/bpl_subset/libs/python/src/converter
creating 
build/temp.macosx-10.8-intel-2.7/bpl-subset/bpl_subset/libs/python/src/object
creating build/temp.macosx-10.8-intel-2.7/bpl-subset/bpl_subset/libs/smart_ptr
creating 
build/temp.macosx-10.8-intel-2.7/bpl-subset/bpl_subset/libs/smart_ptr/src
creating build/temp.macosx-10.8-intel-2.7/bpl-subset/bpl_subset/libs/thread
creating build/temp.macosx-10.8-intel-2.7/bpl-subset/bpl_subset/libs/thread/src
creating 
build/temp.macosx-10.8-intel-2.7/bpl-subset/bpl_subset/libs/thread/src/pthread
clang -fno-strict-aliasing -fno-common -dynamic -Wall -O3 -DNDEBUG -pipe 
-DPYGPU_PACKAGE=pyopencl -DBOOST_PYTHON_SOURCE=1 
-DPYOPENCL_USE_DEVICE_FISSION=1 -DPYGPU_PYOPENCL=1 
-DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1 -DBOOST_THREAD_BUILD_DLL=1 
-Dboost=pyopenclboost -DBOOST_ALL_NO_LIB=1 -Ibpl-subset/bpl_subset 
-I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include
 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 
-c src/wrapper/wrap_cl.cpp -o 
build/temp.macosx-10.8-intel-2.7/src/wrapper/wrap_cl.o -arch i386 -arch x86_64 
-isysroot /Developer/SDKs/MacOSX10.8.sdk
In file included from src/wrapper/wrap_cl.cpp:1:
src/wrapper/wrap_cl.hpp:14:10: fatal error: 'OpenCL/opencl.h' file not found
#include <OpenCL/opencl.h>
         ^
1 error generated.
error: command 'clang' failed with exit status 1
make: *** [all] Error 1

thanks
_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to