Skip to content

Fix issues associated with Xcode 5.1#5

Closed
corydolphin wants to merge 2 commits intomasterfrom
patch/xcode5.1
Closed

Fix issues associated with Xcode 5.1#5
corydolphin wants to merge 2 commits intomasterfrom
patch/xcode5.1

Conversation

@corydolphin
Copy link
Owner

Should fix #4

@jamarparris
Copy link

Hey there:

I cloned the repo, checked out master and run "python setup.py build" I got an error. I then checked out patch/xcode5.1 and I got another error when I tried to import bcrypt. Both are below.

Error from master:

running build
running build_py
creating build
creating build/lib.macosx-10.9-intel-2.7
creating build/lib.macosx-10.9-intel-2.7/bcrypt
copying bcrypt/__init__.py -> build/lib.macosx-10.9-intel-2.7/bcrypt
running build_ext
building 'bcrypt._bcrypt' extension
creating build/temp.macosx-10.9-intel-2.7
creating build/temp.macosx-10.9-intel-2.7/bcrypt
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 bcrypt/bcrypt_python.c -o build/temp.macosx-10.9-intel-2.7/bcrypt/bcrypt_python.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

Error from patch/xcode5.1

running build
running build_py
running build_ext
building 'bcrypt._bcrypt' extension
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 bcrypt/bcrypt_python.c -o build/temp.macosx-10.9-intel-2.7/bcrypt/bcrypt_python.o -Wno-error=unused-command-line-argument-hard-error-in-future
clang: warning: 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
clang: warning: argument unused during compilation: '-mno-fused-madd'
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 bcrypt/blowfish.c -o build/temp.macosx-10.9-intel-2.7/bcrypt/blowfish.o -Wno-error=unused-command-line-argument-hard-error-in-future
clang: warning: 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
clang: warning: argument unused during compilation: '-mno-fused-madd'
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 bcrypt/bcrypt.c -o build/temp.macosx-10.9-intel-2.7/bcrypt/bcrypt.o -Wno-error=unused-command-line-argument-hard-error-in-future
clang: warning: 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
clang: warning: argument unused during compilation: '-mno-fused-madd'
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. build/temp.macosx-10.9-intel-2.7/bcrypt/bcrypt_python.o build/temp.macosx-10.9-intel-2.7/bcrypt/blowfish.o build/temp.macosx-10.9-intel-2.7/bcrypt/bcrypt.o -o build/lib.macosx-10.9-intel-2.7/bcrypt/_bcrypt.so

Attempt at import
Python 2.7.5 (default, Aug 25 2013, 00:04:04)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

import bcrypt
Traceback (most recent call last):
File "", line 1, in
File "bcrypt/init.py", line 26, in
from bcrypt._bcrypt import *
ImportError: No module named _bcrypt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix for users who cannot install on Mac due to XCode 5.1

2 participants