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

Getting clang: error: unsupported option '-fopenmp' when installing with pip on M1 mac #7

Closed
ulfaslakprecis opened this issue Dec 21, 2022 · 1 comment

Comments

@ulfaslakprecis
Copy link

Hi!

I'm eager to try this library out. Unfortunately I get an error upon installation:

clang: error: unsupported option '-fopenmp'
  • I updated llvm using homebrew (did not solve the problem).

  • clang --help | grep fopenmp returns

      -fopenmp                Parse OpenMP pragmas and generate parallel code.
    

so it's just strange that this argument is not recognized during installation.

Any idea how to solve this?

My specs are:

Apple M1 Pro (2021)
MacOS 12.5.1
Python 3.10
@salimamoukou
Copy link
Owner

Hi !

Did you try this recommendation in the Installation section of the readme?

OSX: ACV uses Cython extensions that need to be compiled with multi-threading support enabled. The default Apple Clang compiler does not support OpenMP. To solve this issue, obtain the lastest gcc version with Homebrew that has multi-threading enabled: see for example pysteps installation for OSX.

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

2 participants