clang -fopenmp error
See original GitHub issueIf you try to include omp.h to get for example omp_get_num_threads()
clang does not find it.
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Fix the “Clang: Error: Unsupported Option '-Fopenmp'” Error
The “clang: error: unsupported option '-fopenmp'” error can appear because the clang doesn't support the -fopenmp flag and can be fixed by installing...
Read more >Enable OpenMP support in clang in Mac OS X (sierra & Mojave)
Try using Homebrew's llvm: brew install llvm. You then have all the llvm binaries in /usr/local/opt/llvm/bin . Compile the OpenMP Hello ...
Read more >error: unsupported option '-fopenmp' · Issue #789 - GitHub
When I try to install the package on the MacOS according to the guidance, it showed the following error. c++ -g -O3 -std=c++11...
Read more >clang error during compiling on Mac - Google Groups
I have this error during compilation in my mac. ... errorclang: : unsupported option '-fopenmp'clangunsupported option '-fopenmp': error: unsupported option ...
Read more >Installation Issue: unsupported option: '-fopenmp' - openCARP
Hi all, I am having an installation error with opencarp where when I try to build using cmake I ... know if anyone...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can report that clang trunk with
#include <omp.h>
now works for me on godbolt.orgJust FYI, that now lives at https://github.com/compiler-explorer/clang-builder/blob/master/build/build.sh
I don’t see any issues with adding that to see if it resolves this issue. At bare minimum it will take effect for the daily trunk builds. If it resolves the issue we could discuss recompiling old clang versions with it enabled.