[Openmp-dev] clang 9.0.0 + libstdc++ problem

Jost, Gabriele (ARC-TNC)[Supersmith] via Openmp-dev openmp-dev at lists.llvm.org
Wed Nov 27 12:16:01 PST 2019


Hello llvm developers!
I am trying to build the OpenMP runtime with clang 9.0.0. The clang compiler fails to find the libstdc++ library.
I specified the pathname, but it does not help.
I had to resort to configuring like this:
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="/nobackupnfs2/clang-install"\
-DCMAKE_C_COMPILER=/nobackupnfs2/clang-install/bin/clang\
-DCMAKE_CXX_COMPILER=/nobackupnfs2/clang-install/bin/clang++\
-DLIBOMPTARGET_DEP_LIBELF_LIBRARIES:FILEPATH=/usr/lib64/libelf.so.1 \
-DLLVM_LIBSTDCXX:FILEPATH=/usr/lib64/libstdc++.so.6\
-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON\
-DCLANG_OPENMP_NVPTX_DEFAULT_ARCH=sm_60 \
-DLIBOMPTARGET_NVPTX_COMPUTE_CAPABILITIES=35,60,70 ../llvm-9.0.0.src

Is there a way to tell clang to use the correct library? It complains that the library is too old, but I think it is because it does not find the right one.

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
************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20191127/d516f6ce/attachment.html>


More information about the Openmp-dev mailing list