【问题标题】:Error F_SETLK when building bazel on CentOS 6.5在 CentOS 6.5 上构建 bazel 时出错 F_SETLK
【发布时间】:2017-04-28 22:07:24
【问题描述】:

我正在我机构的集群计算机上构建和安装 tensorflow,该计算机运行的是 CentOS 6.5。

显然,第一步是构建和安装 bazel。构建工作正常,但是当我尝试运行 bazel 二进制文件时,出现以下错误:

Error: unexpected result from F_SETLK: Function not implemented

gcc 版本是 4.7.2

java版本为jdk1.8.0_65

编辑:我还尝试编译 gcc 4.9.4 并使用此版本进行构建,并且我尝试构建最新的 bazel dist 和来自 git repo 的 0.3.1。所有变体都会出现相同的错误。

【问题讨论】:

    标签: centos bazel


    【解决方案1】:

    如果 Bazel 尝试自行安装(解压其嵌入式工具)的文件系统不支持锁定,则会发生这种情况。

    解决方法 (until the relevant issue is resolved) 是为 --output_user_root 指定本地、可写(和文件锁定)文件系统上的路径,例如:

    bazel --output_user_root=/usr/local/$USER/bazelout build <targets>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-04-02
      • 1970-01-01
      • 2013-09-22
      • 1970-01-01
      • 2017-04-07
      • 2014-08-23
      • 2016-01-18
      相关资源
      最近更新 更多