2015-02-23 31 views
2

嗨,我得到的错误说clang: error: unknown argument: '-mno-fused-madd'当我试图在virtualenv命名kivyprogramming安装kivy得到错误MNO融合,MADD安装kivy中的virtualenv在鱼贝

cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -Wno-error=unused-command-line-argument-hard-error-in-future -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c /private/tmp/pip-build-UDRH26/kivy/kivy/graphics/texture.c -o build/temp.macosx-10.9-intel-2.7/private/tmp/pip-build-UDRH26/kivy/kivy/graphics/texture.o -F/Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks -arch x86_64 

    clang: error: unknown argument: '-mno-fused-madd' 

    error: command 'cc' failed with exit status 1 

即使我尝试使用:sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install kivy了上述clang: error: unknown argument: '-mno-fused-madd'

同样的错误我的gcc版本:

$gcc --version 
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn) 
Target: x86_64-apple-darwin13.1.0 
Thread model: posix 

也得到了错误编译用Cython文件

cythoning /private/var/folders/43/m1qv9zf53q19sqh6h9kg9pz80000gn/T/pip-build-Im9flX/kivy/kivy/graphics/texture.pyx to /private/var/folders/43/m1qv9zf53q19sqh6h9kg9pz80000gn/T/pip-build-Im9flX/kivy/kivy/graphics/texture.c 

    Error compiling Cython file: 
    ------------------------------------------------------------ 
    ... 
     cpdef release(self) 
     cpdef get_pixel_color(self, int wx, int wy) 
     cdef void create_fbo(self) 
     cdef void delete_fbo(self) 
     cdef void apply(self) 
        ^
    ------------------------------------------------------------ 

    kivy/graphics/fbo.pxd:25:19: Signature not compatible with previous declaration 

    Error compiling Cython file: 
    ------------------------------------------------------------ 
    ... 
     cdef void push_states(self, list names) except * 
     cdef void pop_state(self, str name) except * 
     cdef void pop_states(self, list names) except * 
     cdef void enter(self) except * 
     cdef void leave(self) except * 
     cdef void apply(self) except * 
        ^
    ------------------------------------------------------------ 

我应该继续使用fish shell作为预设t外壳烤kivy蛋糕还是我必须切换回bash外壳,这是我的OSX小牛默认?

回答

2

这是由cython 0.22中的一个明显错误引起的,我们还没有在kivy master中解决这个问题(不清楚什么是最好的,或者我们是否应该修复cython本身的部分问题)。你可以通过使用cython 0.21来解决它,或者在kivy的github存储库中有一个修复请求,如果你愿意手动构建源代码,你可以试试。

我不认为它与你使用鱼有什么关系,这可能只是与cython更新的巧合。

+0

也许你是对的,但我想通过解决方案进入安装。当我安装OSx Mavericks命令行工具时,问题出现了,所以我必须在我的'〜/ .bashrc'中添加以下行,即'export ARCHFLAGS =“ - Wno-error = unused-command-line-argument-hard未来的错误“,然后我已经从github克隆了最新的kivy,我进入该目录并运行'python setup.py install',它的上述错误信息仅作为警告消息出现,但安装成功。由于您也提供了makefile,因此当我尝试执行make install时,此技术无法使用。 – 2015-02-23 14:50:11