[llvm-bugs] [Bug 40557] New: CMake configuration of llvm mono-repo fails

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jan 31 19:05:31 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=40557

            Bug ID: 40557
           Summary: CMake configuration of llvm mono-repo fails
           Product: Build scripts
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: itaru.kitayama at gmail.com
                CC: llvm-bugs at lists.llvm.org

As of this writing, simple CMake of mono-repo fails:

$ cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/tmp
$PROJECT/pcp0151/projects/llvm-project
-- Native target architecture is PowerPC
-- Threads enabled.
-- Doxygen disabled.
/gpfs/software/opt/gcc/8.1.0/bin/go: error while loading shared libraries:
libgo.so.13: cannot open shared object file: No such file or directory
-- Go bindings disabled, need at least Go 1.2.
-- 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.
-- Could NOT find Python module pygments
-- Could NOT find Python module pygments.lexers.c_cpp
-- Could NOT find Python module yaml
-- LLVM host triple: powerpc64le-unknown-linux-gnu
-- LLVM default target triple: powerpc64le-unknown-linux-gnu
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- Linker detection: GNU ld
-- Targeting AArch64
-- Targeting AMDGPU
-- Targeting ARM
-- Targeting BPF
-- Targeting Hexagon
-- Targeting Lanai
-- Targeting Mips
-- Targeting MSP430
-- Targeting NVPTX
-- Targeting PowerPC
-- Targeting Sparc
-- Targeting SystemZ
-- Targeting WebAssembly
-- Targeting X86
-- Targeting XCore
CMake Warning (dev) at
../openmp/libomptarget/cmake/Modules/LibomptargetGetDependencies.cmake:117
(find_package):
  Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
  Run "cmake --help-policy CMP0074" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  Environment variable CUDA_ROOT is set to:

    /gpfs/software/opt/cuda/9.2.148

  For compatibility, CMake is ignoring the variable.
Call Stack (most recent call first):
  ../openmp/libomptarget/CMakeLists.txt:30 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- LIBOMPTARGET: Building offloading runtime library libomptarget.
-- LIBOMPTARGET: Not building aarch64 offloading plugin: machine not found in
the system.
-- LIBOMPTARGET: Building CUDA offloading plugin.
-- LIBOMPTARGET: Not building PPC64 offloading plugin: machine not found in the
system.
-- LIBOMPTARGET: Building PPC64le offloading plugin.
-- LIBOMPTARGET: Not building x86_64 offloading plugin: machine not found in
the system.
-- LIBOMPTARGET: Building CUDA offloading device RTL.
-- LIBOMPTARGET: Building CUDA LLVM bitcode offloading device RTL.
-- git Version: v0.0.0
-- 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 cmake/modules/AddLLVM.cmake:1364 (add_dependencies):
  The dependency target "clang" of target "check-all" does not exist.
Call Stack (most recent call first):
  CMakeLists.txt:928 (add_lit_target)


CMake Error at cmake/modules/AddLLVM.cmake:1364 (add_dependencies):
  The dependency target "clang-headers" of target "check-all" does not exist.
Call Stack (most recent call first):
  CMakeLists.txt:928 (add_lit_target)


CMake Error at cmake/modules/AddLLVM.cmake:1364 (add_dependencies):
  The dependency target "clang" of target "check-openmp" does not exist.
Call Stack (most recent call first):
  cmake/modules/AddLLVM.cmake:1385 (add_lit_target)
  ../openmp/cmake/OpenMPTesting.cmake:167 (add_lit_testsuite)
  ../openmp/cmake/OpenMPTesting.cmake:182 (add_openmp_testsuite)
  ../openmp/CMakeLists.txt:83 (construct_check_openmp_target)


CMake Error at cmake/modules/AddLLVM.cmake:1364 (add_dependencies):
  The dependency target "clang-headers" of target "check-openmp" does not
  exist.
Call Stack (most recent call first):
  cmake/modules/AddLLVM.cmake:1385 (add_lit_target)
  ../openmp/cmake/OpenMPTesting.cmake:167 (add_lit_testsuite)
  ../openmp/cmake/OpenMPTesting.cmake:182 (add_openmp_testsuite)
  ../openmp/CMakeLists.txt:83 (construct_check_openmp_target)


CMake Error at cmake/modules/AddLLVM.cmake:1364 (add_dependencies):
  The dependency target "clang" of target "check-libomp" does not exist.
Call Stack (most recent call first):
  cmake/modules/AddLLVM.cmake:1385 (add_lit_target)
  ../openmp/cmake/OpenMPTesting.cmake:167 (add_lit_testsuite)
  ../openmp/runtime/test/CMakeLists.txt:33 (add_openmp_testsuite)


CMake Error at cmake/modules/AddLLVM.cmake:1364 (add_dependencies):
  The dependency target "clang-headers" of target "check-libomp" does not
  exist.
Call Stack (most recent call first):
  cmake/modules/AddLLVM.cmake:1385 (add_lit_target)
  ../openmp/cmake/OpenMPTesting.cmake:167 (add_lit_testsuite)
  ../openmp/runtime/test/CMakeLists.txt:33 (add_openmp_testsuite)


CMake Error at cmake/modules/AddLLVM.cmake:1364 (add_dependencies):
  The dependency target "clang" of target "check-libomptarget-nvptx" does not
  exist.
Call Stack (most recent call first):
  cmake/modules/AddLLVM.cmake:1385 (add_lit_target)
  ../openmp/cmake/OpenMPTesting.cmake:167 (add_lit_testsuite)
  ../openmp/libomptarget/deviceRTLs/nvptx/test/CMakeLists.txt:14
(add_openmp_testsuite)


CMake Error at cmake/modules/AddLLVM.cmake:1364 (add_dependencies):
  The dependency target "clang-headers" of target "check-libomptarget-nvptx"
  does not exist.
Call Stack (most recent call first):
  cmake/modules/AddLLVM.cmake:1385 (add_lit_target)
  ../openmp/cmake/OpenMPTesting.cmake:167 (add_lit_testsuite)
  ../openmp/libomptarget/deviceRTLs/nvptx/test/CMakeLists.txt:14
(add_openmp_testsuite)


CMake Error at cmake/modules/AddLLVM.cmake:1364 (add_dependencies):
  The dependency target "clang" of target "check-libomptarget" does not
  exist.
Call Stack (most recent call first):
  cmake/modules/AddLLVM.cmake:1385 (add_lit_target)
  ../openmp/cmake/OpenMPTesting.cmake:167 (add_lit_testsuite)
  ../openmp/libomptarget/test/CMakeLists.txt:15 (add_openmp_testsuite)


CMake Error at cmake/modules/AddLLVM.cmake:1364 (add_dependencies):
  The dependency target "clang-headers" of target "check-libomptarget" does
  not exist.
Call Stack (most recent call first):
  cmake/modules/AddLLVM.cmake:1385 (add_lit_target)
  ../openmp/cmake/OpenMPTesting.cmake:167 (add_lit_testsuite)
  ../openmp/libomptarget/test/CMakeLists.txt:15 (add_openmp_testsuite)


-- Generating done
-- Build files have been written to:
/p/project/cpcp0/pcp0151/projects/llvm-project

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190201/2e1e4593/attachment-0001.html>


More information about the llvm-bugs mailing list