gcc llvm lld

1.CMake Error: The source directory does not appear to contain CMakeLists.txt.

      在执行cmake时没有切换到lld的源码目录导而是在llvm中导致了这个错误,切换到lld的源码目录重新执行cmake命令即可

2.错误码:CMake Error at CMakeLists.txt:5 (string):
  string sub-command REGEX, mode MATCH needs at least 5 arguments total to
  command.


-- LLD version:
CMake Error at CMakeLists.txt:9 (string):
  string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
  command.


CMake Error at CMakeLists.txt:11 (string):
  string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
  command.


CMake Error at CMakeLists.txt:48 (message):
  In-source builds are not allowed.  CMake would overwrite the makefiles
  distributed with LLVM.  Please create a directory and run cmake from there,
  passing the path to this source directory as the last argument.  This
  process created the file `CMakeCache.txt' and the directory `CMakeFiles'.
  Please delete them.


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.2)

  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 incomplete, errors occurred!
See also "/home/wangkun/llvm-in-total/llvm/lld/CMakeFiles/CMakeOutput.log".


http://glx-dock.org/bg_topic.php?t=5733

你可能感兴趣的:(gcc llvm lld)