[libcxx-dev] Building Parallel STL

Christopher Nelson via libcxx-dev libcxx-dev at lists.llvm.org
Sat Sep 19 04:37:59 PDT 2020


I downloaded the OpenMP parallel patch, modified the parallel backend
header, and the cmake files. Then I tried to build the project with:

 *cmake* -G Ninja -DLLVM_ENABLE_PROJECTS="libcxx;libcxxabi;pstl"
-DLIBCXX_ENABLE_PARALLEL_ALGORITHMS=ON -DPSTL_PARALLEL_BACKEND=omp  ../llv

m



This seems to turn on all the right stuff, but I get a surprising error at
the end that I'm not sure what to do with:


CMake Error at /home/csnelson/projects/llvm-project/pstl/CMakeLists.txt:34
(add_library):

  INTERFACE_LIBRARY targets may only have whitelisted properties.  The

  property "OUTPUT_NAME" is not allowed.



CMake Error at /home/csnelson/projects/llvm-project/pstl/CMakeLists.txt:34
(add_library):

  INTERFACE_LIBRARY targets may only have whitelisted properties.  The

  property "OUTPUT_NAME" is not allowed.



CMake Error at /home/csnelson/projects/llvm-project/pstl/CMakeLists.txt:34
(add_library):

  INTERFACE_LIBRARY targets may only have whitelisted properties.  The

  property "OUTPUT_NAME" is not allowed.



Any guidance would be helpful here. A full dump of the cmake output follows:



-- clang project is disabled

-- clang-tools-extra project is disabled

-- compiler-rt project is disabled

-- debuginfo-tests project is disabled

-- libc project is disabled

-- libclc project is disabled

-- libcxx project is enabled

-- libcxxabi project is enabled

-- libunwind project is disabled

-- lld project is disabled

-- lldb project is disabled

-- mlir project is disabled

-- openmp project is disabled

-- parallel-libs project is disabled

-- polly project is disabled

-- pstl project is enabled

-- flang project is disabled

-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)

-- Native target architecture is X86

-- Threads enabled.

-- Doxygen disabled.

-- Go bindings enabled.

-- Ninja version: 1.10.0

-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)


-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)


-- OCaml bindings disabled.

-- LLVM host triple: x86_64-unknown-linux-gnu

-- LLVM default target triple: x86_64-unknown-linux-gnu

-- Building with -fPIC

-- Constructing LLVMBuild project information

-- Targeting AArch64

-- Targeting AMDGPU

-- Targeting ARM

-- Targeting AVR

-- Targeting BPF

-- Targeting Hexagon

-- Targeting Lanai

-- Targeting Mips

-- Targeting MSP430

-- Targeting NVPTX

-- Targeting PowerPC

-- Targeting RISCV

-- Targeting Sparc

-- Targeting SystemZ

-- Targeting WebAssembly

-- Targeting X86

-- Targeting XCore

-- Parallel STL uses the omp backend

-- Libc++abi will be using libc++ includes from
/home/csnelson/projects/llvm-project/libcxxabi/../libcxx/include

-- Looking for cxxabi.h in
/home/csnelson/projects/llvm-project/libcxx/../libcxxabi/include

-- Looking for cxxabi.h in
/home/csnelson/projects/llvm-project/libcxx/../libcxxabi/include - found

-- Looking for __cxxabi_config.h in
/home/csnelson/projects/llvm-project/libcxx/../libcxxabi/include

-- Looking for __cxxabi_config.h in
/home/csnelson/projects/llvm-project/libcxx/../libcxxabi/include - found

-- Registering Bye as a pass plugin (static build: OFF)

-- Failed to find LLVM FileCheck

-- Version: 0.0.0

-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES -- failed to compile

-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile

-- Performing Test HAVE_POSIX_REGEX -- success

-- Performing Test HAVE_STEADY_CLOCK -- success

-- Configuring done

CMake Error at /home/csnelson/projects/llvm-project/pstl/CMakeLists.txt:34
(add_library):

  INTERFACE_LIBRARY targets may only have whitelisted properties.  The

  property "OUTPUT_NAME" is not allowed.



CMake Error at /home/csnelson/projects/llvm-project/pstl/CMakeLists.txt:34
(add_library):

  INTERFACE_LIBRARY targets may only have whitelisted properties.  The

  property "OUTPUT_NAME" is not allowed.



CMake Error at /home/csnelson/projects/llvm-project/pstl/CMakeLists.txt:34
(add_library):

  INTERFACE_LIBRARY targets may only have whitelisted properties.  The

  property "OUTPUT_NAME" is not allowed.



-- Generating done

CMake Generate step failed.  Build files cannot be regenerated correctly.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/libcxx-dev/attachments/20200919/926a3bff/attachment-0001.html>


More information about the libcxx-dev mailing list