0
我可以访问大型IBM Power8机器(运行Ubuntu),并且希望在其上构建Bazel。但是,当我尝试做它作为他们的安装指导建议,我得到:在IBM power8上构建bazel源代码
[email protected]:~/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
[email protected]:~/bazel-0.1.5$ ^C
显然,问题的一部分是编译器试图将32位编译器。我尝试了以下的东西,但无济于事。
- 用
third_party/protobuf/protoc-linux-x86_64.exe
的副本替换third_party/protobuf/protoc-linux-x86_32.exe
。这给了同样的错误。 - 替换
third_party/protobuf/protoc-linux-x86_32.exe
通过/usr/local/bin/protoc
的符号链接,它与我的发行版(根据protoc --version
的版本libprotoc 3.0.0
)一起提供。然而,这给了大量的错误:http://pastebin.com/HN0MQiC4 - 继http://www.cnblogs.com/rodenpark/p/5007744.html的说明,从源代码编译的Protobuf,然后用修改上http://www.cnblogs.com/rodenpark/p/5007846.html建设巴泽勒,但是这导致了类似的大量错误:http://pastebin.com/KjkseaGx参考。
所以,我失去了灵感。我如何在IBM Power8机器上编译Bazel?
(PS:我已经发布了这个作为解决installing TensorFlow on the IBM power8的一部分,所以它不是一个重复的问题,为了解决阶段性地只是一个方面)
对于初学者来说,没有86可执行将在电力运行8,所以你必须建立protobuf的它,或做引导在x86机器上单独执行步骤。但是我不知道这个特定软件的细节。 – jpa
我知道。但是(这两种方式我尝试过)正是吐出了大量错误的东西。 – user1111929
嗨,我是Bazel团队的成员,我们在引导过程中发生了很多变化,而且您所指的变更并不是最新的,您能否在Bazel的Github问题跟踪器上打开一个问题,我们可以更精确地跟进该问题? –