inveniosoftware-contrib / intbitset

Python C-based extension implementing fast integer bit sets
https://intbitset.readthedocs.io
GNU Lesser General Public License v3.0
22 stars 18 forks source link

Native arm64 build is broken due forced core2 arch #83

Closed heliocastro closed 2 years ago

heliocastro commented 2 years ago

When try compile intbitset, or wheel binding generation, forced --arch=core2 prevents to buld the code when running in native arm64 platform. Valid for both linux/arm64 or Apple Silicon arm64

Reference: clang: error: the clang compiler does not support '-march=core2'

Full snippet

  × Running setup.py install for intbitset did not run successfully.
  │ exit code: 1
  ╰─> [35 lines of output]
      running install
      /opt/homebrew/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build/lib.macosx-12-arm64-cpython-310
      copying intbitset/intbitset_helper.py -> build/lib.macosx-12-arm64-cpython-310
      copying intbitset/intbitset_version.py -> build/lib.macosx-12-arm64-cpython-310
      running egg_info
      writing intbitset/intbitset.egg-info/PKG-INFO
      writing dependency_links to intbitset/intbitset.egg-info/dependency_links.txt
      writing requirements to intbitset/intbitset.egg-info/requires.txt
      writing top-level names to intbitset/intbitset.egg-info/top_level.txt
      reading manifest file 'intbitset/intbitset.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching '*.css' under directory 'docs/_themes'
      warning: no files found matching '*.css_t' under directory 'docs/_themes'
      warning: no files found matching '*.conf' under directory 'docs/_themes'
      warning: no files found matching '*.html' under directory 'docs/_themes'
      warning: no files found matching 'COPYING' under directory 'docs/_themes'
      warning: no files found matching 'README' under directory 'docs/_themes'
      warning: no files found matching '*.html' under directory 'docs/_templates'
      adding license file 'LICENSE'
      adding license file 'README.rst'
      adding license file 'CHANGES.rst'
      adding license file 'RELEASE-NOTES.rst'
      writing manifest file 'intbitset/intbitset.egg-info/SOURCES.txt'
      running build_ext
      building 'intbitset' extension
      creating build/temp.macosx-12-arm64-cpython-310
      creating build/temp.macosx-12-arm64-cpython-310/intbitset
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c intbitset/intbitset.c -o build/temp.macosx-12-arm64-cpython-310/intbitset/intbitset.o -O3 -march=core2 -mtune=native
      clang: error: the clang compiler does not support '-march=core2'
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
heliocastro commented 2 years ago

Bug is not relevant. Transient dependency used is a too old intbitset ( 2.4.x ) Closing this as invalid