2013-03-05 144 views
3

我試圖使用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?

你能幫我嗎?

+0

你試過嗎? sudo apt-get install python-llvm – 2013-03-05 14:07:16

+0

不,因爲我正在epdFree下安裝llvmpy(Enthougth分發) – msalese 2013-03-05 14:45:57

回答

3

你想至少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 
+0

非常感謝,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

+2

已解決IRBuilder.h我創建了一個鏈接'IRBuilder.h - >。/ Support/IRBuilder.h'。但現在在'llvmpy/api.cpp:22:29:致命錯誤:llvm/DataLayout.h:我的電腦上沒有這樣的文件或目錄'的新問題,我沒有找到DataLayout.h! – msalese 2013-03-05 14:54:14

+0

我的目標是在Edpfree裏面安裝numba 7.3-2 – msalese 2013-03-05 15:01:50