代码之家  ›  专栏  ›  技术社区  ›  Alex

在构建Tensorflow时对“***”的多重定义

  •  0
  • Alex  · 技术社区  · 7 年前

    0.19.0 尝试在Ubuntu 16.04上构建Tensorflow时出现以下错误:

    tensorflow multiple definition of 'pb_ostream_from_buffer'
    ...
    collect2: error: ld returned 1 exit status
    

    ... 表示窗体中的更多错误 multiple definition of '***'

    1 回复  |  直到 7 年前
        1
  •  2
  •   Alex    7 年前

    巴泽尔 0.19.0 不再阅读 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 .

    推荐文章