Skip to content

Compile error - unsupported option '-fopenmp' #12

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

Open
george-githinji opened this issue Jul 18, 2019 · 2 comments
Open

Compile error - unsupported option '-fopenmp' #12

george-githinji opened this issue Jul 18, 2019 · 2 comments

Comments

@george-githinji
Copy link

I ran into the following error on Macos

cd mkmh && /Applications/Xcode.app/Contents/Developer/usr/bin/make
g++ -O3 -std=c++11 -fopenmp -mtune=native -ggdb -c HASHTCounter.cpp -Lmurmur3 -L. -I. -Imurmur3
clang: error: unsupported option '-fopenmp'
make[1]: *** [HASHTCounter.o] Error 1
make: *** [mkmh/libmkmh.a] Error 2

@george-githinji george-githinji changed the title Compile error Compile error - unsupported option '-fopenmp' Jul 18, 2019
@edawson
Copy link
Owner

edawson commented Jul 18, 2019

Hi @george-githinji ,

Clang doesn't support openmp in MacOS by default, and rkmh uses it extensively for threading. IF you install gcc (either with MacPorts or HomeBrew) then run make, it should work. You'll also need xcode installed. Sorry it is such a pain on Mac OS! I'm hoping to make it easier by putting things in homebrew or conda over the next few months.

@george-githinji
Copy link
Author

Thanks for the response! I will compile it with gcc. It compile on our linux hpc but I ran on to a different issue

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