Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

OSX CLANG Hard Error #73

Closed
rinchen opened this issue May 4, 2014 · 4 comments
Closed

OSX CLANG Hard Error #73

rinchen opened this issue May 4, 2014 · 4 comments

Comments

@rinchen
Copy link

rinchen commented May 4, 2014

Hi,

Installing with pip on OS X 10.9.2 abends with the following error:


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

cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -Wall -Wstrict-prototypes -Wshorten-64-to-32 -fwrapv -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/MD2.c -o build/temp.macosx-10.9-intel-2.7/src/MD2.o

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

@berkerpeksag
Copy link
Collaborator

Could you try to install pycrypto with the following command?

ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install pycrypto

https://stackoverflow.com/questions/19617686/trying-to-install-pycrypto-on-mac-osx-mavericks/22424999#22424999

@avignat
Copy link

avignat commented May 5, 2014

To fix this on Mac OS 10.9.2 I did :

sudo port install gmp
sudo ln -s  /opt/local/lib/libgmp.dylib  /usr/lib/libgmp.dylib
ARCHFLAGS=-Wno-error CFLAGS=-I/opt/local/include sudo -E pip install pycrypto 

Source : https://stackoverflow.com/questions/19617686/trying-to-install-pycrypto-on-mac-osx-mavericks/22424999#22424999

@rinchen
Copy link
Author

rinchen commented May 5, 2014

@berkerpeksag 's suggestion did allow me to install but with some warnings. I installed the crypto first and then did a sudo pip install stormssh


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
==========================================================================
WARNING: The C extension could not be compiled, speedups are not enabled.
Failure information, if any, is above.
Retrying the build without the C extension now.

==========================================================================
WARNING: The C extension could not be compiled, speedups are not enabled.
Plain-Python installation succeeded.
==========================================================================

Successfully installed stormssh markupsafe

@berkerpeksag
Copy link
Collaborator

markupsafe is only using by the web interface, so it looks fine to me :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants