2

I am using the Macbook pro M1.

I have a python package that I am trying to install which is compiling c files and has the setup.py file as

                 sources = ['*.c'],
                 include_dirs=['##Directory Name##'],
                 extra_compile_args=['-fopenmp'],
                 extra_link_args=['-lgomp'])

I have seen solutions online that say to invoke gcc-[version] but how do I build this file? If you have any solutions for a beginner to follow, please let me know.

I keep getting clang: error: unsupported option '-fopenmp'

Thanks

1 Answer 1

1

If you have homebrew installed in your mac, then do the following:

brew install libomp
Sign up to request clarification or add additional context in comments.

1 Comment

I have done that, but now it gives clang-13: error: linker command failed with exit code 1 (use -v to see invocation)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.