llvmpy Ubuntu服务器上12.04
我试图使用edpFree 7.3-2llvmpy Ubuntu服务器上12.04
# uname -a
Linux svnserver 3.2.0-38-generiC#61-Ubuntu SMP Tue Feb 19 12:18:21 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.2 LTS
Release: 12.04
Codename: precise
画中画命令后的Ubuntu 12.04安装llvmpy我收到一个错误:
#./pip install llvmpy
Downloading/unpacking llvmpy
Running setup.py egg_info for package llvmpy
LLVM version = u'3.0'
Generate intrinsic IDs
Searching shared library libLLVM-3.0 in /usr/lib/llvm-3.0/lib
Using PTX
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip-build/llvmpy/setup.py", line 136, in <module>
+ extra_components)
File "/tmp/pip-build/llvmpy/setup.py", line 41, in get_libs_and_objs
parts = run_llvm_config(['--libs'] + components).split()
File "/tmp/pip-build/llvmpy/setup.py", line 34, in run_llvm_config
raise Exception("%r stderr is:\n%s" % (args, stderr.decode()))
Exception: ['llvm-config', '--libs', 'core', 'analysis', 'scalaropts', 'executionengine', 'jit', 'native', 'interpreter', 'bitreader', 'bitwriter', 'instrumentation', 'ipa', 'ipo', 'transformutils', 'asmparser', 'linker', 'support', 'vectorize', 'ptxdesc', 'ptxcodegen', 'ptxasmprinter', 'ptxinfo', 'ptx'] stderr is:
llvm-config: unknown component name: vectorize
Complete output from command python setup.py egg_info:
LLVM version = u'3.0'
Generate intrinsic IDs
Searching shared library libLLVM-3.0 in /usr/lib/llvm-3.0/lib
Using PTX
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip-build/llvmpy/setup.py", line 136, in <module>
+ extra_components)
File "/tmp/pip-build/llvmpy/setup.py", line 41, in get_libs_and_objs
parts = run_llvm_config(['--libs'] + components).split()
File "/tmp/pip-build/llvmpy/setup.py", line 34, in run_llvm_config
raise Exception("%r stderr is:\n%s" % (args, stderr.decode()))
Exception: ['llvm-config', '--libs', 'core', 'analysis', 'scalaropts', 'executionengine', 'jit', 'native', 'interpreter', 'bitreader', 'bitwriter', 'instrumentation', 'ipa', 'ipo', 'transformutils', 'asmparser', 'linker', 'support', 'vectorize', 'ptxdesc', 'ptxcodegen', 'ptxasmprinter', 'ptxinfo', 'ptx'] stderr is:
llvm-config: unknown component name: vectorize
的问题是矢量化组件!
作为先决条件我安装(使用aptitude):
llvm-3.0
llvm-3.0-dev
llvm-3.0-runtime
libllvm3.0
可能必须用3.1替换3.0?
你能帮我吗?
你想至少llvm-3.1
其具有被宣告失踪的成分:
$ llvm-config --libs vectorize
-lLLVMVectorize -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMObject -lLLVMCore -lLLVMSupport
$ llvm-config --version
3.1
但如果可能的话我会考虑3.3,因为这就是对发展似乎有reached a reasonable point。
编辑:看起来像llvmpy-0.11.0
正在拉,其中预计llvm-3.2
。用途:
pip install -I llvmpy==0.10.0
,而不是让结合对llvm-3.1
版本。测试日期:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.10
Release: 12.10
Codename: quantal
非常感谢,llvm3.1解决了vectorize组件的问题。但现在编译停止错误'llvmpy/include/llvm_binding/extra.h:19:28:致命错误:llvm/IRBuilder.h:没有这样的文件或目录' '编译终止.' 'error:command 'gcc'以退出状态1失败' 但是在我的电脑上,IRbuilder.h存在'find/usr -name IRBuilder.h' '/ usr/lib/llvm-3.1/include/llvm/Support/IRBuilder.h' – msalese 2013-03-05 14:40:13
已解决IRBuilder.h我创建了一个链接'IRBuilder.h - >。/ Support/IRBuilder.h'。但现在在'llvmpy/api.cpp:22:29:致命错误:llvm/DataLayout.h:我的电脑上没有这样的文件或目录'的新问题,我没有找到DataLayout.h! – msalese 2013-03-05 14:54:14
我的目标是在Edpfree里面安装numba 7.3-2 – msalese 2013-03-05 15:01:50
你试过吗? sudo apt-get install python-llvm – 2013-03-05 14:07:16
不,因为我正在epdFree下安装llvmpy(Enthougth分发) – msalese 2013-03-05 14:45:57