在32位Linux上编译Tensorflow和Bazel

2024-06-06 14:39:21 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在我的Debian 32位上编译bazel。 我用这个命令开始了这个过程:

env EXTRA_BAZEL_ARGS="--host_javabase=@local_jdk//:jdk" BAZEL_JAVAC_OPTS="-J-Xms384m -J-Xmx512m" bash ./compile.sh

我得到一个错误:

    In file included from external/com_google_protobuf/src/google/protobuf/message.h:122,
                 from external/com_google_protobuf/src/google/protobuf/descriptor.pb.h:29,
                 from external/com_google_protobuf/src/google/protobuf/descriptor.cc:52:
external/com_google_protobuf/src/google/protobuf/descriptor.h:1283:26: note: 'class google::protobuf::FileDescriptor' declared here
 class LIBPROTOBUF_EXPORT FileDescriptor {
                   ^~~~~~~~~~~~~~
    At global scope:
    cc1plus: warning: unrecognized command line option '-Wno-writable-strings'
    ERROR: /path/to/bazel/third_party/BUILD:535:1: Executing genrule //third_party:filter_netty_dynamic_libs failed (Exit 12)

    zip error: Nothing to do! (bazel-out/piii-opt/bin/third_party/netty_tcnative/netty-tcnative-filtered.jar)
    Target //src:bazel_nojdk failed to build
    INFO: Elapsed time: 1173,794s, Critical Path: 37,45s
    INFO: 976 processes: 976 local.
    FAILED: Build did NOT complete successfully

    ERROR: Could not build Bazel

我找了一会儿。。。但什么都没有。。。 你知道吗?你知道吗

我遵循了https://docs.bazel.build/versions/master/install-compile-source.html上的官方指示


Tags: tofrombuildsrccompartylocalgoogle