Skip to content

Build error on OSX 10.11.6 #106

Closed
Closed

Description

@CarterLi
Building wheels for collected packages: greenlet
  Running setup.py bdist_wheel for greenlet ... error
  Complete output from command /usr/local/opt/python3/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/0n/gtd7xs3949zbvh5pz2c332zc0000gn/T/pip-build-16br7s7u/greenlet/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/0n/gtd7xs3949zbvh5pz2c332zc0000gn/T/tmpt2st0xsdpip-wheel- --python-tag cp35:
  running bdist_wheel
  running build
  running build_ext
  building 'greenlet' extension
  creating build
  creating build/temp.macosx-10.11-x86_64-3.5
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march native -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python3/3.5.2_1/Frameworks/Python.framework/Versions/3.5/include/python3.5m -c greenlet.c -o build/temp.macosx-10.11-x86_64-3.5/greenlet.o
  clang: error: unknown argument: '-march'
  clang: error: no such file or directory: 'native'
  error: command 'clang' failed with exit status 1

I believe that -march native should be -march=native

Activity

  1. snaury commented on Aug 4, 2016

    @snaury
    Contributor

    Greenlet is not passing any -march options to the compiler, you should file a bug with whatever Python distribution you are using. On my OSX 10.11.6 and homebrew I don't have any -march options anywhere:

    $ python3 setup.py build_ext
    running build_ext
    building 'greenlet' extension
    creating build
    creating build/temp.macosx-10.11-x86_64-3.5
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python3/3.5.2/Frameworks/Python.framework/Versions/3.5/include/python3.5m -c greenlet.c -o build/temp.macosx-10.11-x86_64-3.5/greenlet.o
    creating build/lib.macosx-10.11-x86_64-3.5
    clang -bundle -undefined dynamic_lookup -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk build/temp.macosx-10.11-x86_64-3.5/greenlet.o -L/usr/local/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -o build/lib.macosx-10.11-x86_64-3.5/greenlet.cpython-35m-darwin.so
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions