我试图在一个名为mixhost的日本租赁服务器上构建tensorflowr1.13。 但发生了以下错误。 在配置.py,bazel运行的位置出错。在
$ bash configure
Traceback (most recent call last):
File "./configure.py", line 1701, in <module>
main()
File "./configure.py", line 1557, in main
check_bazel_version('0.19.0', '0.21.0')
File "./configure.py", line 457, in check_bazel_version
['bazel','--batch', '--bazelrc=/dev/null', 'version'])
File "./configure.py", line 147, in run_shell
output = subprocess.check_output(cmd)
File "/usr/lib64/python2.7/subprocess.py", line 575, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['bazel', '--batch', '--bazelrc=/dev/null', 'version']' returned non-zero exit status 1
执行环境如下:
巴泽尔0.21.0
oracle jdk 1.8.0_231
Python 2.7.5
ulimit-a的结果如下:
^{pr2}$错误文件内容如下:
^{3}$在命令行上启动bazel时出错。在
$ bazel --batch --bazelrc=/dev/null version
[0.041s][warning][os,thread] Failed to start thread - pthread_create failed (EAGAIN) for attributes:
stacksize: 1024k, guardsize: 4k, detached.
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Cannot create worker GC thread. Out of system resources.
# An error report file with more information is saved as:
# /home/nnnnnn/hs_err_pid229018.log
当我启动bazel并添加了这个选项时,它运行得很好。在
$ bazel --host_jvm_args="-XX:ParallelGCThreads=1" --host_jvm_args="-Xmx64m" --batch --bazelrc=/dev/null version
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
INFO: Invocation ID: 270fb316-12c0-462f-bc91-a59c29c41c27
Build label: 0.21.0
Build target: bazel-out/k8-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Wed Dec 19 12:58:44 2018 (1545224324)
Build timestamp: 1545224324
Build timestamp as int: 1545224324
但是,在修改时也发生了类似的错误配置.py并运行bash configure。在
$ bash configure
Traceback (most recent call last):
File "./configure.py", line 1702, in <module>
main()
File "./configure.py", line 1558, in main
check_bazel_version('0.19.0', '0.21.0')
File "./configure.py", line 457, in check_bazel_version
['bazel','--host_jvm_args="-XX:ParallelGCThreads=1"','--host_jvm_args="-Xmx64m"','--batch', '--bazelrc=/dev/null', 'version'])
File "./configure.py", line 147, in run_shell
output = subprocess.check_output(cmd)
File "/usr/lib64/python2.7/subprocess.py", line 575, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['bazel', '--host_jvm_args="-XX:ParallelGCThreads=1"', '--host_jvm_args="-Xmx64m"', '--batch','--bazelrc=/dev/null', 'version']' returned non-zero exit status 1
你能帮帮我吗?
非常感谢。在
目前没有回答
相关问题 更多 >
编程相关推荐