question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

clang -fopenmp error

See original GitHub issue

If you try to include omp.h to get for example omp_get_num_threads() clang does not find it.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
damageboycommented, Apr 15, 2020

I can report that clang trunk with #include <omp.h> now works for me on godbolt.org

1reaction
apmortoncommented, Apr 13, 2020

Just 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found