LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 764|回复: 1

[resloved]请问如何在/etc/portage/package.use中设置disable Python support for y

[复制链接]
发表于 2010-12-17 01:04:53 | 显示全部楼层 |阅读模式
emerge gnome 时出现dev-lang/yasm-1.1.0 编译失败:

......
/usr/bin/python -c "from Cython.Compiler.Main import main; main(command_line=1)" \
   -o yasm_python.c yasm.pyx
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/Main.py", line 790, in main
    result = compile(sources, options)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/Main.py", line 765, in compile
    return compile_multiple(source, options)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/Main.py", line 737, in compile_multiple
    result = run_pipeline(source, options)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/Main.py", line 601, in run_pipeline
    err, enddata = context.run_pipeline(pipeline, source)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/Main.py", line 240, in run_pipeline
    data = phase(data)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/ParseTreeTransforms.py", line 1025, in __call__
    return super(AnalyseDeclarationsTransform, self).__call__(root)      
  File "Visitor.py", line 272, in Cython.Compiler.Visitor.CythonTransform.__call__ (Cython/Compiler/Visitor.c:4936)
  File "Visitor.py", line 255, in Cython.Compiler.Visitor.VisitorTransform.__call__ (Cython/Compiler/Visitor.c:4696)
  File "Visitor.py", line 163, in Cython.Compiler.Visitor.TreeVisitor._visit (Cython/Compiler/Visitor.c:3254)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/ParseTreeTransforms.py", line 1033, in visit_ModuleNode
    node.analyse_declarations(self.env_stack[-1])
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/ModuleNode.py", line 64, in analyse_declarations
    self.body.analyse_declarations(env)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/Nodes.py", line 346, in analyse_declarations
    stat.analyse_declarations(env)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/Nodes.py", line 346, in analyse_declarations
    stat.analyse_declarations(env)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/Nodes.py", line 3249, in analyse_declarations
    self.body.analyse_declarations(scope)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/Nodes.py", line 346, in analyse_declarations
    stat.analyse_declarations(env)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/Nodes.py", line 1999, in analyse_declarations
    self.analyse_signature(env)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/Nodes.py", line 2097, in analyse_signature
    arg.hdr_type = sig.fixed_arg_type(i)
  File "/usr/lib64/python2.6/site-packages/Cython/Compiler/TypeSlots.py", line 100, in fixed_arg_type
    return self.format_map[self.fixed_arg_format]
KeyError: 'T'
make[2]: *** [yasm_python.c] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-lang/yasm-1.1.0/work/yasm-1.1.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-lang/yasm-1.1.0/work/yasm-1.1.0'
make: *** [all] Error 2
emake failed
* ERROR: dev-lang/yasm-1.1.0 failed:
*   emake failed
*
* Call stack:
*     ebuild.sh, line   56:  Called src_compile
*   environment, line 4955:  Called _eapi2_src_compile
*     ebuild.sh, line  654:  Called die
* The specific snippet of code:
*         emake || die "emake failed"
*
* If you need support, post the output of 'emerge --info =dev-lang/yasm-1.1.0',
* the complete build log and the output of 'emerge -pqv =dev-lang/yasm-1.1.0'.
* The complete build log is located at '/var/tmp/portage/dev-lang/yasm-1.1.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-lang/yasm-1.1.0/temp/environment'.
* S: '/var/tmp/portage/dev-lang/yasm-1.1.0/work/yasm-1.1.0'



在gentoo forums 找到一个建议是说需要将Python extension of yasm设置为disable.但我不知道需要在/etc/portage/package.use中添加什么内容。请大家帮忙解答一下
 楼主| 发表于 2010-12-17 01:45:57 | 显示全部楼层
解决了。在/etc/portage/package.use加入:
                    dev-lang/yasm  -python
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表