-
Notifications
You must be signed in to change notification settings - Fork 62
clang: error: unsupported option '-fopenmp' on bundle install #298
-
Questions or suggestions
We are using Discussions for questions and suggestions for new features. Issues are only for bug reports.
Describe the bug
Unable to gem install.
clang: error: unsupported option '-fopenmp'
To Reproduce
bundle
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Mac OSX
Additional context
Add any other context about the problem here.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments
-
The apple provided clang compiler does not support this flag, if you use a newer version it should work:
brew install llvm libomp
Beta Was this translation helpful? Give feedback.
All reactions
-
This sounds like a long-standing issue with imagemagick. It adds -fopenmp
to the compile line of anything which links to it, but -fopenmp
is a gcc flag, so you can only build downstream projects with gcc.
Though I'm unsure why gem would be trying to build something that links to magick, you'd need to provide more information.
As @sled says, a newer clang would help too.
Beta Was this translation helpful? Give feedback.