当前位置: 首页 > 知识库问答 >
问题:

tensorflow bazel大楼倒塌

窦志新
2023-03-14

构建tf(紧随其后)

<代码>。/配置

root@commandor:/opt/tf/sc/tensorflow# bazel build --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" --config=opt //tensorflow/tools/pip_package:build_pip_package
WARNING: /home/ertosns/.cache/bazel/_bazel_root/502c46fd2b7f9ff136e0381cc7e075fe/external/protobuf_archive/WORKSPACE:1: Workspace name in /home/ertosns/.cache/bazel/_bazel_root/502c46fd2b7f9ff136e0381cc7e075fe/external/protobuf_archive/WORKSPACE (@com_google_protobuf) does not match the name given in the repository's definition (@protobuf_archive); this will cause a build error in future versions
ERROR: /home/ertosns/.cache/bazel/_bazel_root/502c46fd2b7f9ff136e0381cc7e075fe/external/jpeg/BUILD:126:12: Illegal ambiguous match on configurable attribute "deps" in @jpeg//:jpeg:
@jpeg//:k8
@jpeg//:armeabi-v7a
Multiple matches are not allowed unless one is unambiguously more specialized.
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: 

/home/ertosns/.cache/bazel/_bazel_root/502c46fd2b7f9ff136e0381cc7e075fe/external/jpeg/BUILD:126:12: Illegal ambiguous match on configurable attribute "deps" in @jpeg//:jpeg:
@jpeg//:k8
@jpeg//:armeabi-v7a
Multiple matches are not allowed unless one is unambiguously more specialized.
INFO: Elapsed time: 10.065s
FAILED: Build did NOT complete successfully (97 packages loaded)
    currently loading: tensorflow/contrib/data/kernels ... (3 packages)

不太熟悉bazel,但根据这个条件,针对jpeg的参数需要被传递,具体是什么参数,为什么指南没有提到这一点?

构建版本r1。6在Python2.7下,3.6都会以相同的错误失败。

配置过程:拒绝除jemalloc之外的所有支持。

root@commandor:/opt/tf/sc/tensorflow# ./configure 
You have bazel 0.12.0 installed.
Please specify the location of python. [Default is /usr/bin/python]: 


Found possible Python library paths:
  /usr/local/lib/python2.7/dist-packages
  /usr/lib/python2.7/dist-packages
Please input the desired Python library path to use.  Default is [/usr/local/lib/python2.7/dist-packages]

Do you wish to build TensorFlow with jemalloc as malloc support? [Y/n]: y
jemalloc as malloc support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Google Cloud Platform support? [Y/n]: n
No Google Cloud Platform support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Hadoop File System support? [Y/n]: n
No Hadoop File System support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Amazon S3 File System support? [Y/n]: n
No Amazon S3 File System support will be enabled for TensorFlow.

Do you wish to build TensorFlow with Apache Kafka Platform support? [y/N]: n
No Apache Kafka Platform support will be enabled for TensorFlow.

Do you wish to build TensorFlow with XLA JIT support? [y/N]: n
No XLA JIT support will be enabled for TensorFlow.

Do you wish to build TensorFlow with GDR support? [y/N]: n
No GDR support will be enabled for TensorFlow.

Do you wish to build TensorFlow with VERBS support? [y/N]: n
No VERBS support will be enabled for TensorFlow.

Do you wish to build TensorFlow with OpenCL SYCL support? [y/N]: n
No OpenCL SYCL support will be enabled for TensorFlow.

Do you wish to build TensorFlow with CUDA support? [y/N]: n
No CUDA support will be enabled for TensorFlow.

Do you wish to build TensorFlow with MPI support? [y/N]: n
No MPI support will be enabled for TensorFlow.

Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -march=native]: 


Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]: n
Not configuring the WORKSPACE for Android builds.

Preconfigured Bazel build configs. You can use any of the below by adding "--config=<>" to your build command. See tools/bazel.rc for more details.
    --config=mkl            # Build with MKL support.
    --config=monolithic     # Config for mostly static monolithic build.
    --config=tensorrt       # Build with TensorRT support.
Configuration finished

我正在尝试构建源代码,因为在卸载tenorflow并重新安装后,它不起作用!虽然它在以前的版本中工作,但在ubuntu17.xx上,当前的ubuntu版本是17.10 artful

谷歌小组讨论

我之前的问题是关于同一个主题,但针对不同的问题。

共有2个答案

戚俊人
2023-03-14

我也有同样的问题,Bazel 0.12,回到Bazel 0.11,从我这里开始:

$ curl -LO "https://github.com/bazelbuild/bazel/releases/download/0.11.1/bazel_0.11.1-linux-x86_64.deb" 

$ sudo dpkg -i bazel_*.deb
锺伟志
2023-03-14

看来是0.12版本的bazel导致的问题,尝试降级到0.11。

 类似资料:
  • 我需要为我的页眉创建一个背景五角大楼。为了做到这一点,我:1)无法编辑html 2)正在使用SASS进行样式设置。 如何使形状看起来像此线框图像,而不转换文本?换句话说,五角大楼的中点必须在底部。下面是编译后的CSS和HTML。

  • 本文向大家介绍用C ++查找五角大楼区域的程序,包括了用C ++查找五角大楼区域的程序的使用技巧和注意事项,需要的朋友参考一下 在本教程中,我们将讨论一个寻找五边形区域的程序。 为此,我们将获得平行四边形的侧面。我们的任务是计算并打印出给定五边形的面积。 示例 输出结果

  • 博客基本建好了, 未来我们还有更多的工作要做: 将view封装到类中 重写增删改查代码 重写前段模板 重新设计数据库关系 自定义留言板(连接数据库) 添加注册/登陆功能(Form) 做成社区(更多设计思考) ... 更多学习资源: Django Django 官网, 最全面的 Django 知识还是要看官方文档, 我认为写的非常棒 Django Book 这个是很早的一本 Django 教程, 虽

  • 我一直专注于递归函数,并在网上搜索了一些问题,以了解它们是如何工作的。我遇到了一个叫做楼梯的问题,这是为它设计的代码- 如果有人能帮我从“int count”{I have understand the base cases}理解阶梯函数,那将非常有帮助!

  • 假设你正在爬楼梯。需要 n 阶你才能到达楼顶。 每次你可以爬 1 或 2 个台阶。你有多少种不同的方法可以爬到楼顶呢? 注意:给定 n 是一个正整数。 示例 1: 输入: 2 输出: 2 解释: 有两种方法可以爬到楼顶。 1. 1 阶 + 1 阶 2. 2 阶 示例 2: 输入: 3 输出: 3 解释: 有三种方法可以爬到楼顶。 1. 1 阶 + 1 阶 + 1 阶 2. 1 阶 + 2

  • 1.发布了商品首页未展示是什么原因? 打开【后台店铺—店铺装修—商品楼层】,添加商品楼层。便可按分类展示。 2.添加了商品楼层不显示是怎么回事? 系统现有模板4套,选择添加后,检查是否点击了开启。 3.首页分类左边的图片怎么更换? 在店铺——商品楼层 4.为什么我的商品楼层是空白的? 把分类全部删掉,重新建立就可以了