2012-11-27 3 views
0

나는 VIRTUALENV 디렉토리에 우분투 12.10에 pyopencl를 컴파일하기 위해 노력하고있어하지만 오류가 출력 될 것 같다 컴파일 :pyopencl

gcc -pthread -fno-strict-aliasing -fwrapv -Wall -O3 -DNDEBUG -fPIC -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/opencl-install-location/include -I/home/stephen/Downloads/Software/poclbm/python/local/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c bpl-subset/bpl_subset/libs/thread/src/pthread/once.cpp -o build/temp.linux-x86_64-2.7/bpl-subset/bpl_subset/libs/thread/src/pthread/once.o 
In file included from bpl-subset/bpl_subset/boost/thread/detail/platform.hpp:17:0, 
       from bpl-subset/bpl_subset/boost/thread/once.hpp:12, 
       from bpl-subset/bpl_subset/libs/thread/src/pthread/once.cpp:7: 
bpl-subset/bpl_subset/boost/config/requires_threads.hpp:29:4: error: #error "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS" 
In file included from bpl-subset/bpl_subset/boost/thread/once.hpp:12:0, 
       from bpl-subset/bpl_subset/libs/thread/src/pthread/once.cpp:7: 
bpl-subset/bpl_subset/boost/thread/detail/platform.hpp:67:9: error: #error "Sorry, no boost threads are available for this platform." 
In file included from bpl-subset/bpl_subset/libs/thread/src/pthread/once.cpp:7:0: 
bpl-subset/bpl_subset/boost/thread/once.hpp:18:2: error: #error "Boost threads unavailable on this platform" 
In file included from bpl-subset/bpl_subset/libs/thread/src/pthread/once.cpp:7:0: 
bpl-subset/bpl_subset/boost/thread/once.hpp:25:42: error: variable or field ‘call_once’ declared void 
bpl-subset/bpl_subset/boost/thread/once.hpp:25:34: error: ‘func’ was not declared in this scope 
bpl-subset/bpl_subset/boost/thread/once.hpp:25:42: error: ‘once_flag’ was not declared in this scope 
bpl-subset/bpl_subset/boost/thread/once.hpp:25:53: error: ‘flag’ was not declared in this scope 
bpl-subset/bpl_subset/libs/thread/src/pthread/once.cpp:16:9: error: ‘BOOST_THREAD_DECL’ does not name a type 
bpl-subset/bpl_subset/libs/thread/src/pthread/once.cpp:17:9: error: ‘BOOST_THREAD_DECL’ does not name a type 
bpl-subset/bpl_subset/libs/thread/src/pthread/once.cpp:18:9: error: ‘BOOST_THREAD_DECL’ does not name a type 
bpl-subset/bpl_subset/libs/thread/src/pthread/once.cpp:39:9: error: ‘uintmax_t’ in namespace ‘pyopenclboost’ does not name a type 
bpl-subset/bpl_subset/libs/thread/src/pthread/once.cpp:23:28: warning: ‘pyopenclboost::detail::{anonymous}::epoch_tss_key_flag’ defined but not used [-Wunused-variable] 
bpl-subset/bpl_subset/libs/thread/src/pthread/once.cpp:32:29: warning: ‘void pyopenclboost::detail::{anonymous}::create_epoch_tss_key()’ defined but not used [-Wunused-function] 
error: command 'gcc' failed with exit status 1 
make: *** [install] Error 1 
+0

아마도 도움이됩니다. http://stackoverflow.com/questions/11094718/error-command-gcc-failed-with-exit-status-1-while-installing-eventlet – jdotjdot

+0

도움이되지 않았습니다 ... 이미 받았습니다. 설치. – polandeer

답변

1

가 자식 버전을 사용합니다. 최근에 메일 링리스트에 올라 왔습니다. 곧 업데이트를 알려 드리겠습니다.

0

온라인으로 검색하면 지난 해에는 아무것도 찾을 수 없지만 우분투에이 파일을 설치하는 방법을 묻는 사람들이 있습니다. 이게 도움이 될지 모르겠지만 만약 우분투에 그냥 설치하려고하면 그냥 사용하면된다.

sudo apt-get install python-pyopencl 

당신이 굴러 가야한다.

+0

virtualenv에서 작동하지 않습니다. – polandeer