Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Installation) Mac M1. python3.8 > Error : Building wheel for intbitset (setup.py) ... error #3169

Open
soimkim opened this issue Dec 7, 2022 · 0 comments
Labels
Milestone

Comments

@soimkim
Copy link
Contributor

soimkim commented Dec 7, 2022

Description

Even if I use Rosetta on Mac M1, it cannot be installed.

How To Reproduce

Mac M1, Python 3.8
$ pip install scancode-toolkit

Error Message :

Building wheels for collected packages: intbitset
  Building wheel for intbitset (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [33 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-11.0-arm64-cpython-38
      copying intbitset/intbitset_helper.py -> build/lib.macosx-11.0-arm64-cpython-38
      copying intbitset/intbitset_version.py -> build/lib.macosx-11.0-arm64-cpython-38
      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-11.0-arm64-cpython-38
      creating build/temp.macosx-11.0-arm64-cpython-38/intbitset
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/soim/mambaforge/envs/py38/include -arch arm64 -fPIC -O2 -isystem /Users/soim/mambaforge/envs/py38/include -arch arm64 -I/opt/homebrew/opt/openssl/include -I/Users/soim/mambaforge/envs/py38/include/python3.8 -c intbitset/intbitset.c -o build/temp.macosx-11.0-arm64-cpython-38/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: Failed building wheel for intbitset
  Running setup.py clean for intbitset
Failed to build intbitset
Installing collected packages: intbitset, html5lib, debut, cffi, binaryornot, Beautifulsoup4, rdflib, pymaven-patch, ftfy, fingerprints, dparse2, cryptography, commoncode, spdx-tools, plugincode, pdfminer.six, typecode, scancode-toolkit
  Running setup.py install for intbitset ... error
  error: subprocess-exited-with-error
  
  × Running setup.py install for intbitset did not run successfully.
  │ exit code: 1
  ╰─> [35 lines of output]
      running install
      /Users/soim/mambaforge/envs/py38/lib/python3.8/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-11.0-arm64-cpython-38
      copying intbitset/intbitset_helper.py -> build/lib.macosx-11.0-arm64-cpython-38
      copying intbitset/intbitset_version.py -> build/lib.macosx-11.0-arm64-cpython-38
      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-11.0-arm64-cpython-38
      creating build/temp.macosx-11.0-arm64-cpython-38/intbitset
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/soim/mambaforge/envs/py38/include -arch arm64 -fPIC -O2 -isystem /Users/soim/mambaforge/envs/py38/include -arch arm64 -I/opt/homebrew/opt/openssl/include -I/Users/soim/mambaforge/envs/py38/include/python3.8 -c intbitset/intbitset.c -o build/temp.macosx-11.0-arm64-cpython-38/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

× Encountered error while trying to install package.
╰─> intbitset


System configuration

For bug reports, it really helps us to know:

  • What OS are you running on? Mac M1 (MacOS 13.0.1)
  • What version of scancode-toolkit was used to generate the scan file? latest version
  • What installation method was used to install/run scancode? pip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants