wbolster / plyvel

Plyvel, a fast and feature-rich Python interface to LevelDB
https://plyvel.readthedocs.io/
Other
530 stars 75 forks source link

OSX Mavericks build error #30

Closed derrickpelletier closed 10 years ago

derrickpelletier commented 10 years ago

Getting this error with sudo pip install plyvel OS X 10.9

Thanks!

building 'plyvel._plyvel' extension

creating build/temp.macosx-10.9-intel-2.7

creating build/temp.macosx-10.9-intel-2.7/plyvel

cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -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 -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c plyvel/_plyvel.cpp -o build/temp.macosx-10.9-intel-2.7/plyvel/_plyvel.o -Wall -g

clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]

clang: note: this will be a hard error (cannot be downgraded to a warning) in the future

error: command 'cc' failed with exit status 1
wbolster commented 10 years ago

This seems caused by setuptools/clang on OSX having different defaults than the ones used to compile Python. See http://stackoverflow.com/questions/22313407/clang-error-unknown-argument-mno-fused-madd-python-package-installation-fa for more information.

derrickpelletier commented 10 years ago

Thanks, for the link. Solution that worked for me was removing the failing flag from _sysconfigdata.py I have no idea if this is a safe solution, but the others didn't work for me.

Seems this is in apple's court to fix.