[Openmp-dev] clang 9.0.0 and OpenMP target offload

Alexey Bataev via Openmp-dev openmp-dev at lists.llvm.org
Mon Nov 25 17:08:03 PST 2019


Hi Gabeiele, do you get this when you try to build the compiler or your code?

Best regards,
Alexey Bataev

25 нояб. 2019 г., в 19:38, Jost, Gabriele (ARC-TNC)[Supersmith] via Openmp-dev <openmp-dev at lists.llvm.org> написал(а):


Hello LLVM developers,
I am trying to build clang 9.0.0 with gcc8.2 and cuda 10.1 I am basically following the blog here:
https://www.hahnjo.de/blog/2018/10/08/clang-7.0-openmp-offloading-nvidia.html
Except with more recent software.
I keep getting this error:

In file included from /nasa/pkgsrc/sles12/2018Q3/gcc8/include/c++/stdlib.h:36,
                 from /nobackupnfs2/gjost/llvm-9.0.0.src/projects/compiler-rt/lib/gwp_asan/optional/backtrace_linux_libc.cpp:13:
/nasa/sles12/2018Q3/gcc8/include/c++/cstdlib:41:10: fatal error: bits/c++config.h: No such file or directory
#include <bits/c++config.h>

I tried to the path where the include file lives like this:
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INCLUDE_PATH="${CMAKE_INCLUDE_PATH}:/nasa/gcc8/include/c++/x86_64-unknown-linux:/nasa/sles12/include/libelf"\
-DCMAKE_INSTALL_PREFIX="/nobackupnfs2/clang-install"\
-DCMAKE_C_COMPILER=gcc\
-DCMAKE_C_FLAGS=" -I/nasa/gcc8/include/c++/x86_64-unknown-linux:/nasa/sles12/include/libelf/"\
-DCMAKE_CXX_COMPILER="g++ " \
-DCMAKE_CXX_FLAGS=" -I/nasa/gcc8/include/c++/x86_64-unknown-linux:/nasa/sles12/include/libelf/"
\
-DCLANG_OPENMP_NVPTX_DEFAULT_ARCH=sm_60 \
-DLIBOMPTARGET_NVPTX_COMPUTE_CAPABILITIES=35,60,70 ../llvm-9.0.0.src

Have others experienced similar issues? Thanks in advance for helping me out,

Gabriele Jost

************************************************************************
Gabriele Jost       NASA Ames Research Center
Email: Gabriele.Jost at nasa.gov    Mail Stop 258-6
Work Phone: (650) 604-0468     Bldg. 258, Rm. 232-4
Scientific & HPC Application        P.O. Box 1
Development/Optimization         Moffett Field, CA 94035-0001
************************************************************************
_______________________________________________
Openmp-dev mailing list
Openmp-dev at lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20191126/6e4bf6d9/attachment-0001.html>


More information about the Openmp-dev mailing list