<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - CMake configuration of llvm mono-repo fails"
   href="https://bugs.llvm.org/show_bug.cgi?id=40557">40557</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>CMake configuration of llvm mono-repo fails
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Build scripts
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>release blocker
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>cmake
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>itaru.kitayama@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>