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
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