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

MacOS make "error clang: error: unsupported option '-fopenmp' #1

Open
liuedfie234 opened this issue Oct 6, 2018 · 2 comments
Open

Comments

@liuedfie234
Copy link

liuedfie234 commented Oct 6, 2018

Have you face
clang: error: unsupported option '-fopenmp'
issue after did these steps
cd src/math_utils/
mkdir build
cd build
cmake ..
make
The error message is
2018-10-06 9 04 26
I'm using macOS High Sierra
I don't know how to deal with it
Thanks!

@felja633
Copy link
Owner

felja633 commented Oct 6, 2018

I think you need to install openmp, unless there is a different flag for this on macOS. I have only tried this on ubuntu 18.04 so far

@arcsecw
Copy link

arcsecw commented Mar 6, 2019

modify build_pybind_modules.sh like blow worded for me
microsoft/LightGBM#3 (comment)
`
#!/bin/sh

This is a comment!

cd src/math_utils/
mkdir build
cd build
cmake -DCMAKE_CXX_COMPILER=g++-8 ..
make
cd ../../pcl_utils/
mkdir build
cd build
cmake -DCMAKE_CXX_COMPILER=g++-8 ..
make
cd ../../../

`

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

3 participants