首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ubuntu Server 12.04上的llvmpy

Ubuntu Server 12.04上的llvmpy
EN

Stack Overflow用户
提问于 2013-03-05 21:45:47
回答 1查看 1.9K关注 0票数 3

我正在尝试使用edpFree 7.3-2在ubuntu12.04上安装llvmpy

代码语言:javascript
复制
# 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

在pip命令之后,我收到一个错误:

代码语言:javascript
复制
#./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):

代码语言:javascript
复制
llvm-3.0
llvm-3.0-dev
llvm-3.0-runtime
libllvm3.0

是不是3.0必须被3.1取代?

你能帮我吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-03-05 22:04:02

您至少需要具有被声明为缺少的组件的llvm-3.1

代码语言:javascript
复制
$ 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。使用:

代码语言:javascript
复制
pip install -I llvmpy==0.10.0

而是获取绑定到llvm-3.1的版本。测试对象:

代码语言:javascript
复制
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.10
Release:        12.10
Codename:       quantal
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/15225365

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档