[Lldb-commits] [PATCH] D19685: Fix NetBSD build with CMake 3.5.2

Kamil Rytarowski via lldb-commits lldb-commits at lists.llvm.org
Sat Apr 30 17:23:56 PDT 2016


krytarowski added a comment.

In http://reviews.llvm.org/D19685#417911, @zturner wrote:

> Can't you just remove that line and let it inherit the minimum version from
>  LLVM?


It doesn't work.

  CMake Warning (dev) in CMakeLists.txt:
    No cmake_minimum_required command is present.  A line of code such as
  
      cmake_minimum_required(VERSION 3.5)
  
    should be added at the top of the file.  The version specified may be lower
    if you wish to support older CMake versions for this project.  For more
    information run "cmake --help-policy CMP0000".
  This warning is for project developers.  Use -Wno-dev to suppress it.
  
  -- Configuring done
  CMake Warning (dev) at /usr/pkg/lib/cmake/llvm/AddLLVM.cmake:403 (add_library):
    Policy CMP0003 should be set before this line.  Add code such as
  
      if(COMMAND cmake_policy)
        cmake_policy(SET CMP0003 NEW)
      endif(COMMAND cmake_policy)
  
    as early as possible but after the most recent call to
    cmake_minimum_required or cmake_policy(VERSION).  This warning appears
    because target "liblldb" links to some libraries for which the linker must
    search:
  
      edit, execinfo, kvm, rt, terminfo, pthread, z, m, execinfo
  
    and other libraries with known full path:
  
      /tmp/pkgsrc-tmp/wip/lldb-git/work/build/lib/liblldbBase.a
      /usr/lib/libcurses.so
      /tmp/pkgsrc-tmp/wip/lldb-git/work/.buildlink/lib/libpython2.7.so
  
    CMake is adding directories in the second list to the linker search path in
    case they are needed to find libraries from the first list (for backwards
    compatibility with CMake 2.4).  Set policy CMP0003 to OLD or NEW to enable
    or disable this behavior explicitly.  Run "cmake --help-policy CMP0003" for
    more information.
  Call Stack (most recent call first):
    cmake/modules/AddLLDB.cmake:59 (llvm_add_library)
    source/API/CMakeLists.txt:9 (add_lldb_library)
  This warning is for project developers.  Use -Wno-dev to suppress it.
  
  CMake Warning at /usr/pkg/lib/cmake/llvm/AddLLVM.cmake:403 (add_library):
    Cannot generate a safe linker search path for target liblldb because files
    in some directories may conflict with libraries in implicit directories:
  
      link library [libform.so] in /usr/lib may be hidden by files in:
        /usr/pkg/lib
  
    Some of these libraries may not be found correctly.
  Call Stack (most recent call first):
    cmake/modules/AddLLDB.cmake:59 (llvm_add_library)
    source/API/CMakeLists.txt:9 (add_lldb_library)
  
  
  CMake Warning at /usr/pkg/lib/cmake/llvm/AddLLVM.cmake:636 (add_executable):
    Cannot generate a safe linker search path for target lldb-server because
    files in some directories may conflict with libraries in implicit
    directories:
  
      link library [libform.so] in /usr/lib may be hidden by files in:
        /usr/pkg/lib

and many similar warnings...


Repository:
  rL LLVM

http://reviews.llvm.org/D19685





More information about the lldb-commits mailing list