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

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值