0

我可以访问一台大型 IBM Power8 机器(运行 Ubuntu),并希望在其上构建 Bazel。但是,当我尝试按照他们的安装说明进行操作时,我得到:

me@machine:~/bazel-0.1.5$ ./compile.sh
INFO: You can skip this first step by providing a path to the bazel binary as second argument:
INFO:    ./compile.sh compile /path/to/bazel
  Building Bazel from scratch.
Compiling Java stubs for protocol buffers...
third_party/protobuf/protoc-linux-x86_32.exe -Isrc/main/protobuf/ --java_out=/tmp/bazel.T9C83cNa/src src/main/protobuf/android_studio_ide_info.proto
scripts/bootstrap/buildenv.sh: line 63: third_party/protobuf/protoc-linux-x86_32.exe: cannot execute binary file: Exec format error
pv@sardonis:~/bazel-0.1.5$ ^C

显然,部分问题是编译器尝试使用 32 位编译器。我尝试了以下方法无济于事。

所以,我没有灵感了。如何在 IBM Power8 机器上编译 Bazel?

(PS:我已经将此作为解决在 IBM power8 上安装 TensorFlow 的一部分,所以这不是一个重复的问题,只是为了逐步解决它的一个方面。)

4

1 回答 1

0

您使用的 protobuf 版本必须与签入的 protobuf 运行时匹配。在这种情况下,即 protobuf-java-3.0.0-beta-1.jar [1],因此您必须使用编译器版本 3.0。 0-β-1。

(我在 Bazel 工作。)

[1] https://github.com/bazelbuild/bazel/tree/master/third_party/protobuf

于 2016-03-02T20:10:02.410 回答