得到错误mno-fused-madd在虚拟环境中安装kivy over fish shell

时间:2015-02-23 12:45:44

标签: xcode5 clang llvm osx-mavericks kivy

当我尝试在名为 kivyprogramming clang: error: unknown argument: '-mno-fused-madd'中安装 kivy 时,我收到错误virtualenv。< / p>

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 kivyclang: 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作为烘焙kivy蛋糕的默认shell吗?还是我必须切换回我的OSx mavericks默认的bash shell?

1 个答案:

答案 0 :(得分:2)

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

我认为这与使用鱼没有任何关系,这可能只是与cython更新的巧合。