Macos无法识别C / C ++编译器,因为编译失败

时间:2020-01-10 15:48:15

标签: drake

尝试在Drake macos 10.14.6上编译时出现此错误。我已经运行了安装脚本。

挡板:2.0.0

德雷克0.11.0

lawn-143-215-113-3:drake tdogb$ bazel build //...
INFO: Call stack for the definition of repository 'cc' which is a cc_repository (rule definition at /Users/tdogb/drake/tools/workspace/cc/repository.bzl:147:1
7):
 - /Users/tdogb/drake/tools/workspace/default.bzl:110:9
 - /Users/tdogb/drake/WORKSPACE:10:1
ERROR: An error occurred during the fetch of repository 'cc':
   attribute : Could NOT identify C/C++ compiler because compilation failed.
ERROR: no such package '@cc//': attribute : Could NOT identify C/C++ compiler because compilation failed.
INFO: Elapsed time: 0.221s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
    currently loading: attic/util ... (145 packages)
lawn-143-215-113-3:drake tdogb$ 

1 个答案:

答案 0 :(得分:0)

https://drake.mit.edu/release_notes/release_notes.html依赖项列表中可以看出,Drake 0.11.0可能与Bazel 2.0.0不兼容。尝试使用Bazel 1.1.0或1.0.0。