[Openmp-commits] [PATCH] D108534: [OpenMP][Docs] add clang to LLVM_ENABLE_PROJECTS in build instructions

Uday Bondhugula via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Aug 24 04:04:59 PDT 2021


bondhugula added a comment.

In D108534#2961921 <https://reviews.llvm.org/D108534#2961921>, @JonChesterfield wrote:

> In D108534#2961579 <https://reviews.llvm.org/D108534#2961579>, @bondhugula wrote:
>
>> Seeing the discussion here, it looks like the official instructions to build LLVM openmp in-tree (at openmp.llvm.)org won't work for anyone? And it wasn't something in my cmake conf or setup.
>
> I'd guess cmake failing to find pthread is local to your system.

This would be strange because I do have it at /usr/include/pthread.h. Looking at the cmake error log pasted at https://bugs.llvm.org/show_bug.cgi?id=51579 the missing pthread.h error appears to be a symptom of something else but I'm not sure. I think the compile command being used there isn't right?

Determining if the include file pthread.h exists failed with the following output:
Change Dir: /home/uday/llvm-project-upstream/build/runtimes/runtimes-bins/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/ninja cmTC_f7224 && [1/2] Building C object CMakeFiles/cmTC_f7224.dir/CheckIncludeFile.c.o
FAILED: CMakeFiles/cmTC_f7224.dir/CheckIncludeFile.c.o 
/usr/bin/cc   -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wno-comment -fdiagnostics-color  -nostdinc++ -nostdlib++ -o CMakeFiles/cmTC_f7224.dir/CheckIncludeFile.c.o   -c CheckIncludeFile.c
cc: error: unrecognized command line option ‘-nostdlib++’; did you mean ‘-nostdlib’?
ninja: build stopped: subcommand failed.

It's using the wrong compiler?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108534/new/

https://reviews.llvm.org/D108534



More information about the Openmp-commits mailing list