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

Unable to install package - error: unsupported option '-fopenmp' #90

Open
Lawiss opened this issue Mar 30, 2022 · 4 comments
Open

Unable to install package - error: unsupported option '-fopenmp' #90

Lawiss opened this issue Mar 30, 2022 · 4 comments

Comments

@Lawiss
Copy link

Lawiss commented Mar 30, 2022

Describe the bug
Hello,
I'm trying to install tsfresh==0.19.0 on my macOS 12.1 (arm) but the installation fail when installing matrixprofile, at build step with the folliwing error :

clang: error: unsupported option '-fopenmp'
      error: command '/usr/bin/clang' failed with exit code 1

I tried with python 3.8 and 3.9, same error.

To Reproduce
Steps to reproduce the behavior:

  1. Create a python 3.9 environment on macOS X 12.1 arm
  2. conda install llvmlite (pip install fails)
  3. pip install tsfresh
  4. See error

Expected behavior
tsfresh installation without errors.

Desktop (please complete the following information):

  • OS: macOS X 12.1
  • X Code Version 13.2.1
  • python 3.9 (conda env)
@jarhed
Copy link

jarhed commented Jul 29, 2022

I've fixed this by following the directions here to install gcc and whatnot through brew then forced gcc to compile using:

CC=gcc pip install matrixprofile

Kinda proud of myself, this is way outside my wheelhouse :)

@mdhanna
Copy link

mdhanna commented Aug 15, 2022

The solution above (CC=gcc pip install matrixprofile) did not work for me.

My problem was that I was attempting to install in a Python 3.10 environment and tsfresh only supports up to Python 3.9. I rolled my environment back to Python 3.9 and was able to install without any issues.

@traddo
Copy link

traddo commented Sep 19, 2022

vi setup.py
add

os.environ["CC"] = "/usr/local/Cellar/gcc/12.2.0/bin/g++-12"
os.environ["CXX"] = "/usr/local/Cellar/gcc/12.2.0/bin/g++-12"

add

language="c++",

into Extension(...)

@arresejo
Copy link

The solution I've found was to downgrade the Python version to 3.10.8 using pyenv in order to easily manage multiple Python versions (useful resource: https://opensource.com/article/19/5/python-3-default-mac).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants