Skip to content

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

@Lawiss

Description

@Lawiss

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)

Activity

jarhed

jarhed commented on Jul 29, 2022

@jarhed

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

mdhanna commented on Aug 15, 2022

@mdhanna

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

traddo commented on Sep 19, 2022

@traddo

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

arresejo commented on Nov 17, 2022

@arresejo

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

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

        Participants

        @jarhed@arresejo@mdhanna@Lawiss@traddo

        Issue actions

          Unable to install package - error: unsupported option '-fopenmp' · Issue #90 · matrix-profile-foundation/matrixprofile