[llvm-dev] OpenMP Error in Clang

Chatterjee, Bodhisatwa via llvm-dev llvm-dev at lists.llvm.org
Tue May 26 18:29:21 PDT 2020


Hello,

I am getting the following error while trying to build a benchmark with a custom function pass:

clang  -Xclang -fopenmp=libomp -Xclang -load -Xclang my_lib.so file.c


 error: unknown argument: '-fopenmp=libomp'

If I use this instead:

clang  -Xclang -fopenmp=libomp -Xclang -load -Xclang my_lib.so file.c

I get the error:  fatal error: 'omp.h' file not found

I am not sure where the problem is, especially since I have used OpenMP applications with llvm before.

Thanks,
Bodhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200527/70899f4f/attachment.html>


More information about the llvm-dev mailing list