centos - 在 CentOS 6.5 上构建 bazel 时出错 F_SETLK

标签 centos bazel

我正在我机构的集群计算机上构建和安装 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。所有变体都得到相同的错误。

最佳答案

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

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

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

关于centos - 在 CentOS 6.5 上构建 bazel 时出错 F_SETLK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41128007/

相关文章:

centos - 没有包 confluent-community-2.11 可用

c++ - 如何使用 bazel 在 OS X 上设置 C++ 编译器?

c++ - bazel c++ 创建并链接共享库

go - 当项目具有内部依赖性时,bazel golang 构建失败

php - fatal error : call to undefined function imagecreatefromjpeg() centos

centos - Vagrant - 缓存 RPM 以加快配置速度

java - 在 bazel 构建中将 mvn 作为工具运行

bazel rules_go : linking go binary against a static c++ library (. a file) 由工作区中的另一个目标生成

使用 GUI 在 Azure 上进行 GCC 编译

PostgreSQL - fatal error : Ident authentication failed for user