0

尝试在 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$ 
4

1 回答 1

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。

于 2020-01-23T13:11:30.700 回答