[Openmp-dev] Building OpenMP on Mac usiing Clang

Abid Malik via Openmp-dev openmp-dev at lists.llvm.org
Sun Dec 29 03:42:13 PST 2019


Thanks, Alexey.

It works.

On Sat, Dec 28, 2019 at 10:21 AM Alexey Bataev <a.bataev at outlook.com> wrote:

> Hi, your clang does not see default paths. Use -I option to provide the
> path to
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
> or rebuild your clang with correct info for include search paths.
>
> -------------
> Best regards,
> Alexey Bataev
>
> 28.12.2019 9:49 AM, Abid Malik via Openmp-dev пишет:
>
> Hello,
>
> I am trying to build OpenMP for LLVM on Mac. I was able to
> successfully build Clang from the source. However, I am getting the
> following error message during the OpenMP build: I used the my own Clang
> (the one I build) for OpenML build
>
> make
> [  2%] Generating kmp_i18n_id.inc
> [  5%] Generating kmp_i18n_default.inc
> [  5%] Built target libomp-needed-headers
> Scanning dependencies of target omp
> [  8%] Building C object
> runtime/src/CMakeFiles/omp.dir/thirdparty/ittnotify/ittnotify_static.c.o
> [ 11%] Building CXX object runtime/src/CMakeFiles/omp.dir/kmp_alloc.cpp.o
> In file included from
> /Users/abidmalik/Programming/LLVM/openmp-8.0.0.src/runtime/src/kmp_alloc.cpp:14:
> In file included from
> /Users/abidmalik/Programming/LLVM/openmp-8.0.0.src/runtime/src/kmp.h:78:
> /Users/abidmalik/Programming/LLVM/openmp-8.0.0.src/runtime/src/kmp_os.h:19:10:
> fatal error: 'atomic' file not found
> #include <atomic>
>          ^~~~~~~~
> 1 error generated.
> make[2]: *** [runtime/src/CMakeFiles/omp.dir/kmp_alloc.cpp.o] Error 1
> make[1]: *** [runtime/src/CMakeFiles/omp.dir/all] Error 2
> make: *** [all] Error 2
>
>
> Thanks,
>
> --
> Abid M. Malik
> ******************************************************
> "I have learned silence from the talkative, toleration from the
> intolerant, and kindness from the unkind"---Gibran
> "Success is not for the chosen few, but for the few who choose" --- John
> Maxwell
> "Being a good person does not depend on your religion or status in life,
> your race or skin color, political views or culture. IT DEPENDS ON HOW GOOD
> YOU TREAT OTHERS"--- Abid
> "The Universe is talking to us, and the language of the Universe is
> mathematics."----Abid
>
>
> _______________________________________________
> Openmp-dev mailing listOpenmp-dev at lists.llvm.orghttps://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev
>
>

-- 
Abid M. Malik
******************************************************
"I have learned silence from the talkative, toleration from the intolerant,
and kindness from the unkind"---Gibran
"Success is not for the chosen few, but for the few who choose" --- John
Maxwell
"Being a good person does not depend on your religion or status in life,
your race or skin color, political views or culture. IT DEPENDS ON HOW GOOD
YOU TREAT OTHERS"--- Abid
"The Universe is talking to us, and the language of the Universe is
mathematics."----Abid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20191229/f45371c5/attachment.html>


More information about the Openmp-dev mailing list