[英]Linking of rule '//tensorflow/python:_pywrap_tensorflow_internal.so' failed
I am trying to install Tensorflow on my laptop which has i5 and 8GB RAM. 我正在尝试在具有i5和8GB RAM的笔记本电脑上安装Tensorflow。
When I am building the Tensorflow from source I use 当我从源代码构建Tensorflow时
bazel build --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" --copt=-march=native //tensorflow/tools/pip_package:build_pip_package
Everything seems to go well but at the end I get this error 一切似乎进展顺利,但最后我得到了这个错误
`ERROR: /home/siladittya/tensorflow/tensorflow/python/BUILD:3166:1: Linking of rule '//tensorflow/python:_pywrap_tensorflow_internal.so' failed (Exit 1)
/usr/bin/ld.gold: fatal error: bazel-out/k8-opt/bin/tensorflow/core/kernels/_objs/quantize_and_dequantize_op/tensorflow/core/kernels/quantize_and_dequantize_op.pic.o: read: Input/output error
collect2: error: ld returned 1 exit status
Target //tensorflow/tools/pip_package:build_pip_package failed to build
` `
I looked up a few posts in some forums, but they are saying that it can be solved using --local_resources
but when I used that argument, 我在一些论坛上查找了一些帖子,但是他们说可以使用
--local_resources
来解决,但是当我使用该参数时,
`bazel build --local_resources 8000,2.0,2.0 --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" --config=opt //tensorflow/tools/pip_package:build_pip_package`
I am getting the same error again. 我再次遇到相同的错误。
What is the solution to this problem? 这个问题有什么解决方案?
Doing fsck
on /dev/sda1
ie on the system root partition solved the problem. 在
/dev/sda1
即系统根分区上)执行fsck
解决了该问题。
And it seems, that it is not a problem that can be solved using --local_resources
看来,这不是可以使用
--local_resources
解决的问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.