Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

CMake configuration of llvm mono-repo fails #39528

Closed Quuxplusone closed 5 years ago

Quuxplusone commented 5 years ago
Bugzilla Link PR40557
Status RESOLVED FIXED
Importance P release blocker
Reported by Itaru Kitayama (itaru.kitayama@gmail.com)
Reported on 2019-01-31 19:05:31 -0800
Last modified on 2019-08-18 23:31:25 -0700
Version trunk
Hardware PC Linux
CC llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
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
Quuxplusone commented 5 years ago
$ ml

Currently Loaded Modules:
  1) lsf/10.1     (S)   3) gsl/2.4        5) gcc/7.2.0
  2) ninja/v1.8.2       4) cuda/9.2.148   6) cmake/3.12.3

  Where:
   S:  Module is Sticky, requires --force to unload or purge
Quuxplusone commented 5 years ago

I no longer see this in my build environment.