0.19.0 尝试在Ubuntu 16.04上构建Tensorflow时出现以下错误:
0.19.0
tensorflow multiple definition of 'pb_ostream_from_buffer' ... collect2: error: ld returned 1 exit status
... 表示窗体中的更多错误 multiple definition of '***'
...
multiple definition of '***'
巴泽尔 0.19.0 不再阅读 tools/bazel.rc . 文件中的一个选项( --define=grpc_no_ares=true )是需要的。
tools/bazel.rc
--define=grpc_no_ares=true
您可以将其包含在CLI中:
bazel build --define=grpc_no_ares=true --config=opt //tensorflow/tools/pip_package:build_pip_package
有关此问题的详细信息,请参阅 this GitHub issue .