如何从bazel中排除包?

时间:2018-09-10 09:59:06

标签: python tensorflow bazel alpine tensorflow-lite

我正在尝试在阿尔卑斯山3.8中使用bazel-0.16构建tensorflow-1.10.0。但是,这给了我一个错误,如下所述。

tensorflow/contrib/lite/kernels/internal/spectrogram.cc:46:22: error: 'tflite::internal::Log2Floor' declared as an 'inline' variable
inline int Log2Floor(uint n) {
                      ^~~~
tensorflow/contrib/lite/kernels/internal/spectrogram.cc:46:22: error: 'uint' was not declared in this scope
tensorflow/contrib/lite/kernels/internal/spectrogram.cc:244:1: error: expected '}' at end of input
 }  // namespace tflite
 ^
Target //tensorflow/tools/pip_package:build_pip_package failed to build

我用来构建的命令是:

bazel build --config=opt --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" //tensorflow/tools/pip_package:build_pip_package

GCC和g ++版本分别为6.4和6.4。 我该如何避免构建tensorflow/contrib/lite软件包,因为我仍然不需要使用它。

加上tensorflow-1.7.0成功构建,但是tensorflow-1.10.0出现上述编译问题。

1 个答案:

答案 0 :(得分:1)

类型可移植性问题为fixed recently,应该在即将发布的1.11版本中。您可以: