[cfe-dev] OpenMP header path?

Finkel, Hal J. via cfe-dev cfe-dev at lists.llvm.org
Wed Feb 6 13:00:02 PST 2019


Hi, Eugene,

Have you built and installed LLVM's OpenMP runtime library? Even when
using GCC's libstdc++, you should be using LLVM's OpenMP runtime and
LLVM's omp.h.

 -Hal

On 2/5/19 3:48 PM, Eugene Zelenko via cfe-dev wrote:
> Hi!
>
> I'm trying to build file with enabled OpenMP support by trunk Clang
> with GCC STL. Compilation is failing because of:
>
> fatal error: 'omp.h' file not found
> #include <omp.h>
>
> Clang options:
>
> -stdlib=libstdc++ --gcc-toolchain=<GCC 6.3.0 path> -fopenmp
>
> Search path reported by -v:
>
> #include <...> search starts here:
>
> <GCC 6.3.0 path>/lib/gcc/x86_64-redhat-linux/6.3.0/../../../../include/c++/6.3.0
> <GCC 6.3.0 path>/lib/gcc/x86_64-redhat-linux/6.3.0/../../../../include/c++/6.3.0/x86_64-redhat-linux/32
> <GCC 6.3.0 path>/lib/gcc/x86_64-redhat-linux/6.3.0/../../../../include/c++/6.3.0/backward
>
> Location of omp.h:
>
> <GCC 6.3.0 path>/lib/gcc/x86_64-redhat-linux/6.3.0/include/omp.h
>
> Eugene.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev

-- 
Hal Finkel
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory



More information about the cfe-dev mailing list