我可以访问一台大型 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 位编译器。我尝试了以下方法无济于事。
third_party/protobuf/protoc-linux-x86_32.exe
用的副本替换third_party/protobuf/protoc-linux-x86_64.exe
。这给出了同样的错误。third_party/protobuf/protoc-linux-x86_32.exe
用我的发行版附带的符号链接替换/usr/local/bin/protoc
(这是libprotoc 3.0.0
根据的版本protoc --version
)。然而,这给出了大量的错误: http: //pastebin.com/HN0MQiC4- 按照http://www.cnblogs.com/rodenpark/p/5007744.html上的说明从源代码编译 Protobuf,然后使用http://www.cnblogs.com/rodenpark/p/5007846 上的修改构建 Bazel。 html但这导致了类似的大量错误: http: //pastebin.com/KjkseaGx供参考。
所以,我没有灵感了。如何在 IBM Power8 机器上编译 Bazel?
(PS:我已经将此作为解决在 IBM power8 上安装 TensorFlow 的一部分,所以这不是一个重复的问题,只是为了逐步解决它的一个方面。)