Skip to content

Can't build on OSX #6

@ruipacheco

Description

@ruipacheco

Got the following exception while building on OSX:

$ pip install smhasher
Downloading/unpacking smhasher
  Downloading smhasher-0.150.1.tar.gz (66kB): 66kB downloaded
  Running setup.py egg_info for package smhasher

Installing collected packages: smhasher
  Running setup.py install for smhasher
    building 'smhasher' extension
    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 -pipe -arch i386 -arch x86_64 -DMODULE_VERSION="0.150.1" -Ismhasher -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c smhasher.cpp -o build/temp.macosx-10.9-intel-2.7/smhasher.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
    Complete output from command /Users/ruipacheco/.virtualenvs/gedditreader/bin/python -c "import setuptools;__file__='/Users/ruipacheco/.virtualenvs/gedditreader/build/smhasher/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/j5/cnkzwr9n78n__t_2hzgrycv80000gn/T/pip-v2ZCrD-record/install-record.txt --single-version-externally-managed --install-headers /Users/ruipacheco/.virtualenvs/gedditreader/include/site/python2.7:
    running install

running build

running build_ext

building 'smhasher' extension

creating build

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

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

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 -pipe -arch i386 -arch x86_64 -DMODULE_VERSION="0.150.1" -Ismhasher -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c smhasher.cpp -o build/temp.macosx-10.9-intel-2.7/smhasher.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

----------------------------------------
Cleaning up...
Command /Users/ruipacheco/.virtualenvs/gedditreader/bin/python -c "import setuptools;__file__='/Users/ruipacheco/.virtualenvs/gedditreader/build/smhasher/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/j5/cnkzwr9n78n__t_2hzgrycv80000gn/T/pip-v2ZCrD-record/install-record.txt --single-version-externally-managed --install-headers /Users/ruipacheco/.virtualenvs/gedditreader/include/site/python2.7 failed with error code 1 in /Users/ruipacheco/.virtualenvs/gedditreader/build/smhasher
Storing complete log in /Users/ruipacheco/.pip/pip.log

Latest Xcode on latest OSX at the time of this writing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions