-
Notifications
You must be signed in to change notification settings - Fork 555
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
clang: error: unsupported option '-fopenmp' #16
Comments
Clang starts supporting openmp at some version. Works for me with clang on On Aug 3, 2016 11:00 AM, "Jouni Helminen" [email protected] wrote:
|
From my dealings with it, the clang on OSX is an Apple-customized one one that doesn't have OpenMP support. Changing the makefile or even the build system entirely (e.g. to cmake) doesn't help at all. As you have suggested yourself, the only way you can get around this issue is to get another compiler (latest clang or gcc) as well as their associated libraries and then try building the project again. |
Thanks @GitZChen ! I should add these to the readme. |
You are right, latest clang should have OpenMP support, but doesn't (yet) on MacOS. I installed Xcode 8 Beta 4 and it didn't include any updates to clang/LLVM version (but perhaps MacOS Sierra will). So after a bit of fiddling, here is how to successfully compile OpenPano on MacOS El Capitan:
|
For 3, you can maybe try using "brew ls gcc" to list all installed components in the gcc formula then determine the path of g++ binary. Also, in case anyone really wants to use clang instead of gcc, just substitute "gcc" with "llvm" and the path to "g++-6" with the path to the brew-installed "clang++" in the above instructions. Though @jounih, don't you still need libjpeg? |
Hi everyone, I am following this thread, and tried the method suggested by @jounih, compiling . However I got many of these errors: /var/folders/5_/k6wvp3594651b83cz4f_f4n80000gn/T//cc2ALrIr.s:1205:no such instruction: Did a quick look on Google, and looks like it is related to AVX on OSX problem. I've tried several methods suggested but no luck. Have you ever encountered this issue? My machine is an 2013 MBP with i5. I did a check and it does have AVX1.0. Thanks! |
Never encountered that problem before compiling GCC. Though isn't this question off-topic for OpenPano? Maybe you'll have better luck asking it on SO instead? |
How can I perform step 5 of jounih 's comment? |
I know this is a bit old, but just in case someone is still looking for the solution, I want to say that the solution given by @jounih fixed the same problem I had. Just make sure that you get the right path of '/usr/local/Cellar/gcc/6.1.0/bin/g++-6' for the export. By the time of commenting, mine was "export CXX="/usr/local/Cellar/gcc/7.2.0/bin/g++-7" |
In jounih's commented on Aug 4, 2016 • what is panorama ? where is /src ? |
what is above link referring to ? |
"src". |
Hello ppwwyyxx , I need to run step 5 as i stated above. |
Could you please help me run step 5 ? I did till 4. No clue about step 5 ? |
@ppwwyyxx dude, I did all 5 steps but it still is returning the error "unsupported option -fopenmp" :( After runing "make -C src" this is the error: make: Entering directory '/Users/gbrennon/Documents/Prog/Github/OpenPano/src'
[cc] lib/debugutils.cc ...
clang: error: unsupported option '-fopenmp'
make: *** [Makefile:71: obj/lib/debugutils.o] Error 1
make: Leaving directory '/Users/gbrennon/Documents/Prog/Github/OpenPano/src' Answering @tpsmahal step 5 can be executed with: "make -C src" |
hi, brew install gcc error: |
Hi, thanks for this great work.
I noticed it doesn't compile on OSX (using clang), "make" gives these errors:
[dep] third-party/lodepng/lodepng.cc ...
clang: error: unsupported option '-fopenmp'
[dep] stitch/warp.cc ...
clang: error: unsupported option '-fopenmp'
[dep] stitch/transform_estimate.cc ...
clang: error: unsupported option '-fopenmp'
[dep] stitch/stitcherbase.cc ...
clang: error: unsupported option '-fopenmp'
...and so on.
Compiling with gcc on Ubuntu (and probably OSX if installed gcc) works ok.
Any ideas what to fix in the makefile for clang?
The text was updated successfully, but these errors were encountered: