【问题标题】:InvalidProtocolBufferException when trying to compile Bazel on 32bit Linux Mint尝试在 32 位 Linux Mint 上编译 Bazel 时出现 InvalidProtocolBufferException
【发布时间】:2021-10-15 19:20:53
【问题描述】:

我正在尝试在 32 位 Linux Mint 上编译 Bazel-0-19.2,以便我可以在机器上安装 tensorflow,但是在尝试编译 Bazel 时,我总是得到异常 google.protobuf.InvalidProtocolBufferException 和

错误: /home/laxle/Bazel-0-19.2/src/main/java/com/google/devtools/build/lib/skyframe/serialization/BUILD:11:1:Building src/main/java/com/google/devtools/ build/lib/skyframeserialization/libserialization.jar(53 个源文件)失败:工作进程返回了无法解析的 WorkResponse!

内部错误 (g1ConcurrentMark.cpp:1667),pid=375,tid=382

致命错误:引用处理期间溢出,无法继续。请增加 MarkStackSizeMax(当前值:2097152)并重新启动。

在运行编译命令之前,我在终端中尝试了 export BAZEL_JAVAC_OPTS="-J-Xmx1g" 和 BAZEL_JAVAC_OPTS="-J-Xms384m -J-Xmx512m" ,但都没有解决问题。我可以做些什么来安装 Bazel 或以其他方式在我的机器上运行 tensorflow?

【问题讨论】:

    标签: python tensorflow out-of-memory bazel linux-mint


    【解决方案1】:

    TensorFlow 在以下 64 位系统上经过测试和支持:

    Python 3.6–3.9
    Ubuntu 16.04 or later
    Windows 7 or later (with C++ redistributable)
    macOS 10.12.6 (Sierra) or later (no GPU support)
    

    按照Tensorflow doc 中提到的说明使用 Bazel 从源代码构建 Tensorflow

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-11-13
      • 1970-01-01
      • 1970-01-01
      • 2013-08-25
      • 1970-01-01
      • 2012-07-30
      • 1970-01-01
      相关资源
      最近更新 更多